Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: i386 9.99.17 build fails for NET4501 kernel



I guess we whould disable the messages on this particular file for now as
the others have suggested, and file a PR in LLVM/GCC, because apart from
a compiler bug I don't see what it could be.

Le 17/10/2019 à 09:22, J. Hannken-Illjes a écrit :
Any chance we can build x86 kernels without DIAGNOSTIC again?

Does it need a PR?

--
J. Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig



On 15. Oct 2019, at 17:56, John D. Baker <jdbaker%consolidated.net@localhost> wrote:

On Tue, 15 Oct 2019, Ryo ONODERA wrote:

If the problem is the compiler bug, the patch like the following
may be effective.

[snip]

I applied a similar change for i386 and with it the stock NET4501
config (w/"options DIAGNOSTIC" commented out) builds successfully.

+Index: sys/arch/i386/conf/Makefile.i386
+===================================================================
+RCS file: /cvsroot/src/sys/arch/i386/conf/Makefile.i386,v
+retrieving revision 1.194
+diff -u -p -r1.194 Makefile.i386
+--- sys/arch/i386/conf/Makefile.i386    22 Sep 2018 12:24:02 -0000      1.194
++++ sys/arch/i386/conf/Makefile.i386    15 Oct 2019 15:52:05 -0000
+@@ -44,6 +44,7 @@ CFLAGS+=      -mno-mmx -mno-sse -mno-avx
+ CFLAGS+=       -mindirect-branch=thunk
+ CFLAGS+=       -mindirect-branch-register
+ .endif
++COPTS.vm_machdep.c+=   -Wno-error=clobbered
+
+ ##
+ ## (3) libkern and compat




--
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index