[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
Fri Feb 12 08:56:06 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207125
Bug ID: 207125
Summary: lang/gcc6-devel: (clang used to build) CFLAGS for
clang stop portupgrade lang/gcc6-devel
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: gerald at FreeBSD.org
Reporter: markmi at dsl-only.net
Flags: maintainer-feedback?(gerald at FreeBSD.org)
Assignee: gerald at FreeBSD.org
I was doing a portupgrade lang/gcc6-devel based on make.conf as shown below
(note the CFLAGS is for clang which is in use to build gcc6-devel):
# more /etc/make.conf
DEFAULT_VERSIONS+=perl5=5.22
WRKDIRPREFIX=/usr/obj/portswork
#WITH_DEBUG=
WITH_DEBUG_FILES=
MALLOC_PRODUCTION=
TO_TYPE=armv6
TOOLS_TO_TYPE=arm-gnueabi
VERSION_CONTEXT=11.0
CFLAGS+=-target ${TO_TYPE}--freebsd${VERSION_CONTEXT}-gnueabi -march=armv7-a
-mcpu=cortex-a7 -mfloat-abi=softfp -mno-unaligned-access
.if ${.MAKE.LEVEL} == 0
CC=/usr/bin/clang
CXX=/usr/bin/clang++
CPP=/usr/bin/clang-cpp
.export CC
.export CXX
.export CPP
.endif
The result was a failure from the CFLAGS being used for a . . .
/work/build/./gcc/xgcc command during a configure activity:
# more
/usr/obj/portswork/usr/ports/lang/gcc6-devel/work/build/armv6-portbld-freebsd11.0/libgcc/config.log
. . .
configure:3653: checking for suffix of object files
configure:3675:
/usr/obj/portswork/usr/ports/lang/gcc6-devel/work/build/./gcc/xgcc
-B/usr/obj/portswork/usr/ports/lang/gcc6-devel/work/build/./gcc/
-B/usr/local/armv6-portbld-freebsd11.0/bin/ -B/usr/l
ocal/armv6-portbld-freebsd11.0/lib/ -isystem
/usr/local/armv6-portbld-freebsd11.0/include -isystem
/usr/local/armv6-portbld-freebsd11.0/sys-include -c -g -O2 -O -pipe -target
armv6--freebsd11.0-gnu
eabi -march=armv7-a -mcpu=cortex-a7 -mfloat-abi=softfp -mno-unaligned-access
-mfloat-abi=softfp -DLIBICONV_PLUG -fno-strict-aliasing conftest.c >&5
xgcc: error: armv6--freebsd11.0-gnueabi: No such file or directory
xgcc: error: unrecognized command line option '-target'; did you mean
'-ftarget='?
configure:3679: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3693: error: in
`/usr/obj/portswork/usr/ports/lang/gcc6-devel/work/build/armv6-portbld-freebsd11.0/libgcc':
configure:3696: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
. . .
That results in the overall make aborting:
checking for suffix of object files... configure: error: in
`/usr/obj/portswork/usr/ports/lang/gcc6-devel/work/build/armv6-portbld-freebsd11.0/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:11385: recipe for target 'configure-target-libgcc' failed
gmake[3]: *** [configure-target-libgcc] Error 1
gmake[3]: *** Waiting for unfinished jobs....
. . .
gmake[3]: Leaving directory
'/usr/obj/portswork/usr/ports/lang/gcc6-devel/work/build'
Makefile:876: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
'/usr/obj/portswork/usr/ports/lang/gcc6-devel/work/build'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/lang/gcc6-devel
*** Error code 1
I will try others styles of having CFLAGS in make.conf but I figured I'd report
about make.conf polluting the internal configuration tests during the
gcc6-devel build. (Possibly true of building other gccN's?)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list