On 2018-07-18 11:14 +0200, thomas wrote: > Hi all, > > maybe there is one who can help me getting multilib-stuff working on LFS > (again). Many have already collected instructions for LFS to do that, > namely DJ, Nathan C. and William F.
I always build multilib in LFS because I want to use wine to play Red Alert :). > What i tried to do is to merge all that great work into a variation of > the book. Unfortunatly, i found that my instructions do not work any > longer (i didn't try to build multilib for some time now). > This days i restarted working on that topic again and found that it > doesn't work anylonger. To troubleshot, i extracted DJs instructions > (which adds multilib support in an additional chapter 10). I'd like to > verify that DJs instructions still work and the bug is in my > instructions but found out that they fail at the same point. I use an approach like CLFS. An additional chapter seems not necessary. > Find the instructions attached (the full log of build has zipped 1.4M > which is too large for being posted here on the list). You can run that > script upon a LFS-8.2 (or newer) LFS system. Just do a > > # ./multilib.sh > > (note that there are some sudos) > > The build runs thru the temptools stage, rebuilds binutils, gcc and > installs glibc using the temptools in /opt/temptools. After that, > binutils and gcc gets recompiled using the new glibc but than, when > glibc itself should be recompiled, it fails with the following error: > > ... > mv -f /home/lfs/glibc-2.27/build32/elf/stubsT > /home/lfs/glibc-2.27/build32/elf/stubs > make[2]: Leaving directory '/home/lfs/glibc-2.27/elf' > (sed '/^@/d' include/stubs-prologue.h; LC_ALL=C sort > /home/lfs/glibc-2.27/build32/csu/stubs > /home/lfs/glibc-2.27/build32/iconv/stubs > /home/lfs/glibc-2.27/build32/locale/stubs > /home/lfs/glibc-2.27/build32/localedata/stubs > /home/lfs/glibc-2.27/build32/iconvdata/stubs > /home/lfs/glibc-2.27/build32/assert/stubs > /home/lfs/glibc-2.27/build32/ctype/stubs > /home/lfs/glibc-2.27/build32/intl/stubs > /home/lfs/glibc-2.27/build32/catgets/stubs > /home/lfs/glibc-2.27/build32/math/stubs > /home/lfs/glibc-2.27/build32/setjmp/stubs > /home/lfs/glibc-2.27/build32/signal/stubs > /home/lfs/glibc-2.27/build32/stdlib/stubs > /home/lfs/glibc-2.27/build32/stdio-common/stubs > /home/lfs/glibc-2.27/build32/libio/stubs > /home/lfs/glibc-2.27/build32/dlfcn/stubs > /home/lfs/glibc-2.27/build32/malloc/stubs > /home/lfs/glibc-2.27/build32/string/stubs > /home/lfs/glibc-2.27/build32/wcsmbs/stubs > /home/lfs/glibc-2.27/build32/timezone/stubs > /home/lfs/glibc-2.27/build32/time/stubs > /home/lfs/glibc-2.27/build32/dirent/stubs > /home/lfs/glibc-2.27/build32/grp/stubs > /home/lfs/glibc-2.27/build32/pwd/stubs > /home/lfs/glibc-2.27/build32/posix/stubs > /home/lfs/glibc-2.27/build32/io/stubs > /home/lfs/glibc-2.27/build32/termios/stubs > /home/lfs/glibc-2.27/build32/resource/stubs > /home/lfs/glibc-2.27/build32/misc/stubs > /home/lfs/glibc-2.27/build32/socket/stubs > /home/lfs/glibc-2.27/build32/sysvipc/stubs > /home/lfs/glibc-2.27/build32/gmon/stubs > /home/lfs/glibc-2.27/build32/gnulib/stubs > /home/lfs/glibc-2.27/build32/wctype/stubs > /home/lfs/glibc-2.27/build32/manual/stubs > /home/lfs/glibc-2.27/build32/shadow/stubs > /home/lfs/glibc-2.27/build32/gshadow/stubs > /home/lfs/glibc-2.27/build32/po/stubs > /home/lfs/glibc-2.27/build32/argp/stubs > /home/lfs/glibc-2.27/build32/crypt/stubs > /home/lfs/glibc-2.27/build32/nptl/stubs > /home/lfs/glibc-2.27/build32/rt/stubs > /home/lfs/glibc-2.27/build32/conform/stubs > /home/lfs/glibc-2.27/build32/debug/stubs > /home/lfs/glibc-2.27/build32/mathvec/stubs > /home/lfs/glibc-2.27/build32/support/stubs > /home/lfs/glibc-2.27/build32/nptl_db/stubs > /home/lfs/glibc-2.27/build32/inet/stubs > /home/lfs/glibc-2.27/build32/resolv/stubs > /home/lfs/glibc-2.27/build32/nss/stubs > /home/lfs/glibc-2.27/build32/hesiod/stubs > /home/lfs/glibc-2.27/build32/sunrpc/stubs > /home/lfs/glibc-2.27/build32/nis/stubs > /home/lfs/glibc-2.27/build32/nscd/stubs > /home/lfs/glibc-2.27/build32/streams/stubs > /home/lfs/glibc-2.27/build32/libidn/stubs > /home/lfs/glibc-2.27/build32/login/stubs > /home/lfs/glibc-2.27/build32/elf/stubs) > > /home/lfs/glibc-2.27/build32/stubs.h > if test -r > /home/lfs/glibc-2.27/build32/DESTDIR/usr/include/gnu/stubs-32.h && cmp > -s /home/lfs/glibc-2.27/build32/stubs.h > /home/lfs/glibc-2.27/build32/DESTDIR/usr/include/gnu/stubs-32.h; \ > then echo 'stubs.h unchanged'; \ > else /usr/bin/install -c -m 644 /home/lfs/glibc-2.27/build32/stubs.h > /home/lfs/glibc-2.27/build32/DESTDIR/usr/include/gnu/stubs-32.h; fi > rm -f /home/lfs/glibc-2.27/build32/stubs.h > /home/lfs/glibc-2.27/build32/elf/sln > /home/lfs/glibc-2.27/build32/elf/symlink.list > /home/lfs/glibc-2.27/build32/elf/sln: > /home/lfs/glibc-2.27/build32/elf/sln: cannot execute binary file > make[1]: *** [Makefile:106: install-symbolic-link] Error 126 > make[1]: Leaving directory '/home/lfs/glibc-2.27' > make: *** [Makefile:12: install] Fehler 2 > > Note the "cannot execute binary file". Did you enable IA32_EMULATION in kernel config? > Same stuff happens regardless of building on 8.2 or on SVN. At this > point, i'm a bit lost. Does anyone have an idea what to check, which > nasty little bug could cause that fail? > Many thanks for a pointer! If any additional info is required, let me > know! Try to run /home/lfs/glibc-2.27/build32/elf/sln, what would the shell complain? > -- > Thomas -- Xi Ruoyao <[email protected]> School of Aerospace Science and Technology, Xidian University -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
