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 05-17-2010, 01:40 PM   #1
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Post 6.6 on virtualbox and gcc compiling problems


Hi

Im trying LFS 6.6 under ubuntu 9.10 installed as virtual machine.

Everything was going well till: 5.5.1. Installation of Cross GCC

i created a new dir like says in the book and put inside of it the unpacked packages gmp and mpfr moved em as the book says:

its all under $LFS/sources/gcc-build/ and gmp and mpfr under gcc-4.xxx

the ./configure did its job

but make have some errors related to the location of gmp and mpfr in the log it says no such file or directory.

im not sure what im doing wrong

thanks in advance.
 
Old 05-17-2010, 02:32 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
We don't know either what you are doing wrong unless you post the the logfiles. The last 20 lines leading up to the error usually suffice.
 
1 members found this post helpful.
Old 05-18-2010, 04:27 AM   #3
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Original Poster
Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Ok here some info from config.log

Code:
/$(HOST_SUBDIR)/mpfr -I$$s/mpfr   conftest.c >&5
conftest.c:12:19: error: ppl_c.h: No such file or directory
conftest.c: In function 'main':
conftest.c:18: error: 'choke' undeclared (first use in this function)
conftest.c:18: error: (Each undeclared identifier is reported only once
conftest.c:18: error: for each function it appears in.)
conftest.c:18: error: expected ';' before 'me'
configure:4918: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
Code:
configure:5031: gcc -c -g -O2 -I/include -DCLOOG_PPL_BACKEND  -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr    conftest.c >&5
conftest.c:12:25: error: cloog/cloog.h: No such file or directory
conftest.c: In function 'main':
conftest.c:18: error: 'choke' undeclared (first use in this function)
conftest.c:18: error: (Each undeclared identifier is reported only once
conftest.c:18: error: for each function it appears in.)
conftest.c:18: error: expected ';' before 'me'
configure:5037: $? = 1
configure: failed program was:
| /* confdefs.h.  */
Code:
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/gcc-4.4.3/i686-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc-4.4.3'
make: *** [all] Error 2

i hope this helps

thanks in advance
 
Old 05-18-2010, 06:18 AM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Your host does not meet the system requirements. Try using the liveCD as host. I you insist on using Ubuntu install the dev packages and check the installed versions of the programs listed here:
http://www.linuxfromscratch.org/lfs/.../hostreqs.html
 
1 members found this post helpful.
Old 05-18-2010, 08:24 AM   #5
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Original Poster
Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Here is the output for version-check.sh:



Code:
uki@ubox:~/Desktop$ bash version-check.sh 
bash, version 4.0.33(1)-release
/bin/sh -> 'readlink -f /bin/sh'
Binutils: (GNU Binutils for Ubuntu) 2.20
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> 'readlink -f /usr/bin/yacc'
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 3.1.6
/usr/bin/awk -> 'readlink -f /usr/bin/awk'
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
GNU C Library (EGLIBC) stable release version 2.10.1
GNU grep 2.5.4
gzip 1.3.12
Linux version 2.6.31-14-generic (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009
m4 (GNU M4) 1.4.13
GNU Make 3.81
patch 2.5.9
Perl perl -V:version
GNU sed version 4.2.1
tar (GNU tar) 1.22
Texinfo: 'makeinfo --version | head -n1'
Compilation OK
uki@ubox:~/Desktop$
perl(5.10.0-24ubuntu4) and texinfo(4.13a.dfsg.1-4ubuntu1) are installed

that is what i have right now.

Thanks in advance
 
Old 05-18-2010, 10:08 AM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Did you type version.sh manually? There is some false output, e.g.

Code:
/bin/sh -> 'readlink -f /bin/sh'
...
/usr/bin/awk -> 'readlink -f /usr/bin/awk'
...
This should have been more like

Code:
/bin/sh -> /bin/bash
...
/usr/bin/awk -> /usr/bin/gawk
...
Apparently you confused the backticks (`) with single quotes ('). Copy paste the version.sh script from the LFS book directly into an editor, save it, chmod and run it again.
 
1 members found this post helpful.
Old 05-18-2010, 10:59 AM   #7
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Original Poster
Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
You are right(i did by hand) about the symbols, i did fix it,
also i did delete the gcc dir and remake em, havent tried compile yet
i want to make sure everything is good this time.

Here the output:

Code:
uki@ubox:~/Desktop$ bash version-check.sh 
bash, version 4.0.33(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.20
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
GNU C Library (EGLIBC) stable release version 2.10.1
GNU grep 2.5.4
gzip 1.3.12
Linux version 2.6.31-14-generic (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009
m4 (GNU M4) 1.4.13
GNU Make 3.81
patch 2.5.9
Perl version='5.10.0';
GNU sed version 4.2.1
tar (GNU tar) 1.22
Texinfo: makeinfo (GNU texinfo) 4.13
Compilation OK
uki@ubox:~/Desktop$
Thanks in advance !
 
Old 05-18-2010, 11:38 AM   #8
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Code:
/bin/sh -> /bin/dash
...
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
...
/bin/sh should link to /bin/bash. Not sure if gcc is ok. It is an Ubuntu modified version. Also make sure that you have the devel packages installed in Ubuntu. If compilation still fails consider using another host.
 
1 members found this post helpful.
Old 05-18-2010, 12:22 PM   #9
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Original Poster
Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Ill try compile, what host do you recommend?
Where i can get the LFS live cd ?

well no go

Code:
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/gcc-4.4.3/i686-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc-4.4.3'
make: *** [all] Error 2
Thanks in advance !

Last edited by ukiuki; 05-18-2010 at 12:58 PM.
 
Old 05-18-2010, 01:47 PM   #10
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by ukiuki View Post
Ill try compile, what host do you recommend?
Where i can get the LFS live cd ?

well no go

Code:
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/gcc-4.4.3/i686-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc-4.4.3'
make: *** [all] Error 2
Thanks in advance !
You can get the liveCD from here:
http://www.linuxfromscratch.org/livecd/download.html

Make sure you download the official one and not the x86_64 version. Download the nosrc iso. You do not need the source files since on the liveCD they are for the LFS 6.3 book.
 
1 members found this post helpful.
Old 05-18-2010, 01:56 PM   #11
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Original Poster
Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
I just got the lfslivecd-x86-6.3-r2145.iso i hope that works.

Thanks for the help !
 
  


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
Problems compiling c++ file with gcc 3.4.3 Taxinha Linux - Software 4 02-02-2006 02:31 PM
gcc compiling problems Jonas Brannstrom Programming 3 08-02-2005 03:12 PM
Problems compiling gcc. sombre1 Linux - Software 3 07-17-2005 05:28 PM
compiling problems with gcc 3.4 1337 Twinkie Linux - Software 1 05-13-2005 03:51 PM
GCC 3.2.2 - problems compiling MeinVerstand Linux - General 0 05-25-2004 01:24 PM

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

All times are GMT -5. The time now is 06:15 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
Open Source Consulting | Domain Registration