NetBSD-Bugs archive

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

Re: toolchain/49425: internal compiler error compiling riscv userland



You can work around that with the following patch.  I haven't gotten
around to figuring out whether this problem also occurs in the compilers
the RISC-V people maintain or is an issue unique to the gcc 4.8.3
support.

Dennis Ferguson

Index: external/gpl3/gcc/lib/libasan/Makefile
===================================================================
RCS file: /cvsroot/src/external/gpl3/gcc/lib/libasan/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- external/gpl3/gcc/lib/libasan/Makefile	23 Oct 2014 23:31:26 -0000	1.7
+++ external/gpl3/gcc/lib/libasan/Makefile	29 Nov 2014 02:42:07 -0000
@@ -56,4 +56,10 @@
 LIBDPLIBS+=    stdc++ ${.CURDIR}/../libstdc++-v3
 LIBDPLIBS+=    pthread ${.CURDIR}/../../../../../lib/libpthread
 
+.if ${MACHINE_ARCH} == "riscv64"
+COPTS.asan_allocator2.cc += -O0
+COPTS.sanitizer_netbsd.cc += -O0
+.endif
+
+
 .include <bsd.lib.mk>



Home | Main Index | Thread Index | Old Index