https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69757
--- Comment #8 from Edd Barrett ---
Created attachment 37720
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37720&action=edit
Patches used to bootstrap GCC on OpenBSD/amd64.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69757
--- Comment #7 from Edd Barrett ---
Just to follow this up. I did manage to get GCC bootstrapped by taking a subset
of Pascal Stumpf's patches from OpenBSD ports.
Effectively these patches enable PIE and PIC by default on OpenBSD, which seems
to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69757
--- Comment #6 from Edd Barrett ---
Ah hold on. More information.
If I build a gcc with --disable-bootstrap, the resulting compiler cannot build
an empty C program even:
% /home/vext01/research/warmup_experiment/work/gcc-inst/bin/zgcc /tmp/a.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69757
--- Comment #5 from Edd Barrett ---
I notice that the previous test *did* append -fPIC (and -DPIC). The failing
test does not show its input or compiler invocation, which makes this hard to
debug.
If you look in the libstdc++ configure script, y
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69757
--- Comment #4 from Edd Barrett ---
Created attachment 37662
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37662&action=edit
Correct config.log
Sorry, here's the right config.log
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69757
--- Comment #3 from Andrew Pinski ---
Wrong config.log. I want the one under libstdc++-v3 directory.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69757
--- Comment #2 from Edd Barrett ---
Created attachment 37660
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37660&action=edit
config.log
Attached is the config.log without adjusting CFLAGS and without using
--with-pic.
FWIW, OpenBSD has b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69757
--- Comment #1 from Andrew Pinski ---
Can you attach the config.log ? It might be that PIE needs to enabled by
default instead.