Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2019 23:40:30 -0500
From:      Dennis Clarke <dclarke@blastwave.org>
To:        freebsd-riscv@freebsd.org
Subject:   Re: Minor issue with the wiki instructions for building a RISC-V target and compiler
Message-ID:  <a8cbe6ea-d72d-11b0-4f47-278532dfa997@blastwave.org>
In-Reply-To: <7e7bc104-5481-4fbb-f3d6-67da05b794af@blastwave.org>
References:  <7e7bc104-5481-4fbb-f3d6-67da05b794af@blastwave.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--mh1wJPRV9FqhVM8rY92qNmYMR6dTCD3xL
Content-Type: multipart/mixed; boundary="oeawBEriC3gWewPo9q9WxhdrBgigNV2mV";
 protected-headers="v1"
From: Dennis Clarke <dclarke@blastwave.org>
To: freebsd-riscv@freebsd.org
Message-ID: <a8cbe6ea-d72d-11b0-4f47-278532dfa997@blastwave.org>
Subject: Re: Minor issue with the wiki instructions for building a RISC-V
 target and compiler
References: <7e7bc104-5481-4fbb-f3d6-67da05b794af@blastwave.org>
In-Reply-To: <7e7bc104-5481-4fbb-f3d6-67da05b794af@blastwave.org>

--oeawBEriC3gWewPo9q9WxhdrBgigNV2mV
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 2/21/19 11:25 PM, Dennis Clarke wrote:
>=20
>=20
> After extensive circles and more confusion and some irc chats I went
> back to https://wiki.freebsd.org/riscv to follow the instructions
> there to the letter.
>=20
> First snag is :
>=20
>=20
> vesta# mv
> ${PREFIX}/lib/gcc/riscv64-unknown-freebsd11.2/8.1.0/include-fixed ${PR
> EFIX}/lib/gcc/riscv64-unknown-freebsd11.2/8.1.0/include-fixed.rm
> mv: rename
> /root/riscv/lib/gcc/riscv64-unknown-freebsd11.2/8.1.0/include-fixed t
> o
> /root/riscv/lib/gcc/riscv64-unknown-freebsd11.2/8.1.0/include-fixed.rm:=

> No suc
> h file or directory
> vesta#
>=20
>=20
> There is no such thing with the gcc 8.2.0 and FreeBSD 12.0 so I can
> guess that we just skip that step.
>=20
> I will keep on the path laid on on the wiki with the intention to get
> a bootable QEMU type image *with* a basic gnu toolchain and compiler.
>=20
> Been at this for a week now and really need to just start over from
> scratch as nothing I have done allows gcc 8.2.0 to be built for the
> target RISC-V rv64imafdc system in sysroot.
>=20
> More to follow.
>=20

Eventually "make TARGET_ARCH=3Driscv64 buildworld" fails also :

=2E
=2E
=2E
/root/riscv/bin/riscv64-unknown-freebsd12.0-gcc
--sysroot=3D/home/root/obj//root/freebsd-riscv/riscv.riscv64/tmp
-B/root/riscv/riscv64-unknown-freebsd12.0/bin/  -O2 -pipe
-I/root/freebsd-riscv/lib/msun/ld128
-I/root/freebsd-riscv/lib/msun/riscv -I/root/freebsd-riscv/lib/msun/src
-I/root/freebsd-riscv/lib/libc/include
-I/root/freebsd-riscv/lib/libc/riscv64 -march=3Drv64imafdc -mabi=3Dlp64d
-g -MD  -MF.depend.s_clog.o -MTs_clog.o -std=3Dgnu99
-fstack-protector-strong -Wsystem-headers -Werror -Wno-pointer-sign
-Wno-error=3Daddress -Wno-error=3Darray-bounds -Wno-error=3Dattributes
-Wno-error=3Dbool-compare -Wno-error=3Dcast-align -Wno-error=3Dclobbered
-Wno-error=3Denum-compare -Wno-error=3Dextra -Wno-error=3Dinline
-Wno-error=3Dlogical-not-parentheses -Wno-error=3Dstrict-aliasing
-Wno-error=3Duninitialized -Wno-error=3Dunused-but-set-variable
-Wno-error=3Dunused-function -Wno-error=3Dunused-value
-Wno-error=3Dmisleading-indentation -Wno-error=3Dnonnull-compare
-Wno-error=3Dshift-negative-value -Wno-error=3Dtautological-compare
-Wno-error=3Dunused-const-variable -Wno-error=3Dbool-operation
-Wno-error=3Ddeprecated -Wno-error=3Dexpansion-to-defined
-Wno-error=3Dformat-overflow -Wno-error=3Dformat-truncation
-Wno-error=3Dimplicit-fallthrough -Wno-error=3Dint-in-bool-context
-Wno-error=3Dmemset-elt-size -Wno-error=3Dnoexcept-type -Wno-error=3Dnonn=
ull
-Wno-error=3Dpointer-compare -Wno-error=3Dstringop-overflow
-Wno-error=3Daggressive-loop-optimizations -Wno-error=3Dcast-function-typ=
e
-Wno-error=3Dcatch-value -Wno-error=3Dmultistatement-macros
-Wno-error=3Drestrict -Wno-error=3Dsizeof-pointer-memaccess
-Wno-error=3Dstringop-truncation -Wno-unknown-pragmas     -c
/root/freebsd-riscv/lib/msun/src/s_clog.c -o s_clog.o
In file included from /root/freebsd-riscv/lib/msun/src/s_clog.c:33:
/root/freebsd-riscv/lib/libc/include/fpmath.h:36:10: fatal error:
_fpmath.h: No such file or directory
 #include "_fpmath.h"
          ^~~~~~~~~~~
