public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/98324] New: [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie
@ 2020-12-16 17:34 doko at debian dot org
  2020-12-16 17:56 ` [Bug bootstrap/98324] " nathan at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: doko at debian dot org @ 2020-12-16 17:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98324
           Summary: [11 Regression] bootstrap broken with a LTO build
                    configured with --enable-default-pie
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at debian dot org
  Target Milestone: ---

seen with the trunk after the c++modules merge:

configured with:

         --enable-default-pie
         --enable-checking=yes,extra,rtl
         --with-build-config=bootstrap-lto-lean

/packages/gcc/11/gcc-11-11-20201216/build/./gcc/xg++
-B/packages/gcc/11/gcc-11-11-20201216/build/./gcc/ -nostdinc++ -nostdinc++
-I/packages/gcc/11/gcc-11-11-20201216/build/x86_64-linux-gnu/libstdc++-v3/include/x86_64-linux-gnu
-I/packages/gcc/11/gcc-11-11-20201216/build/x86_64-linux-gnu/libstdc++-v3/include
-I/packages/gcc/11/gcc-11-11-20201216/src/libstdc++-v3/libsupc++
-I/packages/gcc/11/gcc-11-11-20201216/src/libstdc++-v3/include/backward
-I/packages/gcc/11/gcc-11-11-20201216/src/libstdc++-v3/testsuite/util
-L/packages/gcc/11/gcc-11-11-20201216/build/x86_64-linux-gnu/libstdc++-v3/src
-L/packages/gcc/11/gcc-11-11-20201216/build/x86_64-linux-gnu/libstdc++-v3/src/.libs
-L/packages/gcc/11/gcc-11-11-20201216/build/x86_64-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/packages/gcc/11/gcc-11-11-20201216/build/x86_64-linux-gnu/libstdc++-v3/src/.libs
-B/packages/gcc/11/gcc-11-11-20201216/build/x86_64-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/x86_64-linux-gnu/bin/ -B/usr/x86_64-linux-gnu/lib/ -isystem
/usr/x86_64-linux-gnu/include -isystem /usr/x86_64-linux-gnu/sys-include
-isystem /packages/gcc/11/gcc-11-11-20201216/build/sys-include     -o
g++-mapper-server server.o resolver.o ../libcody/libcody.a ../gcc/version.o
../libiberty/libiberty.a
/usr/bin/x86_64-linux-gnu-ld: /tmp/cco6ffKB.ltrans0.ltrans.o: relocation
R_X86_64_32S against `.rodata.str1.1' can not be used when making a PIE object;
recompile with -fPIE
collect2: error: ld returned 1 exit status
make: *** [Makefile:83: g++-mapper-server] Error 1

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

* [Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie
  2020-12-16 17:34 [Bug bootstrap/98324] New: [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie doko at debian dot org
@ 2020-12-16 17:56 ` nathan at gcc dot gnu.org
  2020-12-16 20:14 ` nathan at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-16 17:56 UTC (permalink / raw)
  To: gcc-bugs

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

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2020-12-16
     Ever confirmed|0                           |1
           Assignee|unassigned at gcc dot gnu.org      |nathan at gcc dot gnu.org

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

* [Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie
  2020-12-16 17:34 [Bug bootstrap/98324] New: [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie doko at debian dot org
  2020-12-16 17:56 ` [Bug bootstrap/98324] " nathan at gcc dot gnu.org
@ 2020-12-16 20:14 ` nathan at gcc dot gnu.org
  2020-12-21 14:33 ` nathan at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-16 20:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
need to copy some more libcpp configurey bits ...

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

* [Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie
  2020-12-16 17:34 [Bug bootstrap/98324] New: [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie doko at debian dot org
  2020-12-16 17:56 ` [Bug bootstrap/98324] " nathan at gcc dot gnu.org
  2020-12-16 20:14 ` nathan at gcc dot gnu.org
@ 2020-12-21 14:33 ` nathan at gcc dot gnu.org
  2020-12-22 13:22 ` nathan at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-21 14:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Created attachment 49821
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49821&action=edit
add pie

try this patch on top of:

626b63d63a2 2020-12-21 | libcody: Add ranlib

I could reproduce the error, and this is now working for me (with the patch)

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

* [Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie
  2020-12-16 17:34 [Bug bootstrap/98324] New: [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie doko at debian dot org
                   ` (2 preceding siblings ...)
  2020-12-21 14:33 ` nathan at gcc dot gnu.org
@ 2020-12-22 13:22 ` nathan at gcc dot gnu.org
  2020-12-23  8:23 ` doko at debian dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-22 13:22 UTC (permalink / raw)
  To: gcc-bugs

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

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING

--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Please let me know if the attached patch works for you or not.

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

* [Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie
  2020-12-16 17:34 [Bug bootstrap/98324] New: [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie doko at debian dot org
                   ` (3 preceding siblings ...)
  2020-12-22 13:22 ` nathan at gcc dot gnu.org
@ 2020-12-23  8:23 ` doko at debian dot org
  2020-12-23 12:55 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: doko at debian dot org @ 2020-12-23  8:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Matthias Klose <doko at debian dot org> ---
that's working now.

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

* [Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie
  2020-12-16 17:34 [Bug bootstrap/98324] New: [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie doko at debian dot org
                   ` (4 preceding siblings ...)
  2020-12-23  8:23 ` doko at debian dot org
@ 2020-12-23 12:55 ` cvs-commit at gcc dot gnu.org
  2020-12-23 12:56 ` nathan at gcc dot gnu.org
  2021-12-15 14:34 ` rdiezmail-gcc at yahoo dot de
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-23 12:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Sidwell <nathan@gcc.gnu.org>:

https://gcc.gnu.org/g:544f477536010f055c26bc959b18fccf67902750

commit r11-6314-g544f477536010f055c26bc959b18fccf67902750
Author: Nathan Sidwell <nathan@acm.org>
Date:   Wed Dec 23 04:50:00 2020 -0800

    c++tools:  Fix PIE  [PR 98324]

    This adds --enable-default-pie support to c++tools, so that the sample
    server is build -fPIE if requested.

            PR bootstrap/98324
            c++tools/
            * Makefile.in: Add FLAGPIE.
            * configure.ac: Add --enable-default-pie support.
            * configure: Rebuilt.

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

* [Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie
  2020-12-16 17:34 [Bug bootstrap/98324] New: [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie doko at debian dot org
                   ` (5 preceding siblings ...)
  2020-12-23 12:55 ` cvs-commit at gcc dot gnu.org
@ 2020-12-23 12:56 ` nathan at gcc dot gnu.org
  2021-12-15 14:34 ` rdiezmail-gcc at yahoo dot de
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-23 12:56 UTC (permalink / raw)
  To: gcc-bugs

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

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Thanks for confirming!

544f4775360 2020-12-23 | c++tools:  Fix PIE  [PR 98324]

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

* [Bug bootstrap/98324] [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie
  2020-12-16 17:34 [Bug bootstrap/98324] New: [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie doko at debian dot org
                   ` (6 preceding siblings ...)
  2020-12-23 12:56 ` nathan at gcc dot gnu.org
@ 2021-12-15 14:34 ` rdiezmail-gcc at yahoo dot de
  7 siblings, 0 replies; 9+ messages in thread
From: rdiezmail-gcc at yahoo dot de @ 2021-12-15 14:34 UTC (permalink / raw)
  To: gcc-bugs

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

R. Diez <rdiezmail-gcc at yahoo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rdiezmail-gcc at yahoo dot de

--- Comment #7 from R. Diez <rdiezmail-gcc at yahoo dot de> ---
I have been building cross-compiler toolchains for years with makefiles similar
to this one:

https://github.com/rdiez/JtagDue/blob/master/Toolchain/Makefile

I am trying to upgrade that makefile from GCC 10.2 to GCC 11.2, and I am
getting exactly the same problem that this bug describes.

I checked, and the fix linked from this bug is included in version 11.2 .

However, I have never used option "--enable-default-pie" in the past, and I was
able build cross-toolchains with many GCC versions without it for years.

The target is actually an embedded ARM Cortex-M3 microcontroller with fixed
memory addresses (a "bare metal" firmware without OS), so I guess that I do not
really need PIE. It may even cost some performance, if I understand what PIE
does.

I am guessing that bootstrapping a cross-compiler GCC is still broken with its
default PIE setting.

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

end of thread, other threads:[~2021-12-15 14:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 17:34 [Bug bootstrap/98324] New: [11 Regression] bootstrap broken with a LTO build configured with --enable-default-pie doko at debian dot org
2020-12-16 17:56 ` [Bug bootstrap/98324] " nathan at gcc dot gnu.org
2020-12-16 20:14 ` nathan at gcc dot gnu.org
2020-12-21 14:33 ` nathan at gcc dot gnu.org
2020-12-22 13:22 ` nathan at gcc dot gnu.org
2020-12-23  8:23 ` doko at debian dot org
2020-12-23 12:55 ` cvs-commit at gcc dot gnu.org
2020-12-23 12:56 ` nathan at gcc dot gnu.org
2021-12-15 14:34 ` rdiezmail-gcc at yahoo dot de

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).