[Bug 245511] lang/gcc9: build with base GCC on powerpc64 elfv1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 7 23:19:46 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245511

--- Comment #17 from Gerald Pfeifer <gerald at FreeBSD.org> ---
(In reply to Piotr Kubaj from comment #16)
> If you suggest there might be new build errors for some ports getting 
> built with gcc9, there are none now.

Interesting, given how broken that bootstrap compiler appears to be.

> And I don't think the quality of gcc9-generated binaries will regress.

It definitely will in terms of target libraries.  That is what
CFLAGS_FOR_TARGET="-O0" CXXFLAGS_FOR_TARGET="-O0" does.

Thank you for sharing those snippets from the various build attempts.
It appears they all fail in stage 1, trying to build target libraries.
So ideally we'd need to only tone down everything related to stage 1
- unlike the current patch which tones down the target libraries in
stage 3 even and all the other stage1-3 compilers as well - I just am
not sure how to go about that. 

Looking at the first attempt, where you noted STAGE1_TFLAGS="-O0", it
appears the compiler invocation was effectively done with -O2.  I am
wondering whether setting STAGE1_CFLAGS and STAGE1_CXXFLAGS might help.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ppc mailing list