public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/110467] New: Bootstrap with Ada enabled fails with --enable-host-pie
@ 2023-06-28 19:37 mpolacek at gcc dot gnu.org
  2023-06-28 19:38 ` [Bug bootstrap/110467] " mpolacek at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-06-28 19:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110467
           Summary: Bootstrap with Ada enabled fails with
                    --enable-host-pie
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

Since r14-2132:

commit 4a48a38fa99f067b8f3a3d1a5dc7a1e602db351f
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Wed Jun 21 18:19:36 2023 +0200

    ada: Fix build of GNAT tools

gcc configured with e.g.

.../gcc/configure --enable-languages=all --prefix=`pwd` --enable-checking=yes
--with-gnu-ld --with-gnu-as --disable-libsanitizer --disable-bootstrap
--enable-host-pie

fails:

/usr/bin/ld: b_gnatl.o: relocation R_X86_64_32S against `.rodata' can not be
used when making a PIE object; recompile with -fPIE
/usr/bin/ld: gnatlink.o: relocation R_X86_64_32 against `.rodata.str1.1' can
not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: a-except.o: relocation R_X86_64_32S against `.rodata' can not be
used when making a PIE object; recompile with -fPIE
/usr/bin/ld: ali.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be
used when making a PIE object; recompile with -fPIE
/usr/bin/ld: butil.o: relocation R_X86_64_32S against `.rodata' can not be used
when making a PIE object; recompile with -fPIE
/usr/bin/ld: casing.o: relocation R_X86_64_32S against symbol
`csets__identifier_char' can not be used when making a PIE object; recompile
with -fPIE
/usr/bin/ld: csets.o: relocation R_X86_64_32S against `.rodata' can not be used
when making a PIE object; recompile with -fPIE
/usr/bin/ld: debug.o: relocation R_X86_64_32S against `.rodata' can not be used
when making a PIE object; recompile with -fPIE
/usr/bin/ld: fmap.o: relocation R_X86_64_32S against `.bss' can not be used
when making a PIE object; recompile with -fPIE
/usr/bin/ld: fname.o: relocation R_X86_64_32 against `.rodata' can not be used
when making a PIE object; recompile with -fPIE
/usr/bin/ld: gnatvsn.o: relocation R_X86_64_32S against symbol
`gnat_version_string' can not be used when making a PIE object; recompile with
-fPIE
/usr/bin/ld: hostparm.o: relocation R_X86_64_32 against `.rodata.str1.1' can
not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: i-c.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be
used when making a PIE object; recompile with -fPIE
/usr/bin/ld: i-cstrin.o: relocation R_X86_64_32 against `.rodata.str1.1' can
not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: namet.o: relocation R_X86_64_32S against `.rodata' can not be used
when making a PIE object; recompile with -fPIE
/usr/bin/ld: opt.o: relocation R_X86_64_32S against `.rodata' can not be used
when making a PIE object; recompile with -fPIE
/usr/bin/ld: osint.o: relocation R_X86_64_32 against `.rodata' can not be used
when making a PIE object; recompile with -fPIE
/usr/bin/ld: output.o: relocation R_X86_64_32 against `.rodata.str1.1' can not
be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: s-exctab.o: relocation R_X86_64_32S against symbol
`system__exception_table__htable' can not be used when making a PIE object;
recompile with -fPIE
/usr/bin/ld: s-secsta.o: relocation R_X86_64_32 against `.rodata.str1.1' can
not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: snames.o: relocation R_X86_64_32 against `.rodata.str1.8' can not
be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: stylesw.o: relocation R_X86_64_32 against `.rodata.str1.1' can not
be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: switch.o: relocation R_X86_64_32 against `.rodata' can not be used
when making a PIE object; recompile with -fPIE
/usr/bin/ld: targparm.o: relocation R_X86_64_32S against symbol
`namet__global_name_buffer' can not be used when making a PIE object; recompile
with -fPIE
/usr/bin/ld: types.o: relocation R_X86_64_32 against `.rodata.str1.1' can not
be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: validsw.o: relocation R_X86_64_32S against `.rodata' can not be
used when making a PIE object; recompile with -fPIE
/usr/bin/ld: widechar.o: relocation R_X86_64_32 against `.rodata' can not be
used when making a PIE object; recompile with -fPIE

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

* [Bug bootstrap/110467] Bootstrap with Ada enabled fails with --enable-host-pie
  2023-06-28 19:37 [Bug bootstrap/110467] New: Bootstrap with Ada enabled fails with --enable-host-pie mpolacek at gcc dot gnu.org
@ 2023-06-28 19:38 ` mpolacek at gcc dot gnu.org
  2023-06-30  9:10 ` ebotcazou at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-06-28 19:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Further context:
https://gcc.gnu.org/pipermail/gcc-patches/2023-June/622981.html

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

