Build errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I'm trying to build gcc 4.1.2, but I get:

/tmp/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/tmp/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/ -B/opt/ gcc-4.1.2-jos-linux/x86_64-jos-linux/bin/ -B/opt/gcc-4.1.2-jos-linux/x86_64-jos-linux/lib/ -isystem /opt/gcc-4.1. 2-jos-linux/x86_64-jos-linux/include -isystem /opt/gcc-4.1.2-jos-linux/x86_64-jos-linux/sys-include -O2 -O2 -g - O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-defi nition -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -fexceptions -c ../.././gcc/unwind-dw2
.c -o libgcc/./unwind-dw2.o
In file included from ../.././gcc/unwind-dw2.c:40:
../.././gcc/unwind-pe.h:103: error: expected '=', ',', ';', 'asm' or '__attrib ute__' before 'base_of_encoded_value' ../.././gcc/unwind-pe.h:133: error: expected declaration specifiers or '...' before '_Unwind_Word'
../.././gcc/unwind-pe.h: In function 'read_uleb128':
../.././gcc/unwind-pe.h:137: error: '_Unwind_Word' undeclared (first use in this function) ../.././gcc/unwind-pe.h:137: error: (Each undeclared identifier is reported only once
../.././gcc/unwind-pe.h:137: error: for each function it appears in.)
../.././gcc/unwind-pe.h:137: error: expected ';' before 'result'
../.././gcc/unwind-pe.h:139: error: 'result' undeclared (first use in this function)
../.././gcc/unwind-pe.h:143: error: expected ')' before 'byte'
../.././gcc/unwind-pe.h:148: error: 'val' undeclared (first use in this function)
../.././gcc/unwind-pe.h: At top level:
../.././gcc/unwind-pe.h:155: error: expected declaration specifiers or '...' before '_Unwind_Sword'
../.././gcc/unwind-pe.h: In function 'read_sleb128':
../.././gcc/unwind-pe.h:159: error: '_Unwind_Word' undeclared (first use in this function)
../.././gcc/unwind-pe.h:159: error: expected ';' before 'result'
../.././gcc/unwind-pe.h:161: error: 'result' undeclared (first use in this function)
../.././gcc/unwind-pe.h:165: error: expected ')' before 'byte'
...
[many more errors]
...

This is on Ubuntu 7.10 64-bit (Linux yang-xps410 2.6.22-14-generic #1 SMP Tue Feb 12 02:46:46 UTC 2008 x86_64 GNU/Linux). Here's a summary of what I did:

wget 'http://www.kernel.org/pub/linux/devel/binutils/binutils-2.17.50.0.18.tar.bz2'

./configure --target=x86_64-jos-linux --prefix=/opt/binutils-2.17-jos-linux --disable-nls --enable-64-bit-bfd

make && make install

wget 'http://gcc-uk.internet.bs/releases/gcc-4.1.2/gcc-core-4.1.2.tar.bz2'

wget 'http://gcc-uk.internet.bs/releases/gcc-4.1.2/gcc-g++-4.1.2.tar.bz2'

tar xjf gcc-core-4.1.2.tar.bz2

tar xjf gcc-g++-4.1.2.tar.bz2

./configure --target=x86_64-jos-linux --prefix=/opt/gcc-4.1.2-jos-linux --disable-nls --without-headers --with-newlib --disable-threads --disable-shared --disable-libmudflap --disable-libssp

make && make install

Thanks in advance for any help!

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux