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

            Bug ID: 214173
           Summary: gcc48 doesn't accept -march=nehalem
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
                CC: [email protected]

/usr/share/mk/bsd.cpu.mk in FreeBSD 11 unconditionally convert CPUTYPE=corei7
to CPUTYPE=nehalem. It can cause error in ports built with the default version
of gcc, including gcc itself, ghc, and other ports with USE_GCC=yes.

A simple test:

$ echo 'int main(){}' > main.c
$ gcc48 -march=corei7 main.c && echo "OK"
OK
$ gcc48 -march=nehalem main.c && echo "OK"
main.c:1:0: error: bad value (nehalem) for -march= switch
 int main(){}
 ^

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to