LinuxQuestions.org
Visit Jeremy's Blog.
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 06-06-2009, 02:28 PM   #1
pdsmith
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Rep: Reputation: 0
CLFS-6.3. GMP-4.2.4 will not compile


gmp is not finding my GCC I compiled in section 5. Any help would greatly be appreciated.

clfs@debian:/mnt/clfs/sources/gmp-4.2.4$ CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
> ./configure --prefix=/tools \
> --build=${CLFS_HOST} --host=${CLFS_TARGET} \
> --libdir=/tools/lib64 --enable-cxx \
> --enable-mpbsd
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=64
checking compiler -gcc ... no
checking ABI=32
checking compiler -gcc ... no
configure: error: could not find a working compiler, see config.log for details
 
Old 06-06-2009, 02:43 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Are you building LFS or CLFS and which version?
Which book are you using?
Which chapter is giving you troubles?

You mention CLFS and I do see a BUILD64 variable, but there is no CLFS 6.3 (version 1.1 is the stable CLFS atm).

I also don't find any mention of gmp in either of the 3 CLFS docs (32 Bit Builds / Intel/AMD x86 or 64 Bit Builds / x86_64 or Multilib Builds / x86_64) and I'm assuming you don't have a powerpc.

I do find a mention of gmp in LFS 6.3, but that's chapter 6 not in 'section 5', but that's not x86_64 related.....

Could you give us some more info please?

Last edited by druuna; 06-06-2009 at 02:44 PM.
 
Old 06-06-2009, 03:08 PM   #3
pdsmith
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
6.3 was chapter/section from
Cross-Compiled Linux From Scratch - Version SVN-20090602-x86_64-Multilib
Chapter 6. Constructing a Temporary System
chapter 6.3. GMP-4.2.4

Chapter 5 was mentioned because I believe that it using the cross-tools and tools built in chapter 5 now instead of my debian host system.
Since I.m not that far into this one, I think I'll start over.

Last edited by pdsmith; 06-06-2009 at 03:49 PM.
 
Old 06-06-2009, 04:01 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi again,

Found it! (Maybe post a link to the page next time )

I'm not entirely sure, but this looks wrong to me:

checking compiler -gcc... no

Shouldn't that be gcc instead of -gcc?

If nothing went wrong in the previous chapters then I think you should check if all the variables are set correctly (CLFS_HOST, CC, etc).
 
Old 06-06-2009, 09:59 PM   #5
pdsmith
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
I didn't use the online book and couldn't find it. Any how I started over and this time everything worked the way it was suppose too. Thanks for your help.
 
Old 06-07-2009, 04:45 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

The on-line book is a bit hard to find, take a look here if you are interested:

SVN-20090606-x86_64 / Multilib

BTW: You're welcome

Last edited by druuna; 06-07-2009 at 05:22 AM. Reason: Fixed a typo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CLFS 5.9 - Glibc compile: suffix of object files, cannot compile Noddegamra Linux From Scratch 3 04-27-2009 01:49 AM
Can't Compile GMP with gcc mac 10.4.11 phy1729 Programming 1 04-16-2008 04:06 AM
chown clfs:clfs mishap Louis_Carole Linux From Scratch 4 03-21-2007 08:40 PM
CLFS Texinfo Compile Error fatsheep Linux From Scratch 1 10-21-2006 03:44 PM
trying to use gmp BadTaste Programming 1 08-04-2004 10:10 AM


All times are GMT -5. The time now is 12:04 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration