LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 6.6 - Chapter 5.5 - make[2]: *** [buildgetconstants.o] Error 1 - GCC Pass 1 (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-6-6-chapter-5-5-make%5B2%5D-%2A%2A%2A-%5Bbuildgetconstants-o%5D-error-1-gcc-pass-1-a-816932/)

malikcpp 06-29-2010 03:23 AM

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
:banghead:

Any suggestions ?

Thank you for your help. :)

malikcpp

business_kid 06-29-2010 04:36 AM

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?

malikcpp 06-29-2010 04:49 AM

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 ? :confused:

Thank you again.

malikcpp 06-29-2010 08:09 AM

[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


All times are GMT -5. The time now is 09:21 PM.