gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I. -I.
-I../../../sources/gcc-4.5.x/gcc -I../../../sources/gcc-4.5.x/gcc/.
-I../../../sources/gcc-4.5.x/gcc/../include
-I../../../sources/gcc-4.5.x/gcc/../libcpp/include
-I../../../sources/gcc-4.5.x/gcc/../libdecnumber
-I../../../sources/gcc-4.5.x/gcc/../libdecnumber/dpd -I../libdecnumber
-DCLOOG_PPL_BACKEND -I/cygdrive/c/arm-elf-cy/libelf-0.8.12/include
-I/cygdrive/c/arm-elf-cy/libelf-0.8.12/include/libelf
../../../sources/gcc-4.5.x/gcc/c-lang.c -o c-lang.o
../../../sources/gcc-4.5.x/gcc/lto/lto-elf.c: In function 'lto_elf_file_close':
../../../sources/gcc-4.5.x/gcc/lto/lto-elf.c:630: error: 'SHN_XINDEX'
undeclared (first use in this function)
../../../sources/gcc-4.5.x/gcc/lto/lto-elf.c:630: error: (Each undeclared
identifier is reported only once
../../../sources/gcc-4.5.x/gcc/lto/lto-elf.c:630: error: for each function it
appears in.)
make[2]: *** [lto/lto-elf.o] Error 1
SHN_XINDEX seems to be internal to libelf
This is with svn rev 153796.
--
Summary: Compile error in gcc/lto/lto-elf.c (SHN_XINDEX
undeclared)
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bruck dot michael at googlemail dot com
GCC build triplet: i686-pc-cygwin
GCC host triplet: i686-pc-cygwin
GCC target triplet: arm-unknown-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41902