From owner-freebsd-riscv@freebsd.org Wed Mar 13 17:01:11 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 3EF271539F97 for ; Wed, 13 Mar 2019 17:01:11 +0000 (UTC) (envelope-from rb743@hermes.cam.ac.uk) Received: from ppsw-31.csi.cam.ac.uk (ppsw-31.csi.cam.ac.uk [131.111.8.131]) (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 CCA1089DBB for ; Wed, 13 Mar 2019 17:01:10 +0000 (UTC) (envelope-from rb743@hermes.cam.ac.uk) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cam.ac.uk; s=20180806.ppsw; h=Sender:In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DhqsPN0fVbxGPab3XyxbZCVTJQgmDOFHhP13LQUTKjc=; b=W+T4LZhE24NCqNRpv35hF/m7Ud hKRi69ntDZt1Tt/LuvaZyTNLY5ZPpUEztxTMloZi+yJa6bxXov6TpV1Xp6HNPRe2BwkhI4kkQ1Rtc Ln92BnA1LO5jqylC140NEGqSqeIqNSCCDMX9bVq8YG9w3nd85D/XeJyvKVqVkQ2gBQjY=; X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus Received: from sc1.bsdpad.com ([163.172.212.18]:13556) by ppsw-31.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587) with esmtpsa (LOGIN:rb743) (TLSv1:ECDHE-RSA-AES256-SHA:256) id 1h47Fd-0003J3-Jd (Exim 4.91) (return-path ); Wed, 13 Mar 2019 17:01:09 +0000 Date: Wed, 13 Mar 2019 17:01:29 +0000 From: Ruslan Bukin To: Dennis Clarke Cc: freebsd-riscv Subject: Re: wiki pages https://wiki.freebsd.org/riscv wrong Message-ID: <20190313170129.GA25163@bsdpad.com> References: <20190224212643.GA67845@bsdpad.com> <4b5341ca-b1f5-a9c5-bdda-0204d37703ae@blastwave.org> <20190312170103.GA9714@bsdpad.com> <2848569d-68e4-df5f-9d0f-7e96933450ca@blastwave.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2848569d-68e4-df5f-9d0f-7e96933450ca@blastwave.org> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: "R. Bukin" X-Rspamd-Queue-Id: CCA1089DBB X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.990,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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: Wed, 13 Mar 2019 17:01:11 -0000 Hi Dennis, On Wed, Mar 13, 2019 at 08:48:40AM -0400, Dennis Clarke wrote: > There is no such thing as "include-fixed" there and certainly not for > FreeBSD 11.2 AND not gcc 8.1.0 and what else do you need? WRONG. You are right, there is no such thing anymore. So I removed it. > > Let's try to stumble forwards knowing that we are in the land of WRONG > now and who knows what breaks next. > > vesta# cd > vesta# pwd > /root > > > ??? Alternatively, install devel/riscv64-xtoolchain-gcc .... > > > Why is this AFTER the instructions to build the cross compiler tools > manually ??? > > > vesta# svn co http://svn.freebsd.org/base/head freebsd-riscv > . > . > . > A freebsd-riscv/Makefile.sys.inc > U freebsd-riscv > Checked out revision 345085. So you are trying HEAD here, not STABLE. And now I understand that in previous mail you meant STABLE on host machine, not target. Well any combination of 12-STABLE and HEAD for host/target should work. > > Well now we hit the muddy bits. > > When using toolchain built by hand: ??? > > When using devel/riscv64-xtoolchain-gcc: ??? > > There is no explanation where this stuff comes from or what it is > or why. > > I will make a wild guess and assume that someone somewhere is talking > about a cross compiler : > > vesta# pkg query %n\ %v\ %o | grep 'risc' > riscv64-binutils 2.32,1 devel/riscv64-binutils > riscv64-gcc 8.1.0_1 devel/riscv64-gcc > riscv64-xtoolchain-gcc 0.4_1 devel/riscv64-xtoolchain-gcc > vesta# > > The user at the moment is root so whatever stuff on that page is about > /home/${USER} is plain WRONG so we have to guess that maybe some path > stuff has to be just sort of made up : Why do you run commands in the root shell? This makes a bad habit (but probably not a potential reason for this issue). > > vesta# > vesta# pwd > /root/freebsd-riscv > vesta# setenv MAKEOBJDIRPREFIX /root/obj/ > vesta# setenv WITHOUT_FORMAT_EXTENSIONS yes > vesta# /usr/bin/time -p make CROSS_TOOLCHAIN=riscv64-gcc > TARGET_ARCH=riscv64 buildworld > [Creating objdir /root/obj//root/freebsd-riscv/amd64.amd64...] > [Creating objdir /root/obj//root/freebsd-riscv/riscv.riscv64...] > -------------------------------------------------------------- > >>> World build started on Wed Mar 13 11:35:01 GMT 2019 > -------------------------------------------------------------- > > -------------------------------------------------------------- > >>> Rebuilding the temporary build tree > -------------------------------------------------------------- > rm -rf /root/obj//root/freebsd-riscv/riscv.riscv64/tmp > cd /root/freebsd-riscv/tools/build; make DIRPRFX=tools/build/ > DESTDIR=/root/obj//root/freebsd-riscv/riscv.riscv64/tmp/legacy installdirs > [Creating objdir /root/obj//root/freebsd-riscv/riscv.riscv64/tools/build...] > mkdir -p "/root/obj//root/freebsd-riscv/riscv.riscv64/tmp/legacy/bin" > mkdir -p "/root/obj//root/freebsd-riscv/riscv.riscv64/tmp/legacy/usr/lib" > . > . > . > /usr/local/bin/riscv64-unknown-freebsd12.0-gcc > --sysroot=/root/obj//root/freebsd-riscv/riscv.riscv64/tmp > -B/usr/local/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=rv64imafdc -mabi=lp64d > -g -MD -MF.depend.s_clog.o -MTs_clog.o -std=gnu99 > -fstack-protector-strong -Wsystem-headers -Werror -Wno-pointer-sign > -Wno-error=address -Wno-error=array-bounds -Wno-error=attributes > -Wno-error=bool-compare -Wno-error=cast-align -Wno-error=clobbered > -Wno-error=enum-compare -Wno-error=extra -Wno-error=inline > -Wno-error=logical-not-parentheses -Wno-error=strict-aliasing > -Wno-error=uninitialized -Wno-error=unused-but-set-variable > -Wno-error=unused-function -Wno-error=unused-value > -Wno-error=misleading-indentation -Wno-error=nonnull-compare > -Wno-error=shift-negative-value -Wno-error=tautological-compare > -Wno-error=unused-const-variable -Wno-error=bool-operation > -Wno-error=deprecated -Wno-error=expansion-to-defined > -Wno-error=format-overflow -Wno-error=format-truncation > -Wno-error=implicit-fallthrough -Wno-error=int-in-bool-context > -Wno-error=memset-elt-size -Wno-error=noexcept-type -Wno-error=nonnull > -Wno-error=pointer-compare -Wno-error=stringop-overflow > -Wno-error=aggressive-loop-optimizations -Wno-error=cast-function-type > -Wno-error=catch-value -Wno-error=multistatement-macros > -Wno-error=restrict -Wno-error=sizeof-pointer-memaccess > -Wno-error=stringop-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 > I remember that I seen such error years before, but I can't remember. I'm unable to reproduce this issue on 12-STABLE. Did you say it was built fine for you on CURRENT? Thank you. Ruslan