Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2018 14:58:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 229669] kernel build fails
Message-ID:  <bug-229669-227-JwrsvDZj47@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-229669-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-229669-227@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=3D229669

--- Comment #4 from Frank Leonhardt <freebsd-doc@fjl.co.uk> ---
I've had a look around.

What's happening?

clang is using it's internal assembler instead of calling the system one. It
chokes on the syntax.

Why is it happening?

There's a flag to stop it - "-no-integrated-as". This should be set in
/usr/share/mk/bsd.sys.mk:

----
# We need this conditional because many places that use it
# only enable it for some files with CLFAGS.$FILE+=3D${CLANG_NO_IAS}.
# unconditionally, and can't easily use the CFLAGS.clang=3D
# mechanism.
.if ${COMPILER_TYPE} =3D=3D "clang"
CLANG_NO_IAS=3D    -no-integrated-as
.endif
----

For some reason, on the Azure version, it isn't. I have a nasty feeling that
the make code that figures out which compiler it should be using isn't actu=
ally
working, and COMPILER_TYPE may not be setting properly. I'll find out if it=
's
worse after building the kernel, which takes AGES on Azure.

Work around?

You can over-ride CC

--=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-229669-227-JwrsvDZj47>