Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2019 21:46:57 +0800
From:      Kevin Lo <kevlo@kevlo.org>
To:        Dennis Clarke <dclarke@blastwave.org>
Cc:        freebsd-riscv <freebsd-riscv@freebsd.org>
Subject:   Re: FreeBSD build for RISC-V blows up in make TARGET_ARCH=riscv64 buildworld
Message-ID:  <20190606134657.GA50070@ns.kevlo.org>
In-Reply-To: <c1339fdd-fea0-197e-dd63-0ce347356a57@blastwave.org>
References:  <c1339fdd-fea0-197e-dd63-0ce347356a57@blastwave.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 24, 2019 at 02:17:49PM -0400, Dennis Clarke wrote:
> 
> 
> 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 ??

Please use devel/riscv64-xtoolchain-gcc.  I got no problems when running
"make CROSS_TOOLCHAIN=riscv64-gcc TARGET_ARCH=riscv64 buildworld"
on 13-CURRENT.

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

	Kevin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190606134657.GA50070>