From owner-freebsd-riscv@freebsd.org Fri Feb 22 04:40:55 2019 Return-Path: Delivered-To: freebsd-riscv@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 010A314FF370 for ; Fri, 22 Feb 2019 04:40:55 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from atl4mhfb02.myregisteredsite.com (atl4mhfb02.myregisteredsite.com [209.17.115.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0591880FB7 for ; Fri, 22 Feb 2019 04:40:53 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from atl4mhob23.registeredsite.com (atl4mhob23.registeredsite.com [209.17.115.117]) by atl4mhfb02.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id x1M4elDs007572 for ; Thu, 21 Feb 2019 23:40:47 -0500 Received: from mailpod.hostingplatform.com (atl4qobmail01pod2.registeredsite.com [10.30.77.35]) by atl4mhob23.registeredsite.com (8.14.4/8.14.4) with ESMTP id x1M4ed7m038000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 21 Feb 2019 23:40:39 -0500 Received: (qmail 851 invoked by uid 0); 22 Feb 2019 04:40:39 -0000 X-TCPREMOTEIP: 174.118.245.214 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.3?) (dclarke@blastwave.org@174.118.245.214) by 0 with ESMTPA; 22 Feb 2019 04:40:39 -0000 Subject: Re: Minor issue with the wiki instructions for building a RISC-V target and compiler To: freebsd-riscv@freebsd.org References: <7e7bc104-5481-4fbb-f3d6-67da05b794af@blastwave.org> From: Dennis Clarke Openpgp: preference=signencrypt Message-ID: Date: Thu, 21 Feb 2019 23:40:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <7e7bc104-5481-4fbb-f3d6-67da05b794af@blastwave.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mh1wJPRV9FqhVM8rY92qNmYMR6dTCD3xL" X-Rspamd-Queue-Id: 0591880FB7 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.88 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; MX_GOOD(-0.01)[cached: mx1.netsolmail.net]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(1.30)[ip: (3.96), ipnet: 209.17.112.0/21(1.44), asn: 19871(1.15), country: US(-0.07)]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:19871, ipnet:209.17.112.0/21, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:+]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.99)[0.990,0]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.98)[0.977,0]; DMARC_NA(0.00)[blastwave.org]; NEURAL_SPAM_LONG(0.83)[0.827,0]; RCVD_IN_DNSWL_NONE(0.00)[118.115.17.209.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2019 04:40:55 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mh1wJPRV9FqhVM8rY92qNmYMR6dTCD3xL Content-Type: multipart/mixed; boundary="oeawBEriC3gWewPo9q9WxhdrBgigNV2mV"; protected-headers="v1" From: Dennis Clarke To: freebsd-riscv@freebsd.org Message-ID: 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--