public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs
@ 2023-07-13 19:20 townsend at astro dot wisc.edu
  2023-07-13 19:26 ` [Bug middle-end/110659] " townsend at astro dot wisc.edu
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: townsend at astro dot wisc.edu @ 2023-07-13 19:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

            Bug ID: 110659
           Summary: Error from linker: .eh_frame_hdr refers to overlapping
                    FDEs
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: townsend at astro dot wisc.edu
  Target Milestone: ---

I'm running into the following problem during a build of the 13.1.0 release:

x86_64-pc-linux-gnu-g++ -std=c++11   -g -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H  -DGENERATOR_FILE
-static-libstdc++ -static-libgcc  -o build/genenums \
            build/genenums.o build/read-md.o build/errors.o
../build-x86_64-pc-linux-gnu/libiberty/libiberty.a
/home/user/sdk2-tmp/mesasdk/bin/ld: .eh_frame_hdr refers to overlapping FDEs
/home/user/sdk2-tmp/mesasdk/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

This is on Linux with binutils-2.40. Configure as follows:

/home/user/sdk2-tmp/build/gcc/configure CC= CXX= --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--prefix=/home/user/sdk2-tmp/mesasdk --with-gmp=/home/user/sdk2-tmp/mesasdk
--with-mpfr=/home/user/sdk2-tmp/mesasdk --with-mpc=/home/user/sdk2-tmp/mesasdk
--enable-languages=c,c++,fortran --disable-multilib --disable-nls
--disable-libsanitizer --enable-clocale=generic

Wondering whether any of these config flags are what's causing the problem...

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug middle-end/110659] Error from linker: .eh_frame_hdr refers to overlapping FDEs
  2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
@ 2023-07-13 19:26 ` townsend at astro dot wisc.edu
  2023-07-13 19:26 ` pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: townsend at astro dot wisc.edu @ 2023-07-13 19:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

--- Comment #1 from Rich Townsend <townsend at astro dot wisc.edu> ---
I should add that this is on CentOS 5.11, running inside a Docker container.
This ships with a very old binutils, so before trying to compile gcc I
installed binutils 2.40 (built from source with --disable-gprofng).

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug middle-end/110659] Error from linker: .eh_frame_hdr refers to overlapping FDEs
  2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
  2023-07-13 19:26 ` [Bug middle-end/110659] " townsend at astro dot wisc.edu
@ 2023-07-13 19:26 ` pinskia at gcc dot gnu.org
  2023-07-13 19:28 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-13 19:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
What compiler did you start with?
That is what is the output of `x86_64-pc-linux-gnu-g++ -v` ?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug middle-end/110659] Error from linker: .eh_frame_hdr refers to overlapping FDEs
  2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
  2023-07-13 19:26 ` [Bug middle-end/110659] " townsend at astro dot wisc.edu
  2023-07-13 19:26 ` pinskia at gcc dot gnu.org
@ 2023-07-13 19:28 ` pinskia at gcc dot gnu.org
  2023-07-13 19:29 ` townsend at astro dot wisc.edu
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-13 19:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-07-13
             Status|UNCONFIRMED                 |WAITING
     Ever confirmed|0                           |1

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
To build an GCC 13, you might need to bootstrap GCC 10 (which is just c++98
code rather than C++11) and then bootstrap GCC 13.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug middle-end/110659] Error from linker: .eh_frame_hdr refers to overlapping FDEs
  2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
                   ` (2 preceding siblings ...)
  2023-07-13 19:28 ` pinskia at gcc dot gnu.org
@ 2023-07-13 19:29 ` townsend at astro dot wisc.edu
  2023-07-13 19:31 ` townsend at astro dot wisc.edu
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: townsend at astro dot wisc.edu @ 2023-07-13 19:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

--- Comment #4 from Rich Townsend <townsend at astro dot wisc.edu> ---
Someone else seems to have the same problem:

https://stackoverflow.com/questions/76375244/how-can-i-resolve-a-ld-eh-frame-hdr-refers-to-overlapping-fdes-error-during

...although there is no fix suggested.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug middle-end/110659] Error from linker: .eh_frame_hdr refers to overlapping FDEs
  2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
                   ` (3 preceding siblings ...)
  2023-07-13 19:29 ` townsend at astro dot wisc.edu
@ 2023-07-13 19:31 ` townsend at astro dot wisc.edu
  2023-07-13 19:35 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: townsend at astro dot wisc.edu @ 2023-07-13 19:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

--- Comment #5 from Rich Townsend <townsend at astro dot wisc.edu> ---
(In reply to Andrew Pinski from comment #2)
> What compiler did you start with?
> That is what is the output of `x86_64-pc-linux-gnu-g++ -v` ?

[user@60947d0cbd04 ~]$ x86_64-pc-linux-gnu-g++ -v
bash: x86_64-pc-linux-gnu-g++: command not found

[user@60947d0cbd04 ~]$ g++ -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --disable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug middle-end/110659] Error from linker: .eh_frame_hdr refers to overlapping FDEs
  2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
                   ` (4 preceding siblings ...)
  2023-07-13 19:31 ` townsend at astro dot wisc.edu
