Current-Users archive

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

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