Issues with ld: "bootstrap with --static" rearing its ugly head

Erik Postma epostma at
Wed Nov 26 00:53:47 PST 2003

On Wed, 26 Nov 2003 11:52:27 +1100, Greg Schafer <gschafer at>
> On Tue, Nov 25, 2003 at 02:44:09PM +0100, Erik Postma wrote:
> > I've finally had time to redo this stuff. The logs and files are up at
> >
> Erik, thanks for all that. I now understand why you and a couple of
> other folks have had the binutils-pass2 ld static test fail. It was
> always obviously related to NLS hence the suggested workaround to pass
> "--disable-nls" to work around the problem. But I never understood the
> exact cause. Now it's easy :-)
> The real problem is that the configure scripts for binutils do not find
> the necessary gettext stuff on the host:
> -checking for msgfmt... /usr/bin/msgfmt
> -checking for dcgettext... yes
> -checking for gmsgfmt... /usr/bin/msgfmt
> -checking for xgettext... /usr/bin/xgettext
> +checking for msgfmt... no
> +checking for msgfmt... (cached) no
> +checking for gmsgfmt... no
> +checking for xgettext... :
>  updating cache .././config.cache
>  creating ./config.status
>  creating Makefile
>  creating config.h
> +linking ../../binutils-2.14/intl/libgettext.h to libintl.h
> i.e. msgfmt, xgettext and friends.
> This results in the Makefiles ending up with:
> So, not having gettext installed on the host is the real reason for the
> failing test.
> NOTE, this still doesn't explain the problem of the missing shared lib
> once inside the chroot. I can't see any correlation between the two. It
> also doesn't explain the failed test in the glibc test suite you saw. I
> have no clue about that one.
> In summary, it reinforces the fact that the host always has some
> influence on Chapter 5 therefore backing up my belief that running test
> suites in Chapter 5 is pretty much a lottery. Chapter 6 is where it
> counts.

Thanks Greg for solving this. Is the recommended workaround still
--disable-nls if anyone sees this?

Erik Postma (Email: reverse the order of nl, tue and win.)

More information about the lfs-support mailing list