[Bug 205787] Can't compile freebsd srcs (/usr/src) with clang/llvm 3.8

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 1 18:27:36 UTC 2016


            Bug ID: 205787
           Summary: Can't compile freebsd srcs (/usr/src) with clang/llvm
           Product: Base System
           Version: 10.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: l.andro.cs at gmail.com

My computer has the "haswell" processor (a version of Intel i7), the clang
version that ships with FreeBSD has no knowledge of my processor, only the
"generic" i7, so I installed the clang/llvm 3.8, as it has knowledge of my

Trying to compile the source code installed with Freebsd 10.2 CD (src.txz, make
buildworld), using the clang 8.0 (and option -march=haswell) resulted in a lot
of "warnings as errors", switched back to 3.4.1 (and option -march=corei7) and
all done.

So there is new "checks" made by the 3.8 compiler that isn't compatible with
some included sources in the /usr/src.

Some I tryed to "repair": openpam, libz (zip lib), "jail lib", then I stopped.

The problem is the option to treat warnings as errors, for example, in jail lib
clang 3.4.1 accepts to assign a string of char (char[5] like "aaaa") to *(const
**)&, but 3.8 refuses.

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

More information about the freebsd-bugs mailing list