Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Jan 2016 23:15:32 +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 and option -march=haswell
Message-ID:  <bug-205787-8-bTIIhTozt3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-205787-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-205787-8@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #4 from Dimitry Andric <dim@FreeBSD.org> ---
Without any further information, I'm guessing that your bsd.compiler.mk does
not detect the compiler version properly, and that incorrect flags are being
used to compile boot2.  (The whole sys/boot area is very sensitive to the e=
xact
optimization flags, it will almost always grow too large if they aren't
correct.)

Can you provide a log of the commands being used to compile everything under
/usr/src/sys/boot?  For example, by running "make clean" in there, and then
running make as usual, but redirected to a log file.

I'm also interested in the COMPILER_TYPE and COMPILER_VERSION detected by y=
our
version of the build system.  E.g. in /usr/src, run:

make -V COMPILER_TYPE -V COMPILER_VERSION

and paste the output here.

Having said all that, I think you will run into multiple problems that will=
 be
pretty tricky to solve, if you continue this way.  10.2-RELEASE is complete=
ly
frozen, and misses a lot of important fixes and updates which are in 10-STA=
BLE,
making the task even more difficult.

Therefore, I think it is wisest to abandon this attempt.  You will most lik=
ely
not gain any significant performance advantage by compiling with
-march=3Dhaswell, as opposed to e.g. -march=3Dcorei7.

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