* [Bug bootstrap/110467] Bootstrap with Ada enabled fails with --enable-host-pie
  2023-06-28 19:37 [Bug bootstrap/110467] New: Bootstrap with Ada enabled fails with --enable-host-pie mpolacek at gcc dot gnu.org
  2023-06-28 19:38 ` [Bug bootstrap/110467] " mpolacek at gcc dot gnu.org
@ 2023-06-30  9:10 ` ebotcazou at gcc dot gnu.org
  2023-06-30 13:50 ` mpolacek at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2023-06-30  9:10 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-06-30
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Confirmed, but

Author: Marek Polacek <polacek@redhat.com>
Date:   Wed May 3 17:06:13 2023 -0400

    configure: Implement --enable-host-pie
ada/
     * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove NO_PIE_CFLAGS.  Add
     PICFLAG.  Use PICFLAG when building ada/b_gnat1.o and ada/b_gnatb.o.
     * gcc-interface/Makefile.in: Use pic/libiberty.a if PICFLAG is set.
     Remove NO_PIE_FLAG.

had first broken --enable-default-pie (and AFAICS was not approved by an Ada
maintainer), so the aforementioned change restored the previous working state.

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

* [Bug bootstrap/110467] Bootstrap with Ada enabled fails with --enable-host-pie
  2023-06-28 19:37 [Bug bootstrap/110467] New: Bootstrap with Ada enabled fails with --enable-host-pie mpolacek at gcc dot gnu.org
  2023-06-28 19:38 ` [Bug bootstrap/110467] " mpolacek at gcc dot gnu.org
  2023-06-30  9:10 ` ebotcazou at gcc dot gnu.org
@ 2023-06-30 13:50 ` mpolacek at gcc dot gnu.org
  2023-06-30 15:36 ` ebotcazou at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-06-30 13:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Eric Botcazou from comment #2)
> Confirmed, but
> 
> Author: Marek Polacek <polacek@redhat.com>
> Date:   Wed May 3 17:06:13 2023 -0400
> 
>     configure: Implement --enable-host-pie
> ada/
>      * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove NO_PIE_CFLAGS.  Add
>      PICFLAG.  Use PICFLAG when building ada/b_gnat1.o and ada/b_gnatb.o.
>      * gcc-interface/Makefile.in: Use pic/libiberty.a if PICFLAG is set.
>      Remove NO_PIE_FLAG.
> 
> had first broken --enable-default-pie (and AFAICS was not approved by an Ada
> maintainer), so the aforementioned change restored the previous working
> state.

You were CC'd here:
<https://gcc.gnu.org/pipermail/gcc-patches/2023-May/618954.html>, FWIW.

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

* [Bug bootstrap/110467] Bootstrap with Ada enabled fails with --enable-host-pie
  2023-06-28 19:37 [Bug bootstrap/110467] New: Bootstrap with Ada enabled fails with --enable-host-pie mpolacek at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-06-30 13:50 ` mpolacek at gcc dot gnu.org
@ 2023-06-30 15:36 ` ebotcazou at gcc dot gnu.org
  2023-07-01 14:41 ` mpolacek at gcc dot gnu.org
  2023-07-05 11:12 ` simon at pushface dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2023-06-30 15:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> You were CC'd here:
> <https://gcc.gnu.org/pipermail/gcc-patches/2023-May/618954.html>, FWIW.

I totally missed it, sorry about that. :-(

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

* [Bug bootstrap/110467] Bootstrap with Ada enabled fails with --enable-host-pie
  2023-06-28 19:37 [Bug bootstrap/110467] New: Bootstrap with Ada enabled fails with --enable-host-pie mpolacek at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2023-06-30 15:36 ` ebotcazou at gcc dot gnu.org
@ 2023-07-01 14:41 ` mpolacek at gcc dot gnu.org
  2023-07-05 11:12 ` simon at pushface dot org
  5 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-07-01 14:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Eric Botcazou from comment #4)
> > You were CC'd here:
> > <https://gcc.gnu.org/pipermail/gcc-patches/2023-May/618954.html>, FWIW.
> 
> I totally missed it, sorry about that. :-(

No problem, sorry for not pinging you about it.  I'll make sure to CC you when
I post a fix for this PR.

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

* [Bug bootstrap/110467] Bootstrap with Ada enabled fails with --enable-host-pie
  2023-06-28 19:37 [Bug bootstrap/110467] New: Bootstrap with Ada enabled fails with --enable-host-pie mpolacek at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2023-07-01 14:41 ` mpolacek at gcc dot gnu.org
@ 2023-07-05 11:12 ` simon at pushface dot org
  5 siblings, 0 replies; 7+ messages in thread
From: simon at pushface dot org @ 2023-07-05 11:12 UTC (permalink / raw)
  To: gcc-bugs

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

simon at pushface dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon at pushface dot org

--- Comment #6 from simon at pushface dot org ---
I hadn't spotted this, so attempted an Ada build with gcc-14-20230702 and got
this:

make[3]: *** No rule to make target `../libiberty/pic/libiberty.a', needed by
`cc1-checksum.cc'.  Stop.
make[3]: Leaving directory
`/Volumes/Miscellaneous3/x86_64/gcc-14-20230702/gcc/gcc'

gcc-14-20230702/gcc/ is automatically configured with --enable-host-pie, should
libliberty/ be also?

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

end of thread, other threads:[~2023-07-05 11:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-28 19:37 [Bug bootstrap/110467] New: Bootstrap with Ada enabled fails with --enable-host-pie mpolacek at gcc dot gnu.org
2023-06-28 19:38 ` [Bug bootstrap/110467] " mpolacek at gcc dot gnu.org
2023-06-30  9:10 ` ebotcazou at gcc dot gnu.org
2023-06-30 13:50 ` mpolacek at gcc dot gnu.org
2023-06-30 15:36 ` ebotcazou at gcc dot gnu.org
2023-07-01 14:41 ` mpolacek at gcc dot gnu.org
2023-07-05 11:12 ` simon at pushface 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).