LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Comments on CLFS v2.0 RC1 book (https://www.linuxquestions.org/questions/linux-from-scratch-13/comments-on-clfs-v2-0-rc1-book-4175453020/)

assemblerhead 03-06-2013 05:16 PM

Comments on CLFS v2.0 RC1 book
 
Hello, CLFS devs

In following the directions posted, I found a situation that was not covered.

The host system for this build has 'libtool' in a system wide install. Putting the switch '-disable-shared' in the ./configure kills the necessary linker function. The 'static' builds produce non-functional libs or executables.

The Ncurses-5.9 package does have a work around coded in. The './configure --help' shows it.

GCC 4.6.3 does not. Common Errors : 'gcc cannot compile', or 'no installed CLooG detected'.
The functional workaround for this :
LDFLAGS="-Wl,-rpath,/cross-tools/lib -static-libtool-libs"

As more people use GUI desktops as hosts, 'libtool' will be the silent problem that kills their build attempt. It cannot be removed without killing the GUI (...in a slow and agonizing way).

Thanks for your efforts.

Keith Hedger 03-10-2013 08:24 AM

Libtool is always,ALWAYS a major PITA.

But is there any particular reason you want to disable shared libs with ncurses and gcc?

Also note the gcc can be built without cloog/ppl ( there are configure switchs for it "--without-cloog --without-ppl") I don't use cloog as it seems to be just a very complex way of optimizing a few loops.

assemblerhead 03-13-2013 09:02 AM

Libtool problem ...
 
CLFS Book v2.0 RC1

Yes, there is a reason for static builds of ncurses and gcc.

By the book, it is supposed to break any dependencies on the host system from carrying over to the new system.

I'm going to try it again, this time NO chroot, straight to the 'Boot' instead.

If my guess/hunch is correct, chroot + root priv. lets 'libtool' break the 'chroot jail'.
The LD_LIBRARY_PATH is hardcoded into 'libtool', apparently. No way to override it.
So everything has the path [/cross-tools] or [/tools] or [/mnt/clfs] coded into it.
The '--with-sysroot=' does not seem to be working on 'libtool'.
Host system version of 'libtool' = 2.4

The command line switches for 'gmp,mpfr,mpc,cloog,ppl' locations don't work when 'cross-compiling', according to GCC's configure & install Wiki. The developers say to use the download script included in GCC for 'gmp,mpfr,mpc'.

Thanks for the response.


All times are GMT -5. The time now is 06:47 AM.