Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 May 2018 05:53:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 207125] lang/gcc6-devel: (clang used to build) CFLAGS for clang stop portupgrade lang/gcc6-devel
Message-ID:  <bug-207125-7788-u6gEQ7nvYk@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207125-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207125-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207125

--- Comment #4 from Mark Millard <marklmi26-fbsd@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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- /usr/ports/lang/gcc6/Makefile       (revision 468668)
+++ /usr/ports/lang/gcc6/Makefile       (working copy)
@@ -28,7 +28,7 @@
 .endif

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

 GCC_VERSION=3D   ${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=
=3D'?


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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207125-7788-u6gEQ7nvYk>