On September 7, 2017 10:52:07 PM CDT, Ken Moffat <[email protected]> wrote: >On Fri, Sep 08, 2017 at 02:12:05PM +1100, evanation wrote: >> Can I recompile other libraries as needed, but not in the >installation process? >> > >Please don't top post on LFS lists - it makes it much harder to >follow the conversation. > >More comments below. > >> 2017-09-08 13:10 GMT+11:00 James B <[email protected]>: >> > On Fri, 8 Sep 2017 11:50:00 +1100 >> > evanation <[email protected]> wrote: >> > >> >> to get a multilib, is it enough in chapter 5 and in chapter 6 to >> >> compile glibc-32bit and glibc-64bit? >> > >> > No. >> > >> > In addition to glibc, almost all other libraries in both chapters >needs to be build in 32/64 version. >> > You may instead check CLFS: http://clfs.org/view/sysvinit/x86_64/ >(this is for x86-64 platform, there are similar guides for other >platform too). >> > >> > cheers! >> > > >It's a long time since I built multilib - I compile everything from >source, I have no need for 32-bit x86. But my memory says "Maybe >you can build other libaries 32-bit - as needed - after booting." > >It all depends on what you want to do with the system - CLFS will >give you a system where you can compile 32-bit as well as 64-bit. >If all you want to do is run some 32-bit binary (statically linked >so that it doesn't need more than libc) then just building glibc as >32-bit might work. > >OTOH, it might not - if you want to do it, you can test it and find >out. A quick test (trying to compile a mickey-mouse program with >gcc -m32) on x86_64 failed because I lack the 32-bit stubs which I >think come from glibc. But for at least a couple of years we (LFS) >have had to build libstdc++ to get everything working, so I suspect >that all the toolchain (binutils, gcc, glibc, and the extra libs >added into the pass1 gcc build) will need to be built as both 32-bit >and 64-bit. I'm assuming sysvinit - for systemd you probably also >need 32-bit versions of whatever libraries that requires, and their >dependencies. > >Summary: I can't personally see the point of multilib (so much extra >to build, then for everything in BLFS you need to specify -m32 or >-m64, and --libdir when it is not lib), but you will get more >reliable results from following the CLFS build - or more learning >experiences by trying to simplify it :) >
FYI, if you are wanting to adapt an existing pure 64 system, I did similar previously. It will require more work than what is in that book as it used old versions but should give you enough of an overview to adapt current CLFS for add-on install of 32bit libs in /usr/lib32. http://www.linuxfromscratch.org/~dj/lfs-systemd-multilib/ HTH. --DJ -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
