++
Assignee: unassigned at gcc dot gnu.org
Reporter: edd at theunixzoo dot co.uk
Target Milestone: ---
Hi,
I needed to build a "vanilla" (without all the packaging-related patches in
OpenBSD ports) gcc-4.9.3 on OpenBSD-5.8/amd64.
When building libstdc++ the build bomb
Assignee: unassigned at gcc dot gnu.org
Reporter: edd at theunixzoo dot co.uk
Target Milestone: ---
Hi,
Having worked around #69744, I am able to build GCC-4.9.3 on OpenBSD-5.8/amd64
but not a full bootstrap.
If you build like this:
../configure
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 #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 #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 #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 #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 #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.