[Bug 207125] lang/gcc6-devel: (clang used to build) CFLAGS for clang stop portupgrade lang/gcc6-devel

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 12 05:53:49 UTC 2018


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

--- Comment #4 from Mark Millard <marklmi26-fbsd at yahoo.com> ---
(In reply to Martin Wilke from comment #3)

Summary of the below: yes.

If, as a means of testing, I specify:

# svnlite diff /usr/ports/lang/gcc6/Makefile
Index: /usr/ports/lang/gcc6/Makefile
===================================================================
--- /usr/ports/lang/gcc6/Makefile       (revision 468668)
+++ /usr/ports/lang/gcc6/Makefile       (working copy)
@@ -28,7 +28,7 @@
 .endif

 CONFLICTS=     gcc6-devel-6.*
-
+CFLAGS=-target x86_64-unknown-freebsd12.0
 CPE_VENDOR=    gnu

 GCC_VERSION=   ${PORTVERSION}

for use on an amd64 head context and I then attempt
(as a means of testing, I normally use poudriere-devel )

portmaster -DK lang/gcc6

I still get:


checking for x86_64-portbld-freebsd12.0-gcc...
/wrkdirs/usr/ports/lang/gcc6/work/.build/./gcc/xgcc
-B/wrkdirs/usr/ports/lang/gcc6/work/.build/./gcc/
-B/usr/local/x86_64-portbld-freebsd12.0/bin/
-B/usr/local/x86_64-portbld-freebsd12.0/lib/ -isystem
/usr/local/x86_64-portbld-freebsd12.0/include -isystem
/usr/local/x86_64-portbld-freebsd12.0/sys-include
checking for suffix of object files... configure: error: in
`/wrkdirs/usr/ports/lang/gcc6/work/.build/x86_64-portbld-freebsd12.0/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


And the config.log still shows (from a recursive grep):

/wrkdirs/usr/ports/lang/gcc6/work/.build/x86_64-portbld-freebsd12.0/libgcc/config.log:xgcc:
error: unrecognized command line option '-target'; did you mean '-ftarget='?


So one has to keep the CFLAGS as compatible with both clang and the xgcc
that is used in the full bootstrap of gcc6 .

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list