compilation terminated.
*** Error code 1

Stop.
make[4]: stopped in /root/freebsd-riscv/lib/msun
*** Error code 1

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

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

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

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

so .. there is that.

I was able to build r344143 previously with a toolset that I built
myself however the process was different and I built the cross compilers
also from

https://riscv.org/software-tools/risc-v-gnu-compiler-toolchain/

That gave me a pile of triplet prefixed name tools in /opt/tools :

dclarke@vesta$ /opt/tools/bin/riscv64-unknown-freebsd12.0-gcc --version
riscv64-unknown-freebsd12.0-gcc (GCC) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is N=
O
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS=
E.

dclarke@vesta$

Shouldn't be any different from the tools in ports .. but they are.

Dennis


--oeawBEriC3gWewPo9q9WxhdrBgigNV2mV--

--mh1wJPRV9FqhVM8rY92qNmYMR6dTCD3xL
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE1j0Rv6qd1s9jGqtWj5FgCl9xztwFAlxvfT4ACgkQj5FgCl9x
ztz+Ow/+MKFLstxlhQpbmTeqhsJpUFI+BVwE9EW9zOJ8xPeY5wwhp9aPjWJ9tZ8l
31Osnk0vGk7GijkoviKELzAVgUEpPf+keMPzxvzRq4hWjD6sqvILRhmhXgxpUfdv
AVOhQyhToRePihF7t5iHsfyjJi8wftVb6PTSL/lFr7066H8AZptPgADvccKO7hM6
CDfDxJco4uBP1v1ONLFF3XS5hf84hBRxKaf8huPtzVerJYc3Cs2RKA5rJW2u6B6U
H9mj4mEaO9YiJ4l1GZsec4Ssw8UfE9me1isvoi4Hq5bPJ2ddPWqylE6ndQteJK9E
HdZa/Mbrqmkr9jEUO9/6VRiozTnFH46mBD3I+ACZ1ffwxtF+1XBbSlNOBLfUGl9P
yDKzteGgf5m6mj+Fc8GxPqwvTs0Xe1eXjUMthM3T/6re4RaU5OH+JEgu/+fbXcLa
Flwzc/BNeT+c6W1rkYalllYd1AFQZphEqaFbG02lh9T7/ZM0b8Ml/dmfQQgd2cHL
+IDYr8IMGw8f3kj+46AraN1x1r+G42jHkKpPWHrVb2/7cJgjJLYoL/nVZksaSUsi
S78LtmPxlaT9ZvXcZiE8qY09E/PbXIKS4YdGkDZ9OgNBefgwnN1ZI7+vGgOb0Y/K
2geBJI7TPUiClA1mVYZ3Mc0ua3Ztx46lfQ0+9bDDA76toHrf7S4=
=obp8
-----END PGP SIGNATURE-----

--mh1wJPRV9FqhVM8rY92qNmYMR6dTCD3xL--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a8cbe6ea-d72d-11b0-4f47-278532dfa997>