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 01-04-2010, 09:18 AM   #1
lucsar
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Rep: Reputation: 0
errors while building gcc-4.4.1 from lfs livecd with kernel 2.6.16.38


Hi all,

in chap5.5 installing as lfs user cross GCC-4.4.1 - Pass 1, I got many errors but mostly the same for all packages.

here, just some (this is my first post) errors in one file obtained with: find -name 'config.log' | xargs grep 'error'

./libdecnumber/config.log:conftest.c:2: error: syntax error before 'me'
./libdecnumber/config.log:conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
./libdecnumber/config.log:conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
./libdecnumber/config.log:conftest.c:33: error: 'not' undeclared (first use in this function)
./libdecnumber/config.log:conftest.c:33: error: (Each undeclared identifier is reported only once
./libdecnumber/config.log:conftest.c:33: error: for each function it appears in.)
./libdecnumber/config.log:conftest.c:33: error: syntax error before 'big'
./fixincludes/config.log:conftest.c:2: error: syntax error before 'me'
./fixincludes/config.log:cc1: error: unrecognized command line option "-Wno-overlength-strings"
./fixincludes/config.log:conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
./fixincludes/config.log:conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
./fixincludes/config.log:configure:4007: checking for ferror_unlocked
./fixincludes/config.log:| /* Override any gcc2 internal prototype to avoid an error. */
./fixincludes/config.log:conftest.c:81: error: 'asprintf' undeclared (first use in this function)
....
./mpfr/config.log:conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
./mpfr/config.log:conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
./mpfr/config.log:conftest.c:10:3: error: #error "ICC Not Found"
./mpfr/config.log:conftest.c:14: error: syntax error before 'int'
./mpfr/config.log:| # error "ICC Not Found"
./mpfr/config.log:| error
./mpfr/config.log:conftest.c:59:21: error: sys/fpu.h: No such file or directory
./mpfr/config.log:conftest.c:26:21: error: sys/fpu.h: No such file or directory
./mpfr/config.log:conftest.c:68: error: syntax error before ')' token
./mpfr/config.log:conftest.c:69: error: syntax error before ')' token
./mpfr/config.log:conftest.c:43: error: invalid application of 'sizeof' to incomplete type 'union fpc_csr'
...
./gmp/config.log:conftest.c:2: error: syntax error before 'me'
./gmp/config.log:conftest.c:13:28: error: ac_nonexistent.h: No such file or directory
./gmp/config.log:conftest.c:13:28: error: ac_nonexistent.h: No such file or directory
./gmp/config.log:conftest.cc:27:28: error: ac_nonexistent.h: No such file or directory
./gmp/config.log:conftest.cc:27:28: error: ac_nonexistent.h: No such file or directory
./gmp/config.log:conftest.c:65:20: error: invent.h: No such file or directory
./gmp/config.log:conftest.c:31:20: error: invent.h: No such file or directory
./gmp/config.log:conftest.c:68:28: error: sys/attributes.h: No such file or directory
./gmp/config.log:conftest.c:34:28: error: sys/attributes.h: No such file or directory
./gmp/config.log:conftest.c:68:25: error: sys/iograph.h: No such file or directory
./gmp/config.log:conftest.c:34:25: error: sys/iograph.h: No such file or directory
./gmp/config.log:conftest.c:70:27: error: sys/processor.h: No such file or directory
./gmp/config.log:conftest.c:36:27: error: sys/processor.h: No such file or directory
./gmp/config.log:conftest.c:70:23: error: sys/pstat.h: No such file or directory
./gmp/config.log:conftest.c:36:23: error: sys/pstat.h: No such file or directory
./gmp/config.log:conftest.c:71:24: error: sys/syssgi.h: No such file or directory
./gmp/config.log:conftest.c:37:24: error: sys/syssgi.h: No such file or directory
./gmp/config.log:conftest.c:71:27: error: sys/systemcfg.h: No such file or directory
./gmp/config.log:conftest.c:37:27: error: sys/systemcfg.h: No such file or directory
./gmp/config.log:conftest.c:45:33: error: machine/hal_sysinfo.h: No such file or directory
./gmp/config.log:conftest.c:56: error: syntax error before 'x'
./gmp/config.log:conftest.c:72: error: 'not' undeclared (first use in this function)
./gmp/config.log:conftest.c:72: error: (Each undeclared identifier is reported only once
./gmp/config.log:conftest.c:72: error: for each function it appears in.)
./gmp/config.log:conftest.c:72: error: syntax error before 'big'
./gmp/config.log:| /* Override any gcc2 internal prototype to avoid an error. */
./gmp/config.log:| /* Override any gcc2 internal prototype to avoid an error. */

