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
The following reply was made to PR toolchain/49425; it has been noted by GNATS.
From: Dennis Ferguson <dennis.c.ferguson%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: toolchain-manager%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: toolchain/49425: internal compiler error compiling riscv userland
Date: Sat, 29 Nov 2014 10:50:25 +0800
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