Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Jan 2016 18:27:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 205787] Can't compile freebsd srcs (/usr/src) with clang/llvm 3.8
Message-ID:  <bug-205787-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 205787
           Summary: Can't compile freebsd srcs (/usr/src) with clang/llvm
                    3.8
           Product: Base System
           Version: 10.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: l.andro.cs@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
processor.

Trying to compile the source code installed with Freebsd 10.2 CD (src.txz, =
make
buildworld), using the clang 8.0 (and option -march=3Dhaswell) resulted in =
a lot
of "warnings as errors", switched back to 3.4.1 (and option -march=3Dcorei7=
) 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 stopp=
ed.

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 *(c=
onst
**)&, but 3.8 refuses.

--=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-205787-8>