View previous topic :: View next topic |
Author |
Message |
torojose
Joined: 26 Jul 2010 Posts: 12
|
Posted: Thu Jul 29, 2010 11:05 am Post subject: gcc-3.3.2 compilation error |
|
|
Hello everybody,
I have got a problem compiling the "gcc-3.3.2" that can be download from your page:
Code: |
gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./. -I./config -I./../include ./read-rtl.c -o read-rtl.o
In file included from ./read-rtl.c:24:
./rtl.h:132: warning: type of bit-field ?code? is a GCC extension
./rtl.h:135: warning: type of bit-field ?mode? is a GCC extension
./read-rtl.c: In function ?fatal_with_file_and_line?:
./read-rtl.c:53: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function ?read_rtx?:
./read-rtl.c:653: error: lvalue required as increment operand
make[1]: *** [read-rtl.o] Error 1
make[1]: Leaving directory `/home/jose/bladox/gcc-3.3.2/gcc'
make: *** [all-gcc] Error 2
|
Any idea about why this error?
Best regards,
Jose |
|
Back to top |
|
|
pz Guest
|
Posted: Tue Aug 03, 2010 6:17 am Post subject: |
|
|
New gcc cannot compile old gcc.
You may get precompiled linux devel at http://bladox.com/pub/avr1.tgz
Untar it in /usr |
|
Back to top |
|
|
PeregrineFalcon
Joined: 03 Mar 2011 Posts: 6
|
Posted: Thu Mar 03, 2011 7:15 pm Post subject: |
|
|
The file at http://www.bladox.com/pub/avr1.tgz appears to be corrupt. After downloading and trying to untar it I get:
Code: | tar: Exiting with failure status due to previous errors |
Any help fixing this would be great. |
|
Back to top |
|
|
PeregrineFalcon
Joined: 03 Mar 2011 Posts: 6
|
Posted: Thu Mar 03, 2011 7:33 pm Post subject: |
|
|
Oh and if you want to build gcc yourself here are the steps to do it under Fedora (14) in my case.
Code: | yum install compat-gcc-34 compat-gcc-34-c++ compat-libstdc++-33.i686
export CC=gcc34
./configure --target=avr --enable-languages=c
make && make install
|
|
|
Back to top |
|
|
|