Re: mac68k kern-INSTALL vs GCC7?
On Fri, 15 Feb 2019, Jaromir Dolecek wrote: > Maybe something like this? > > https://www.netbsd.org/~jdolecek/mac68k_intr_gcc7.diff With this the build succeeds. Will check Matthew Green's version after the next round of updates. -- |/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ / jdbaker[snail]consolidated[flyspeck]net OpenBSDFreeBSD | X No HTML/proprietary data in email. BSD just sits there and works! |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
daily CVS update output
Updating src tree: P src/lib/libedit/readline.c P src/lib/libedit/terminal.c P src/lib/libedit/readline/readline.h P src/lib/libnvmm/libnvmm_x86.c P src/sys/arch/amd64/amd64/genassym.cf P src/sys/arch/amd64/amd64/vector.S P src/sys/arch/amd64/conf/GENERIC P src/sys/arch/amd64/conf/files.amd64 P src/sys/arch/i386/conf/GENERIC P src/sys/arch/i386/conf/files.i386 P src/sys/arch/i386/i386/genassym.cf P src/sys/arch/i386/i386/vector.S P src/sys/arch/sparc64/sparc64/trap.c P src/sys/arch/x86/conf/files.x86 P src/sys/arch/x86/include/cpu.h P src/sys/arch/x86/include/intrdefs.h P src/sys/arch/x86/isa/clock.c P src/sys/arch/x86/x86/cpu.c U src/sys/arch/x86/x86/hyperv.c U src/sys/arch/x86/x86/hypervreg.h P src/sys/arch/x86/x86/intr.c P src/sys/arch/x86/x86/lapic.c P src/sys/arch/x86/x86/x86_machdep.c U src/sys/dev/acpi/vmbus_acpi.c P src/sys/dev/acpi/acpica/OsdHardware.c U src/sys/dev/hyperv/files.hyperv U src/sys/dev/hyperv/hvheartbeat.c U src/sys/dev/hyperv/hvs.c U src/sys/dev/hyperv/hvshutdown.c U src/sys/dev/hyperv/hvtimesync.c U src/sys/dev/hyperv/hyperv_common.c U src/sys/dev/hyperv/hypervreg.h U src/sys/dev/hyperv/hypervvar.h U src/sys/dev/hyperv/if_hvn.c U src/sys/dev/hyperv/if_hvnreg.h U src/sys/dev/hyperv/vmbus.c U src/sys/dev/hyperv/vmbusic.c U src/sys/dev/hyperv/vmbusicreg.h U src/sys/dev/hyperv/vmbusicvar.h U src/sys/dev/hyperv/vmbusvar.h U src/sys/dev/ic/ndisreg.h P src/sys/dev/ic/rndisreg.h P src/sys/dev/nvmm/x86/nvmm_x86_svm.c P src/sys/dev/nvmm/x86/nvmm_x86_vmx.c P src/sys/external/bsd/libnv/dist/nvpair.c P src/sys/kern/tty_pty.c P src/sys/netinet/sctp_usrreq.c P src/tests/kernel/kqueue/read/t_ttypty.c P src/tests/lib/libc/sys/t_ptrace_wait.c Updating xsrc tree: Killing core files: Updating tar files: src/top-level: collecting... replacing... done src/bin: collecting... replacing... done src/common: collecting... replacing... done src/compat: collecting... replacing... done src/crypto: collecting... replacing... done src/dist: collecting... replacing... done src/distrib: collecting... replacing... done src/doc: collecting... replacing... done src/etc: collecting... replacing... done src/external: collecting... replacing... done src/extsrc: collecting... replacing... done src/games: collecting... replacing... done src/gnu: collecting...pax: Unable to access src/gnu (No such file or directory) pax: WARNING! These file names were not selected: src/gnu done src/include: collecting... replacing... done src/lib: collecting... replacing... done src/libexec: collecting... replacing... done src/regress: collecting... replacing... done src/rescue: collecting... replacing... done src/sbin: collecting... replacing... done src/share: collecting... replacing... done src/sys: collecting... replacing... done src/tests: collecting... replacing... done src/tools: collecting... replacing... done src/usr.bin: collecting... replacing... done src/usr.sbin: collecting... replacing... done src/config: collecting... replacing... done src: collecting... replacing... done xsrc/top-level: collecting... replacing... done xsrc/external: collecting... replacing... done xsrc/local: collecting... replacing... done xsrc: collecting... replacing... done Updating release-7 src tree (netbsd-7): Updating release-7 xsrc tree (netbsd-7): Updating release-7 tar files: src/top-level: collecting... replacing... done src/bin: collecting... replacing... done src/common: collecting... replacing... done src/compat: collecting... replacing... done src/crypto: collecting... replacing... done src/dist: collecting... replacing... done src/distrib: collecting... replacing... done src/doc: collecting... replacing... done src/etc: collecting... replacing... done src/external: collecting... replacing... done src/extsrc: collecting... replacing... done src/games: collecting... replacing... done src/gnu: collecting... replacing... done src/include: collecting... replacing... done src/lib: collecting... replacing... done src/libexec: collecting... replacing... done src/regress: collecting... replacing... done src/rescue: collecting... replacing... done src/sbin: collecting... replacing... done src/share: collecting... replacing... done src/sys: collecting... replacing... done src/tests: collecting... replacing... done src/tools: collecting... replacing... done src/usr.bin: collecting... replacing... done src/usr.sbin: collecting... replacing... done src/config: collecting... replacing... done src/x11: collecting... replacing... done src: collecting... replacing... done xsrc/top-level: collecting... replacing... done xsrc/external: collecting... replacing... done xsrc/local: collecting... replacing... done xsrc/xfree: collecting... replacing... done xsrc: collecting... replacing... done Updating release-8 src tree (netbsd-8): Updating release-8 xsrc tree (netbsd-8): Updating release-8 tar files: src/top-level: collecting... replacing... done src/bin: collecting... replacing... done src/common: collecting... replacing... done src/compat:
Re: iwm driver leads to kernel crash
It's not iwm. I have the same bug reported but with re(4) which isn't wireless even. the backtrace looks different from ddb. from ddb, the failing instruction is, stopped at pid 276.1 (dhcpcd) at netbsd:npf_ifaddrhook+0x55: movq 18(%r12), %rsi (without using npf at all)
re: mac68k kern-INSTALL vs GCC7?
this is my preferred change vs jarmoir's. please test it. https://www.netbsd.org/~mrg/mac68k-intr.diff i was also planning on adding an assert that MAX_INAME_LENGTH is less than (eintrnames - intrnames). .mrg.
build error with MKX11MOTIF=yes in mk.conf
Hi, recent -current on amd64: # cat /etc/mk.conf MKCATPAGES=yes MKCOMPAT=yes MKCTF=yes MKDEBUG=yes MKDEBUGLIB=yes MKDYNAMICROOT=no MKOBJ=yes MKOBJDIRS=yes MKX11=yes MKX11MOTIF=yes TOOLDIR=/usr/tools # I'm getting # create libGLw/GLwMDrawA.d CC=/usr/tools/bin/x86_64--netbsd-gcc /usr/tools/bin/nbmkdep -f GLwMDrawA.d.tmp -- -std=gnu99 --sysroot=/ -I/usr/pkg/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R7/include -D__AMD64__ /usr/xsrc/external/mit/glw/dist/GLwMDrawA.c && mv -f GLwMDrawA.d.tmp GLwMDrawA.d In file included from /usr/xsrc/external/mit/glw/dist/GLwMDrawA.c:41:0: /usr/xsrc/external/mit/glw/dist/GLwDrawA.c:53:10: fatal error: Xm/PrimitiveP.h: No such file or directory #include ^ compilation terminated. nbmkdep: compile failed. *** [GLwMDrawA.d] Error code 1 make[4]: stopped in /usr/src/external/mit/xorg/lib/libGLw 1 error regards, chris
Re: mac68k kern-INSTALL vs GCC7?
Le ven. 15 févr. 2019 à 17:33, John D. Baker a écrit : > > Building for mac68k with -V HAVE_GCC=7 produces the following error: > > /x/current/src/sys/arch/mac68k/mac68k/intr.c:135:2: note: in expansion of > macro 'memcpy' > memcpy(g_inames, inames, MAX_INAME_LENGTH); > ^~ > cc1: all warnings being treated as errors > *** [intr.o] Error code 1 > nbmake[2]: stopped in > /r0/build/current/obj/mac68k/sys/arch/mac68k/compile/INSTALL > 1 error > nbmake[2]: stopped in > /r0/build/current/obj/mac68k/sys/arch/mac68k/compile/INSTALL > [...] The code there boilds down to memcpy(&intrnames, "somestring", 53); which while actually being (upon inspection) fine, it is very difficult to parse and compiler warns correctly. Maybe something like this? https://www.netbsd.org/~jdolecek/mac68k_intr_gcc7.diff Jaromir
mac68k kern-INSTALL vs GCC7?
Building for mac68k with -V HAVE_GCC=7 produces the following error: [...] --- kern-INSTALL --- In file included from /x/current/src/sys/sys/systm.h:455:0, from /x/current/src/sys/sys/timevar.h:66, from /x/current/src/sys/sys/time.h:307, from /x/current/src/sys/sys/param.h:145, from /x/current/src/sys/arch/mac68k/mac68k/intr.c:39: /x/current/src/sys/arch/mac68k/mac68k/intr.c: In function 'intr_init': /x/current/src/sys/lib/libkern/libkern.h:380:26: error: '__builtin_memcpy' writing 53 bytes into a region of size 4 overflows the destination [-Werror=stringop-overflow=] #define memcpy(d, s, l) __builtin_memcpy(d, s, l) ^ /x/current/src/sys/arch/mac68k/mac68k/intr.c:135:2: note: in expansion of macro 'memcpy' memcpy(g_inames, inames, MAX_INAME_LENGTH); ^~ cc1: all warnings being treated as errors *** [intr.o] Error code 1 nbmake[2]: stopped in /r0/build/current/obj/mac68k/sys/arch/mac68k/compile/INSTALL 1 error nbmake[2]: stopped in /r0/build/current/obj/mac68k/sys/arch/mac68k/compile/INSTALL [...] Other m68k arches I routinely build (mvme68k, amiga) build OK with GCC7. No runtime testing until I can excavate the machines as well as space where they can be set up to run... -- |/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ / jdbaker[snail]consolidated[flyspeck]net OpenBSDFreeBSD | X No HTML/proprietary data in email. BSD just sits there and works! |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645