@ 2023-07-13 19:35 ` pinskia at gcc dot gnu.org
  2023-07-14  2:50 ` townsend at astro dot wisc.edu
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-13 19:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 13 won't build with anything older than GCC 4.8.x as documented at
https://gcc.gnu.org/install/prerequisites.html (which is right now for the
trunk but that requirement has not changed yet).

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug middle-end/110659] Error from linker: .eh_frame_hdr refers to overlapping FDEs
  2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
                   ` (5 preceding siblings ...)
  2023-07-13 19:35 ` pinskia at gcc dot gnu.org
@ 2023-07-14  2:50 ` townsend at astro dot wisc.edu
  2023-07-14  5:54 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: townsend at astro dot wisc.edu @ 2023-07-14  2:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

--- Comment #7 from Rich Townsend <townsend at astro dot wisc.edu> ---
(In reply to Andrew Pinski from comment #6)
> GCC 13 won't build with anything older than GCC 4.8.x as documented at
> https://gcc.gnu.org/install/prerequisites.html (which is right now for the
> trunk but that requirement has not changed yet).

The plot thickens -- I misidentified the compiler, here's the correct id:

[user@0ec987449fdf gcc-build]$ x86_64-pc-linux-gnu-g++ -v
Using built-in specs.
COLLECT_GCC=x86_64-pc-linux-gnu-g++
COLLECT_LTO_WRAPPER=/opt/bootstrap/mesasdk/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/user/sdk2-tmp/build/gcc/configure CC= CXX=
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --prefix=/home/user/sdk2-tmp/mesasdk
--with-gmp=/home/user/sdk2-tmp/mesasdk --with-mpfr=/home/user/sdk2-tmp/mesasdk
--with-mpc=/home/user/sdk2-tmp/mesasdk --enable-languages=c,c++,fortran
--disable-multilib --disable-nls --disable-libsanitizer
--enable-clocale=generic
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.1.0 (GCC) 

So, 12.1.0 should be perfectly capable of building 13.1, right?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug middle-end/110659] Error from linker: .eh_frame_hdr refers to overlapping FDEs
  2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
                   ` (6 preceding siblings ...)
  2023-07-14  2:50 ` townsend at astro dot wisc.edu
@ 2023-07-14  5:54 ` rguenth at gcc dot gnu.org
  2023-07-14 14:44 ` townsend at astro dot wisc.edu
  2024-01-31 19:43 ` danglin at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-14  5:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-linux-gnu

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
yes

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug middle-end/110659] Error from linker: .eh_frame_hdr refers to overlapping FDEs
  2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
                   ` (7 preceding siblings ...)
  2023-07-14  5:54 ` rguenth at gcc dot gnu.org
@ 2023-07-14 14:44 ` townsend at astro dot wisc.edu
  2024-01-31 19:43 ` danglin at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: townsend at astro dot wisc.edu @ 2023-07-14 14:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

--- Comment #9 from Rich Townsend <townsend at astro dot wisc.edu> ---
OK, I managed to get things working by setting

export LDFLAGS='-Wl,--no-eh-frame-hdr'

prior to configuring. I'm hoping this won't affect the functionality of the
built compiler.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug middle-end/110659] Error from linker: .eh_frame_hdr refers to overlapping FDEs
  2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
                   ` (8 preceding siblings ...)
  2023-07-14 14:44 ` townsend at astro dot wisc.edu
@ 2024-01-31 19:43 ` danglin at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: danglin at gcc dot gnu.org @ 2024-01-31 19:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110659

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danglin at gcc dot gnu.org

--- Comment #10 from John David Anglin <danglin at gcc dot gnu.org> ---
I hit this error in stage1 after a small change to pa.cc.  It seems to
have gone after updating to Debian binutils 2.42-2.  I just rebuilt
without any changes to gcc tree.

The error occurred with binutils 2.41.90.20240122-1.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-01-31 19:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-13 19:20 [Bug bootstrap/110659] New: Error from linker: .eh_frame_hdr refers to overlapping FDEs townsend at astro dot wisc.edu
2023-07-13 19:26 ` [Bug middle-end/110659] " townsend at astro dot wisc.edu
2023-07-13 19:26 ` pinskia at gcc dot gnu.org
2023-07-13 19:28 ` pinskia at gcc dot gnu.org
2023-07-13 19:29 ` townsend at astro dot wisc.edu
2023-07-13 19:31 ` townsend at astro dot wisc.edu
2023-07-13 19:35 ` pinskia at gcc dot gnu.org
2023-07-14  2:50 ` townsend at astro dot wisc.edu
2023-07-14  5:54 ` rguenth at gcc dot gnu.org
2023-07-14 14:44 ` townsend at astro dot wisc.edu
2024-01-31 19:43 ` danglin at gcc dot gnu.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).