On Fri, 2020-09-18 at 17:23 +0200, Pierre Labastie via blfs-support
wrote:
> On Fri, 2020-09-18 at 11:59 +0000, John Frankish via blfs-support
> wrote:
> > Ref:
> > Linux From Scratch - Version 20180803-systemd
>
> That's pretty old! You might want to use the multilib version at
> http://www.linuxfromscratch.org/~thomas/multilib/index.html
>
> Note that it is sysv, but you can render the systemd version with
> svn co svn://svn.linuxfromscratch.org/LFS/branches/multilib lfs-multi
> cd lfs-multi
> make BASEDIR=~/lfs-multilib REV=systemd
>
> and point your browser to file:///home/<user>/lfs-multilib/index.html
>
> > Part III. Building the LFS System
> > 10. Adding multilib to an existing system
> > Glibc-2.28 32-bit (temp)
> >
> > Using binutils-2.33.1 , gcc-9.2.0 and glibc-2.30 to match my
> > system,
> > the glibc build fails because it cannot find libgcc_s and
> > libstdc++:
> >
> > make
> > ...
> > x86_64-unknown-linux-gnu-gcc -m32 -B/opt/temptools/bin/ -Wl,-rpath-
> > link=/usr/src/glibc-2.30/build:/usr/src/glibc-
> > 2.30/build/math:/usr/src/glibc-2.30/build/elf:/usr/src/glibc-
> > 2.30/build/dlfcn:/usr/src/glibc-2.30/build/nss:/usr/src/glibc-
> > 2.30/build/nis:/usr/src/glibc-2.30/build/rt:/usr/src/glibc-
> > 2.30/build/resolv:/usr/src/glibc-2.30/build/mathvec:/usr/src/glibc-
> > 2.30/build/support:/usr/src/glibc-2.30/build/crypt:/usr/src/glibc-
> > 2.30/build/nptl -nostdlib -nostartfiles -o /usr/src/glibc-
> > 2.30/build/support/links-dso-program -Wl,-z,combreloc -Wl,-
> > z,relro
> > -Wl,--hash-style=both /usr/src/glibc-2.30/build/csu/crt1.o
> > /usr/src/glibc-2.30/build/csu/crti.o `x86_64-unknown-linux-gnu-gcc
> > -m32 -B/opt/temptools/bin/ --print-file-name=crtbegin.o`
> > /usr/src/glibc-2.30/build/support/links-dso-program.o -lstdc++
> > -lgcc
> > -lgcc_s -Wl,-dynamic-linker=/usr/lib32/ld-
> > linux.so.2 /usr/src/glibc-2.30/build/libc.so.6 /usr/src/glibc-
> > 2.30/build/libc_nonshared.a -Wl,--as-needed /usr/src/glibc-
> > 2.30/build/elf/ld.so -Wl,--no-as-needed -lgcc `x86_64-unknown-
> > linux-
> > gnu-gcc -m32 -B/opt/temptools/bin/ --print-file-name=crtend.o`
> > /usr/src/glibc-2.30/build/csu/crtn.o
> > /opt/temptools/lib/gcc/x86_64-unknown-linux-
> > gnu/9.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find
> > -lstdc++
> > /opt/temptools/lib/gcc/x86_64-unknown-linux-
> > gnu/9.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find
> > -lgcc_s
> >
>
> I am not sure what is going on. You might try adding
> CXX="x86_64-unknown-linux-gnu-g++ -m32" to the list of variables
> before
> configure... (do not forget the \)
>
Also, I see that on the gcc page, there is something new (which might
be related to what you see):
sed -e '/m64=/s/lib64/lib/' \
-e '/m32=/s/m32=.*/m32=..\/lib32$(call if_multiarch,:i386-linux-
gnu)/' \
-i.orig gcc/config/i386/t-linux64
instead of just the line for changing lib64 to lib.
Pierre
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page