Date: Wed, 13 Mar 2019 17:01:29 +0000 From: Ruslan Bukin <ruslan.bukin@cl.cam.ac.uk> To: Dennis Clarke <dclarke@blastwave.org> Cc: freebsd-riscv <freebsd-riscv@freebsd.org> Subject: Re: wiki pages https://wiki.freebsd.org/riscv wrong Message-ID: <20190313170129.GA25163@bsdpad.com> In-Reply-To: <2848569d-68e4-df5f-9d0f-7e96933450ca@blastwave.org> References: <eaf0c690-cca7-f88f-7c3a-3e23964ffd61@blastwave.org> <20190224212643.GA67845@bsdpad.com> <CAPn%2BtrHWmuqD=iek0DxO-co7K3Djva_EJart9Xg=DQiO4CZQgQ@mail.gmail.com> <4b5341ca-b1f5-a9c5-bdda-0204d37703ae@blastwave.org> <20190312170103.GA9714@bsdpad.com> <2848569d-68e4-df5f-9d0f-7e96933450ca@blastwave.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190313170129.GA25163>