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=229669 --- 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+=${CLANG_NO_IAS}. # unconditionally, and can't easily use the CFLAGS.clang= # mechanism. .if ${COMPILER_TYPE} == "clang" CLANG_NO_IAS= -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 actually 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 -- 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>
