GNU bug report logs - #71029
single-binary build broken on systems with separate libintl

Previous Next

Package: coreutils;

Reported by: Audrey Dutcher <audrey <at> rhelmot.io>

Date: Sat, 18 May 2024 09:51:02 UTC

Severity: normal

To reply to this bug, email your comments to 71029 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#71029; Package coreutils. (Sat, 18 May 2024 09:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Audrey Dutcher <audrey <at> rhelmot.io>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sat, 18 May 2024 09:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Audrey Dutcher <audrey <at> rhelmot.io>
To: bug-coreutils <at> gnu.org
Subject: single-binary build broken on systems with separate libintl
Date: Fri, 17 May 2024 09:11:05 -0700
On my FreeBSD system, downloading coreutils-9.5.tar.xz, then building
with `./configure --enable-single-binary && make` does not succeed,
with the error message `don't know how to make -Wl,-rpath. Stop`

I believe the root cause of this is
https://github.com/coreutils/coreutils/blob/52e024b/src/local.mk#L485,
which mixes DEPENDENCIES and LDADD. This seems bad, for very relevant
reasons!

-- 
Audrey Dutcher
she/her/hers
https://rhelmot.io/




Information forwarded to bug-coreutils <at> gnu.org:
bug#71029; Package coreutils. (Sat, 18 May 2024 11:15:01 GMT) Full text and rfc822 format available.

Message #8 received at 71029 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Audrey Dutcher <audrey <at> rhelmot.io>, 71029 <at> debbugs.gnu.org
Subject: Re: bug#71029: single-binary build broken on systems with separate
 libintl
Date: Sat, 18 May 2024 12:12:46 +0100
On 17/05/2024 17:11, Audrey Dutcher wrote:
> On my FreeBSD system, downloading coreutils-9.5.tar.xz, then building
> with `./configure --enable-single-binary && make` does not succeed,
> with the error message `don't know how to make -Wl,-rpath. Stop`
> 
> I believe the root cause of this is
> https://github.com/coreutils/coreutils/blob/52e024b/src/local.mk#L485,
> which mixes DEPENDENCIES and LDADD. This seems bad, for very relevant
> reasons!

I presume you have the same issue with coreutils 9.4 ?

I presume the problematic flags are propagated through LIBINTL or MBRTOWC_LIB.
What are those set to for reference in your Makefile?

I'll have a look at cleaning this up.

thanks,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#71029; Package coreutils. (Sun, 19 May 2024 12:28:04 GMT) Full text and rfc822 format available.

Message #11 received at 71029 <at> debbugs.gnu.org (full text, mbox):

From: Audrey Dutcher <audrey <at> rhelmot.io>
To: Pádraig Brady <P <at> draigbrady.com>
Cc: 71029 <at> debbugs.gnu.org
Subject: Re: bug#71029: single-binary build broken on systems with separate
 libintl
Date: Sat, 18 May 2024 10:09:21 -0700
> I presume you have the same issue with coreutils 9.4 ?

Correct.

> I presume the problematic flags are propagated through LIBINTL or MBRTOWC_LIB. What are those set to for reference in your Makefile?

On plain FreeBSD it is set to /usr/local/lib/libintl.so -Wl,-rpath
-Wl,/usr/local/lib. Within a nix jail on FreeBSD (which is where I
encountered the issue first) it is simply -lintl.

Thanks for getting back to me!
- Audrey




Information forwarded to bug-coreutils <at> gnu.org:
bug#71029; Package coreutils. (Sun, 19 May 2024 12:28:04 GMT) Full text and rfc822 format available.

Message #14 received at 71029 <at> debbugs.gnu.org (full text, mbox):

From: Audrey Dutcher <audrey <at> rhelmot.io>
To: Pádraig Brady <P <at> draigbrady.com>
Cc: 71029 <at> debbugs.gnu.org
Subject: Re: bug#71029: single-binary build broken on systems with separate
 libintl
Date: Sat, 18 May 2024 10:10:31 -0700
> I presume the problematic flags are propagated through LIBINTL or MBRTOWC_LIB. What are those set to for reference in your Makefile?

Terribly sorry, I forgot to mention that MBRTOWC_LIB is empty on all
environments I tested in.




Information forwarded to bug-coreutils <at> gnu.org:
bug#71029; Package coreutils. (Tue, 21 May 2024 13:05:02 GMT) Full text and rfc822 format available.

Message #17 received at 71029 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Audrey Dutcher <audrey <at> rhelmot.io>
Cc: 71029 <at> debbugs.gnu.org
Subject: Re: bug#71029: single-binary build broken on systems with separate
 libintl
Date: Tue, 21 May 2024 14:02:49 +0100
[Message part 1 (text/plain, inline)]
On 18/05/2024 18:09, Audrey Dutcher wrote:
>> I presume you have the same issue with coreutils 9.4 ?
> 
> Correct.
> 
>> I presume the problematic flags are propagated through LIBINTL or MBRTOWC_LIB. What are those set to for reference in your Makefile?
> 
> On plain FreeBSD it is set to /usr/local/lib/libintl.so -Wl,-rpath
> -Wl,/usr/local/lib. Within a nix jail on FreeBSD (which is where I
> encountered the issue first) it is simply -lintl.
> 
> Thanks for getting back to me!
> - Audrey

Could you test with the attached,
which should reenable automake protections in this area.

cheers,
Pádraig
[coreutils-single-bsd-build.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#71029; Package coreutils. (Wed, 22 May 2024 02:00:01 GMT) Full text and rfc822 format available.

Message #20 received at 71029 <at> debbugs.gnu.org (full text, mbox):

From: Audrey Dutcher <audrey <at> rhelmot.io>
To: Pádraig Brady <P <at> draigbrady.com>
Cc: 71029 <at> debbugs.gnu.org
Subject: Re: bug#71029: single-binary build broken on systems with separate
 libintl
Date: Tue, 21 May 2024 16:22:15 -0700
> coreutils-single-bsd-build.patch

This works perfectly, thank you! My primary target is Nix so it's very
easy to just plop in the "do autoreconf" directive :)




This bug report was last modified 1 year and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.