Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2015 18:20:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 198877] CPUTYPE in make.conf gets changed, breaks lang/gcc
Message-ID:  <bug-198877-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 198877
           Summary: CPUTYPE in make.conf gets changed, breaks lang/gcc
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gerald@FreeBSD.org
          Reporter: dieterich.joh@gmail.com
             Flags: maintainer-feedback?(gerald@FreeBSD.org)
          Assignee: gerald@FreeBSD.org

ON CURRENT, if CPUTYPE?=core-avx2 is set in /etc/make.conf, the build system
will automatically translate it to "-march=haswell". While this is correct and
understood by clang, it breaks lang/gcc in the configure step (since the latest
update to lang/gcc) :

configure:3587: /usr/ports/lang/gcc/work/build/./gcc/xgcc
-B/usr/ports/lang/gcc/
work/build/./gcc/ -B/usr/local/x86_64-portbld-freebsd11.0/bin/
-B/usr/local/x86_
64-portbld-freebsd11.0/lib/ -isystem
/usr/local/x86_64-portbld-freebsd11.0/inclu
de -isystem /usr/local/x86_64-portbld-freebsd11.0/sys-include    -c -g -O2
-pipe
 -march=haswell  -DLIBICONV_PLUG -fno-strict-aliasing  conftest.c >&5
conftest.c:1:0: error: bad value (haswell) for -march= switch
 /* confdefs.h */
 ^
configure:3591: $? = 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:3605: error: in
`/usr/ports/lang/gcc/work/build/x86_64-portbld-freebsd
11.0/libgcc':
configure:3608: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

I can reproduce the issue with CPUTYPE?=core-avx-i, which gets translated to
-march=ivybridge.

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