LinuxQuestions.org
Help answer threads with 0 replies.
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 06-29-2010, 03:23 AM   #1
malikcpp
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Rep: Reputation: 0
LFS 6.6 - Chapter 5.5 - make[2]: *** [buildgetconstants.o] Error 1 - GCC Pass 1


Good morning,

I get a lot of warnings and errors on compilation/linking for making GCC.

I'm as indicated in LFS Book, in /mnt/lfs/sources/gcc-build ($LFS/sources/gcc-build), and the command i used is make.

Here is the command making all this mess (stdoutput) :

Quote:
gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.4.3/gcc -I../../gcc-4.4.3/gcc/build -I../../gcc-4.4.3/gcc/../include -I../../gcc-4.4.3/gcc/../libcpp/include -I/mnt/lfs/sources/gcc-build/./gmp -I/mnt/lfs/sources/gcc-4.4.3/gmp -I/mnt/lfs/sources/gcc-build/./mpfr -I/mnt/lfs/sources/gcc-4.4.3/mpfr -I../../gcc-4.4.3/gcc/../libdecnumber -I../../gcc-4.4.3/gcc/../libdecnumber/dpd -I../libdecnumber -o build/genconstants.o ../../gcc-4.4.3/gcc/genconstants.c
And here is the mess (stderror) :

Quote:
In file included from ../../gcc-4.4.3/gcc/genconstants.c:32:
../../gcc-4.4.3/gcc/rtl.h:26:22: error: ../../gcc-4.4.3/gcc/machmode.h: Input/output error
In file included from ../../gcc-4.4.3/gcc/rtl.h:28,
from ../../gcc-4.4.3/gcc/genconstants.c:32:
../../gcc-4.4.3/gcc/real.h:170: error: 'MAX_MODE_FLOAT' undeclared here (not in a function)
../../gcc-4.4.3/gcc/real.h:170: error: 'MIN_MODE_FLOAT' undeclared here (not in a function)
../../gcc-4.4.3/gcc/real.h:171: error: 'MAX_MODE_DECIMAL_FLOAT' undeclared here (not in a function)
../../gcc-4.4.3/gcc/real.h:171: error: 'MIN_MODE_DECIMAL_FLOAT' undeclared here (not in a function)
../../gcc-4.4.3/gcc/real.h:231: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:231: warning: its scope is only this definition or declaration, which is probably not what you want
../../gcc-4.4.3/gcc/real.h:234: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:243: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:258: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:262: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:266: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:271: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:275: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:277: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:279: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:363: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:377: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:379: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:436: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:439: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:444: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:451: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:455: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:459: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:461: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:463: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:465: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/real.h:479: warning: 'enum machine_mode' declared inside parameter list
In file included from ../../gcc-4.4.3/gcc/rtl.h:30,
from ../../gcc-4.4.3/gcc/genconstants.c:32:
../../gcc-4.4.3/gcc/fixed-value.h:25:24: error: ../../gcc-4.4.3/gcc/double-int.h: Input/output error
In file included from ../../gcc-4.4.3/gcc/rtl.h:30,
from ../../gcc-4.4.3/gcc/genconstants.c:32:
../../gcc-4.4.3/gcc/fixed-value.h:29: error: expected specifier-qualifier-list before 'double_int'
../../gcc-4.4.3/gcc/fixed-value.h:50: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/fixed-value.h:54: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/fixed-value.h:61: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/fixed-value.h:65: error: expected declaration specifiers or '...' before 'double_int'
../../gcc-4.4.3/gcc/fixed-value.h:65: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/fixed-value.h:69: warning: 'enum machine_mode' declared inside parameter list
../../gcc-4.4.3/gcc/fixed-value.h:73: warning: 'enum machine_mode' declared inside parameter list
In file included from ../../gcc-4.4.3/gcc/genconstants.c:32:
../../gcc-4.4.3/gcc/rtl.h:31:19: error: ../../gcc-4.4.3/gcc/alias.h: Input/output error
In file included from ../../gcc-4.4.3/gcc/genconstants.c:32:
../../gcc-4.4.3/gcc/rtl.h:147: error: expected specifier-qualifier-list before 'alias_set_type'
../../gcc-4.4.3/gcc/rtl.h:173: error: field 'rt_type' has incomplete type
../../gcc-4.4.3/gcc/rtl.h:247: warning: 'mode' is narrower than values of its type
../../gcc-4.4.3/gcc/rtl.h:247: error: field 'mode' has incomplete type
In file included from ../../gcc-4.4.3/gcc/genconstants.c:32:
../../gcc-4.4.3/gcc/rtl.h:1855: error: 'MAX_MACHINE_MODE' undeclared here (not in a function)
make[2]: *** [build/genconstants.o] Error 1
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2


Any suggestions ?

Thank you for your help.

malikcpp

Last edited by malikcpp; 06-29-2010 at 03:45 AM.
 
Old 06-29-2010, 04:36 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
In file included from ../../gcc-4.4.3/gcc/genconstants.c:32:
../../gcc-4.4.3/gcc/rtl.h:26:22: error: ../../gcc-4.4.3/gcc/machmode.h: Input/output error
An input/output error (error 1) means a file access failed. Can it see the 2 header files. Are they real files, and not just 0 bytes?
 
Old 06-29-2010, 04:49 AM   #3
malikcpp
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Original Poster
Rep: Reputation: 0
First thank you for this fast reply, and here are the files you told me :

ls -l command output :
Quote:
-rw-r--r-- 1 1000 102 9965 fév 20 2009 machmode.h
-rw-r--r-- 1 1000 102 90036 avr 27 2009 rtl.h

(the date is not set on my computer ...)
Then i tried to open these files with joe to see if everything is ok but i get :
Quote:
Error while reading file (for machmode.h)
What can i do ?

Thank you again.
 
Old 06-29-2010, 08:09 AM   #4
malikcpp
LQ Newbie
 
Registered: Nov 2009
Posts: 19

Original Poster
Rep: Reputation: 0
[NOTE]

I deleted all the files and then untared all necessary files for the compilation and I still have I/O errors, is it possible i've a hardware problem (with my hard disk) even if fsck dont report any problem ?

Thank you
 
  


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
Error GCC - pass 2 [Chapter 5.10] manya Linux From Scratch 1 09-06-2009 01:42 AM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
LFS GCC - first pass install error arnuld Linux From Scratch 2 12-20-2006 07:59 AM
Error Compiling GCC (1st Pass) in LFS 6.0 TGWDNGHN Linux From Scratch 1 06-30-2005 08:57 PM
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM

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

All times are GMT -5. The time now is 02:20 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