Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Feb 2016 08:56:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-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-13@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: markmi@dsl-only.net
             Flags: maintainer-feedback?(gerald@FreeBSD.org)
          Assignee: gerald@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+=3Dperl5=3D5.22
WRKDIRPREFIX=3D/usr/obj/portswork
#WITH_DEBUG=3D
WITH_DEBUG_FILES=3D
MALLOC_PRODUCTION=3D
TO_TYPE=3Darmv6
TOOLS_TO_TYPE=3Darm-gnueabi
VERSION_CONTEXT=3D11.0
CFLAGS+=3D-target ${TO_TYPE}--freebsd${VERSION_CONTEXT}-gnueabi -march=3Dar=
mv7-a
-mcpu=3Dcortex-a7 -mfloat-abi=3Dsoftfp -mno-unaligned-access
.if ${.MAKE.LEVEL} =3D=3D 0
CC=3D/usr/bin/clang
CXX=3D/usr/bin/clang++
CPP=3D/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-freeb=
sd11.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 -tar=
get
armv6--freebsd11.0-gnu
eabi -march=3Darmv7-a -mcpu=3Dcortex-a7 -mfloat-abi=3Dsoftfp -mno-unaligned=
-access
-mfloat-abi=3Dsoftfp  -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=3D'?
configure:3679: $? =3D 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-free=
bsd11.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-free=
bsd11.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'
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes 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 re=
port
about make.conf polluting the internal configuration tests during the
gcc6-devel build. (Possibly true of building other gccN's?)

--=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-13>