On 27.01.2015 20:37, lux-integ wrote: > Greetings > > I need a multilib LFS setup. I have built many pute 64-but CLFS systems and > I tried CLFS multilib > ( http://clfs.org/view/git/x86_64/ ) > > but got stuck on the cross-tools build of glibc. > ( I encountered errors at glibc 32-bit compilation > http://clfs.org/view/git/x86_64/cross-tools/glibc.html > > I tried with > (glibc-2.17-glibc-2,20 ) and 3 hosts, CLFS,fedora and slackware. > > I note lfs dscussions > ( http://www.linuxfromscratch.org/pipermail/lfs-chat/2013- > February/028602.html > > that it is possible to start with a pure 64bit LFS setup and then add the 32- > bit libraries > > I would be grateful for some advice on how this is done. > > sincerely > luxInteg >
This is what I used to bootstrap my first multilib installation. You need to construct a multilib capable cross compiler, like GCC Pass 1, but instead with multilib enabled, and use that compiler to build a 32 bit Glibc, which you will use to bootstrap a multilib capable Chapter 6 compiler by removing --disable-multilib from the GCC instructions and adding --enable-multilib to the Binutils instructions. https://github.com/elkrejzi/system-management/blob/master/glibc%2032%20bit.txt You need to be aware that the instructions in the document provide a way to build a 32 bit glibc from a pure 64 bit setup. You'll still need to rebuild chapter 6 binutils and gcc to enable multilib after that's done. I also have instructions for building a multilib capable gcc in /tools, so you can use it to build 32 bit glibc later on. You'd have to extract that part from the various build* scripts in the buildscripts directory of the git repository. There's also order.txt which describes for which packages I build the 32 bit libraries and the order I build them in. Every package mentioned in that document has a build script in the same repo. Have fun. https://github.com/elkrejzi/system-management/blob/master/multilib%20toolchain.txt -- Note: My last name is not Krejzi.
signature.asc
Description: OpenPGP digital signature
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
