[Bug 224217] [patch] Fix cross build of base/ ports
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Feb 1 17:55:43 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224217
Steve Wills <swills at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #190229|0 |1
is obsolete| |
--- Comment #11 from Steve Wills <swills at FreeBSD.org> ---
Created attachment 190251
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=190251&action=edit
Updated patch
Here's an updated patch which for me allows the built compiler to generate
binaries if I pass -sysroot and -isystem. The OSREL has to be in the --target
due to this change:
https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config.gcc?r1=222192&r2=222191&pathrev=222192
that was introduced due to this bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65535
When the --target and --host don't match, gcc's configure decides you're
building a cross compiler, which we aren't doing here. So unfortunately it
seems like the right thing to do is make --target and --host match and to have
the OSREL in both for both gcc and binutils.
This change does that and after updating and rebuilding everything I seem to
have a working compiler.
Please test and see if this fixes the issues reported in this bug and the other
bugs mentioned.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-pkg
mailing list