Port-RISCV archive

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

Re: Compile error when building current riscv64



On Wed, May 24, 2023 at 3:14 PM David Holland <dholland-riscv%netbsd.org@localhost> wrote:
> It makes it much more likely it's a gcc problem, though.
>
> Sort of odd that other people (apparently) aren't seeing it.

Synched current a few minutes ago, tried to build again, got another
error, looks the same:

#   compile  libc/dtoa.o
/usr/src/../tools-current-riscv64/bin/riscv64--netbsd-gcc -O2   -std=gnu99    -W
all -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare
-Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswit
ch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-
compare -Wold-style-definition -Wsign-compare -Wformat=2  -Wno-format-zero-lengt
h  -Werror   -fstack-protector -Wstack-protector   --param ssp-buffer-size=1
--sysroot=/usr/src/../obj-current-riscv64/destdir.riscv -D_LIBC -DLIBC_SCCS -DSY
SLIBC_SCCS -D_REENTRANT -D_DIAGNOSTIC -I/usr/src/lib/csu/common -DHESIOD -DINET6
 -DNLS -DYP -I/usr/src/lib/libc/include -I/usr/src/lib/libc -I. -I/usr/src/sys -
I/usr/src/lib/libc/compat/../locale -I/usr/src/lib/libc/compat/stdlib -I/usr/src
/lib/libc/compat/../stdlib -D__BUILD_LEGACY -I/usr/src/lib/libc/../../common/lib
/libc/quad -I/usr/src/lib/libc/../../common/lib/libc/string -I/usr/src/lib/libc/
../../common/lib/libc/arch/riscv/string -I/usr/src/lib/libc/../../common/lib/lib
c/arch/riscv/atomic -I/usr/src/lib/libc/../../common/lib/libc/hash/sha3 -D__DBIN
TERFACE_PRIVATE -I/usr/src/libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn -I/usr/sr
c/lib/libc/gdtoa -I/usr/src/lib/libc/locale -DHonor_FLT_ROUNDS -I/usr/src/lib/li
bc/arch/riscv/gdtoa -DWITH_RUNE -I/usr/src/lib/libc -D_ACL_PRIVATE -DPOSIX_MISTA
KE -DCOMPAT__RES -DUSE_POLL -DPORTMAP -DUSG_COMPAT  -D_FORTIFY_SOURCE=2 -c    /u
sr/src/lib/libc/gdtoa/dtoa.c -o dtoa.o
/usr/src/lib/libc/gdtoa/dtoa.c: In function '__dtoa':
/usr/src/lib/libc/gdtoa/dtoa.c:262:2: internal compiler error: Illegal instructi
on
  262 |  ds = (dval(&d2)-1.5)*0.289529654602168 + 0.1760912590558 + i*0.30102999
5663981;
      |  ^~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://www.NetBSD.org/support/send-pr.html> for instructions.

The good news is I can complete the same build on my raspberry pi.
I'll try it on a virtual machine that is amd64 based as well.

Andy


Home | Main Index | Thread Index | Old Index