public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/41902] New: Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared)
@ 2009-11-02 0:55 bruck dot michael at googlemail dot com
2009-11-02 10:31 ` [Bug lto/41902] " rguenth at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bruck dot michael at googlemail dot com @ 2009-11-02 0:55 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/41902] Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared)
2009-11-02 0:55 [Bug lto/41902] New: Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared) bruck dot michael at googlemail dot com
@ 2009-11-02 10:31 ` rguenth at gcc dot gnu dot org
2009-11-02 11:48 ` bruck dot michael at googlemail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-11-02 10:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-11-02 10:31 -------
Works for me with both recent libelf and elfutils. The code didn't really
change recently, so what libelf do you have installed?
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41902
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/41902] Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared)
2009-11-02 0:55 [Bug lto/41902] New: Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared) bruck dot michael at googlemail dot com
2009-11-02 10:31 ` [Bug lto/41902] " rguenth at gcc dot gnu dot org
@ 2009-11-02 11:48 ` bruck dot michael at googlemail dot com
2009-11-05 5:17 ` bruck dot michael at googlemail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bruck dot michael at googlemail dot com @ 2009-11-02 11:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from bruck dot michael at googlemail dot com 2009-11-02 11:47 -------
(In reply to comment #1)
> Works for me with both recent libelf and elfutils. The code didn't really
> change recently, so what libelf do you have installed?
>
libelf-0.8.12
I think I understand what is happening now.
libelf's configure finds a valid elf.h in /usr/include that was installed by
cygwin.
The sys_elf.h switch mechnism is then configured to include that file from
cygwin rather than the elf_repl.h provided by libelf. But cygwin's elf.h lacks
the SHN_XINDEX macro.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41902
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/41902] Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared)
2009-11-02 0:55 [Bug lto/41902] New: Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared) bruck dot michael at googlemail dot com
2009-11-02 10:31 ` [Bug lto/41902] " rguenth at gcc dot gnu dot org
2009-11-02 11:48 ` bruck dot michael at googlemail dot com
@ 2009-11-05 5:17 ` bruck dot michael at googlemail dot com
2009-12-21 5:11 ` davek at gcc dot gnu dot org
2010-04-23 15:39 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: bruck dot michael at googlemail dot com @ 2009-11-05 5:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from bruck dot michael at googlemail dot com 2009-11-05 05:17 -------
libelf maintainer Michael Riepe writes me that one can force libelf to use its
own header using:
libelf_cv_elf_h_works=no ./configure ...
Maybe this info could be added to http://gcc.gnu.org/install/prerequisites.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41902
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/41902] Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared)
2009-11-02 0:55 [Bug lto/41902] New: Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared) bruck dot michael at googlemail dot com
` (2 preceding siblings ...)
2009-11-05 5:17 ` bruck dot michael at googlemail dot com
@ 2009-12-21 5:11 ` davek at gcc dot gnu dot org
2010-04-23 15:39 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: davek at gcc dot gnu dot org @ 2009-12-21 5:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from davek at gcc dot gnu dot org 2009-12-21 05:11 -------
This problem will be resolved in the next few days when I release an official
cygwin distro package for libelf, which will have this issue fixed. HTH :)
--
davek at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |davek at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41902
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/41902] Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared)
2009-11-02 0:55 [Bug lto/41902] New: Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared) bruck dot michael at googlemail dot com
` (3 preceding siblings ...)
2009-12-21 5:11 ` davek at gcc dot gnu dot org
@ 2010-04-23 15:39 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-23 15:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2010-04-23 15:39 -------
Not a gcc bug.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41902
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-04-23 15:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-02 0:55 [Bug lto/41902] New: Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared) bruck dot michael at googlemail dot com
2009-11-02 10:31 ` [Bug lto/41902] " rguenth at gcc dot gnu dot org
2009-11-02 11:48 ` bruck dot michael at googlemail dot com
2009-11-05 5:17 ` bruck dot michael at googlemail dot com
2009-12-21 5:11 ` davek at gcc dot gnu dot org
2010-04-23 15:39 ` rguenth at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).