$PATH = /tools/bin:/bin:/usr/bin
/lib/cpp -> ../usr/bin/cpp
g++ installed correctly.

Thankx for your help
 
Old 01-05-2010, 02:53 AM   #2
iharob
LQ Newbie
 
Registered: Nov 2009
Posts: 14

Rep: Reputation: 0
Kernel Headers

This is happening because you either did not install kernel-headers or at least installed them wrong! so untar the kernel source in /usr/src, cd to the linux-version dir execute (make mrproper && make headers_check ARCH=<your architecture>) then (make headers_install), that should work. Post your results please! (sorry for my bad english, not my native language)
 
Old 01-05-2010, 05:58 AM   #3
lucsar
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by iharob View Post
This is happening because you either did not install kernel-headers or at least installed them wrong! so untar the kernel source in /usr/src, cd to the linux-version dir execute (make mrproper && make headers_check ARCH=<your architecture>) then (make headers_install), that should work. Post your results please! (sorry for my bad english, not my native language)
I've followed the lfs book ver 6.5 and kernel headers comes after GCC pass 1 install. So, they shouldn't affect GCC pass 1 install according the book.

Anyway, I starded from the scratch with ubuntu 9.10 as host and GCC pass 1 has compiled normaly except that I have a new problem with dummy compil and crt1.o that could not be found..

I'm trying to solve it otherwise, be ready for new thread

thankx
 
Old 01-12-2010, 10:28 AM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by lucsar View Post
... I starded from the scratch with ubuntu 9.10
Hi,

I can not really tell you what went wrong but I also tried to build my LFS with Ubuntu as host. I also ran into a lot of compilation errors. So I downloaded the LFS live CD and used it as host. Following precisely every step I managed to install LFS.
If I remember correctly the LFS book also states that most distros come with modified code.
 
Old 01-13-2010, 08:04 AM   #5
iharob
LQ Newbie
 
Registered: Nov 2009
Posts: 14

Rep: Reputation: 0
Advice!

Indeed, if you are brave enough and have enough patience, i recommend building again your distro from your built distro! Another thing, choose a package manager, and create packages instead of installing them directly, that way you'll have more control and be able to fix anything that may go wrong.
 
Old 01-13-2010, 06:15 PM   #6
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 81

Rep: Reputation: 27
It's worth mentioning that if you use ubuntu 9.10 as your host, then it is necessary to install gawk, patch and bison before you start the LFS build. Otherwise you'll get errors involving mawk, patch and yacc.
 
  


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
Building GCC for LFS dbbolton Linux - Software 9 11-27-2009 03:35 AM
LFS 6.3 .... 6.12.1. Installation of GCC make errors Axo Linux From Scratch 4 03-29-2008 02:18 AM
LFS building on a remote PC with LiveCD - how to? midiox Linux From Scratch 2 12-03-2005 08:02 PM
Countless Errors and Failures building LFS 6.0 TGWDNGHN Linux From Scratch 2 06-29-2005 09:16 AM
building LFS GCC question citrus Linux From Scratch 6 05-12-2004 08:36 AM


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

Main Menu
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