LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-06-2013, 05:16 PM   #1
assemblerhead
LQ Newbie
 
Registered: Jan 2012
Location: Texas, USA
Distribution: varies
Posts: 2

Rep: Reputation: Disabled
Lightbulb 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.
 
Old 03-10-2013, 08:24 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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.
 
Old 03-13-2013, 09:02 AM   #3
assemblerhead
LQ Newbie
 
Registered: Jan 2012
Location: Texas, USA
Distribution: varies
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thumbs up 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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need RH124 and RH135 book, please anybody know where i can download the book for free aderinto Linux - Newbie 5 07-31-2012 08:42 PM
[SOLVED] EGLIBC Error in CLFS Book BrandonJ Linux From Scratch 1 06-27-2011 10:42 AM
gcc problem (chapter 6.4.1 of the Pure64 CLFS book) charlie_lab Linux From Scratch 0 03-14-2010 08:51 AM
LXer: Book Review: The Official Ubuntu Server Book LXer Syndicated Linux News 0 08-31-2009 03:00 AM
chown clfs:clfs mishap Louis_Carole Linux From Scratch 4 03-21-2007 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration