Re: Failed to build glibc on arm64
"Xi Ruoyao" ([email protected] via lfs-support Mailing List) <[email protected]> Sun, 10 Aug 2025 21:14:31 +0800
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 2025-08-10 at 13:41 +0200, Filip Bartmann wrote: > Hello, > I'm trying to build Glibc in 8.5 chapter of https://www.linuxfromscratch.org/~xry111/lfs/view/arm64-systemd book. In make install phase I have this error: > ------------------------------------------------------------------------------------- > rm -f /build/glibc-2.41/build/stubs.h > test ! -x /build/glibc-2.41/build/elf/ldconfig || LC_ALL=C \ > /build/glibc-2.41/build/elf/ldconfig \ > /usr/lib /usr/lib > LD_SO=ld-linux-aarch64.so.1 CC="gcc" /usr/bin/perl scripts/test-installation.pl /build/glibc-2.41/build/ > /usr/lib/gcc/aarch64-lfs-linux-gnu/15.1.0/../../../../aarch64-lfs-linux-gnu/bin/ld: cannot find -lnsl: No such file or directory > /usr/lib/gcc/aarch64-lfs-linux-gnu/15.1.0/../../../../aarch64-lfs-linux-gnu/bin/ld: cannot find -lnss_dns: No such file or directory > collect2: error: ld returned 1 exit status > Execution of gcc failed! > The script has found some problems with your installation! > Please read the FAQ and the README file and check the following: > - Did you change the gcc specs file (necessary after upgrading from > Linux libc5)? > - Are there any symbolic links of the form libXXX.so to old libraries? > Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong, > libm.so should point to the newly installed glibc file - and there should be > only one such link (check e.g. /lib and /usr/lib) > You should restart this script from your build directory after you've > fixed all problems! > Btw. the script doesn't work if you're installing GNU libc not as your > primary library! You forgot this: Fix the Makefile to skip an outdated sanity check that fails with a modern Glibc configuration: sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile which exists in both the mainline (x86_64) book and the arm64 book. -- Xi Ruoyao <[email protected]> -- http://lists.linuxfromscratch.org/sympa/info/lfs-support Unsubscribe: See the above information page