Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2019 14:17:49 -0400
From:      Dennis Clarke <dclarke@blastwave.org>
To:        freebsd-riscv <freebsd-riscv@freebsd.org>
Subject:   FreeBSD build for RISC-V blows up in make TARGET_ARCH=riscv64 buildworld
Message-ID:  <c1339fdd-fea0-197e-dd63-0ce347356a57@blastwave.org>

next in thread | raw e-mail | index | archive | help

This is a real low volume maillist but I will try here also.



So on FreeBSD 13 CURRENT I hit the same brick walls as usual while
trying to follow https://wiki.freebsd.org/riscv wherein I have the
cross compiler built and in 
/opt/riscv_tools/bin/riscv64-unknown-freebsd13.0-foo as per usual. 
Nothing is a surprise until I hit
the make TARGET_ARCH=riscv64 buildworld which blows up fast :



.
.
.

/opt/riscv_tools/bin/riscv64-unknown-freebsd13.0-gcc -O2 -pipe 
-DHAVE_FCNTL_H=1 -DHAVE_MKSTEMP=1 -DMAXTABLE=INT_MAX 
-DMIXEDCASE_FILENAMES=1 -DYYPATCH=20170430 -g -std=gnu99 
-I/usr/src/freebsd/obj/usr/src/freebsd/freebsd-riscv/riscv.riscv64/tmp/legacy/usr/include 
  -static 
-L/usr/src/freebsd/obj/usr/src/freebsd/freebsd-riscv/riscv.riscv64/tmp/legacy/usr/lib 
-o yacc.full closure.o error.o graph.o lalr.o lr0.o main.o mkpar.o 
mstring.o output.o reader.o yaccpar.o symtab.o verbose.o warshall.o  -legacy
/opt/riscv_tools/lib/gcc/riscv64-unknown-freebsd13.0/8.2.0/../../../../riscv64-unknown-freebsd13.0/bin/ld: 
cannot find crt1.o: No such file or directory
/opt/riscv_tools/lib/gcc/riscv64-unknown-freebsd13.0/8.2.0/../../../../riscv64-unknown-freebsd13.0/bin/ld: 
cannot find crti.o: No such file or directory
/opt/riscv_tools/lib/gcc/riscv64-unknown-freebsd13.0/8.2.0/../../../../riscv64-unknown-freebsd13.0/bin/ld: 
cannot find crtbeginT.o: No such file or directory
/opt/riscv_tools/lib/gcc/riscv64-unknown-freebsd13.0/8.2.0/../../../../riscv64-unknown-freebsd13.0/bin/ld: 
cannot find -lgcc
/opt/riscv_tools/lib/gcc/riscv64-unknown-freebsd13.0/8.2.0/../../../../riscv64-unknown-freebsd13.0/bin/ld: 
cannot find -lgcc_eh
/opt/riscv_tools/lib/gcc/riscv64-unknown-freebsd13.0/8.2.0/../../../../riscv64-unknown-freebsd13.0/bin/ld: 
cannot find -lc
/opt/riscv_tools/lib/gcc/riscv64-unknown-freebsd13.0/8.2.0/../../../../riscv64-unknown-freebsd13.0/bin/ld: 
cannot find -lgcc
/opt/riscv_tools/lib/gcc/riscv64-unknown-freebsd13.0/8.2.0/../../../../riscv64-unknown-freebsd13.0/bin/ld: 
cannot find -lgcc_eh
/opt/riscv_tools/lib/gcc/riscv64-unknown-freebsd13.0/8.2.0/../../../../riscv64-unknown-freebsd13.0/bin/ld: 
cannot find crtend.o: No such file or directory
/opt/riscv_tools/lib/gcc/riscv64-unknown-freebsd13.0/8.2.0/../../../../riscv64-unknown-freebsd13.0/bin/ld: 
cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
make[3]: stopped in /usr/src/freebsd/freebsd-riscv/usr.bin/yacc
*** Error code 1

Stop.
make[2]: stopped in /usr/src/freebsd/freebsd-riscv
*** Error code 1

Stop.
make[1]: stopped in /usr/src/freebsd/freebsd-riscv
*** Error code 1

Stop.
make: stopped in /usr/src/freebsd/freebsd-riscv
root@vesta:/usr/src/freebsd/freebsd-riscv #
root@vesta:/usr/src/freebsd/freebsd-riscv #


Any clues ??

-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c1339fdd-fea0-197e-dd63-0ce347356a57>