--
You received this message because you are subscribed to the Google Groups "OpenPiton Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/4cf7dec8-b395-4411-a2a7-ec3ad368e799n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/b19b8533-6b2d-487a-863e-75168d075873n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/e02ac1d1-3d64-4ef5-a8c2-2a55b2b45966n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/4a26a139-406b-4f27-84fd-db565adfe73bn%40googlegroups.com.
Step1:[success]
git clone https://github.com/Jbalkind/ariane-sdk.git -b openpiton-opensbi .
Cloning into '.'...
remote: Enumerating objects: 309, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 309 (delta 8), reused 7 (delta 7), pack-reused 296
Receiving objects: 100% (309/309), 187.55 KiB | 219.00 KiB/s, done.
Resolving deltas: 100% (159/159), done.
Step2:[success]
sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev libusb-1.0-0-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev
device-tree-compiler pkg-config libexpat-dev
Step3:[success]
export RISCV=/path/to/install/riscv/toolchain
export RISCV=/opt/riscv
export PATH=$PATH:$RISCV/bin
Step4:[success]
git submodule update --init –recursive
Submodule 'buildroot' (git://git.buildroot.net/buildroot) registered for path 'buildroot'
Submodule 'opensbi' (https://github.com/riscv/opensbi.git) registered for path 'opensbi'
Cloning into '/home/bingxuli/0723/buildroot'...
Cloning into '/home/bingxuli/0723/opensbi'...
Submodule path 'buildroot': checked out '81ada4dff4334a6fbb7ae3a547de4cf6aab54a91'
Submodule path 'opensbi': checked out '234ed8e427f4d92903123199f6590d144e0d9351'
Step5:[fail]
make fw_payload.bin
from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
| ^~~~~~~~
CC pipe2.o
CC pipe2-safer.o
make[5]: *** [Makefile:1915: c-stack.o] Error 1
CC printf-frexp.o
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/home/bingxuli/0723/buildroot/output/build/host-m4-1.4.18/lib'
make[4]: *** [Makefile:1674: all] Error 2
make[4]: Leaving directory '/home/bingxuli/0723/buildroot/output/build/host-m4-1.4.18/lib'
make[3]: *** [Makefile:1572: all-recursive] Error 1
make[3]: Leaving directory '/home/bingxuli/0723/buildroot/output/build/host-m4-1.4.18'
make[2]: *** [Makefile:1528: all] Error 2
make[2]: Leaving directory '/home/bingxuli/0723/buildroot/output/build/host-m4-1.4.18'
make[1]: *** [package/pkg-generic.mk:250: /home/bingxuli/0723/buildroot/output/build/host-m4-1.4.18/.stamp_built] Error 2
make[1]: Leaving directory '/home/bingxuli/0723/buildroot'
make: *** [Makefile:12: Image] Error 2
*********************************************************************************************************************************
Below is my trying, comment line 55~60 in ./buildroot/output/build/host-m4-1.4.18/lib/c-stack.c
54 # define SIGSTKSZ 16384
55 //#elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
56 /* libsigsegv 2.6 through 2.8 have a bug where some architectures use
57 more than the Linux default of an 8k alternate stack when decid ing
58 if a fault was caused by stack overflow. */
59 //# undef SIGSTKSZ
60 //# define SIGSTKSZ 16384
61 #endif
Continue to make fw_payload.bin
libfakeroot.c:89:46: note: in definition of macro ‘SEND_GET_STAT64’
89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a)
| ^
In file included from libfakeroot.c:60:
communicate.h:209:44: note: expected ‘struct stat64 *’ but argument is of type ‘struct stat *’
209 | extern void send_get_stat64(struct stat64 *buf);
| ~~~~~~~~~~~~~~~^~~
libtool: link: /usr/bin/ar cru .libs/libcommunicate.a .libs/communicate.o
make[4]: *** [Makefile:652: libfakeroot.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
/usr/bin/ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: /usr/bin/ranlib .libs/libcommunicate.a
libtool: link: ( cd ".libs" && rm -f "libmacosx.la" && ln -s "../libmacosx.la" "libmacosx.la" )
libtool: link: ( cd ".libs" && rm -f "libcommunicate.la" && ln -s "../libcommunicate.la" "libcommunicate.la" )
make[4]: Leaving directory '/home/bingxuli/0723/buildroot/output/build/host-fakeroot-1.20.2'
make[3]: *** [Makefile:670: all-recursive] Error 1
make[3]: Leaving directory '/home/bingxuli/0723/buildroot/output/build/host-fakeroot-1.20.2'
make[2]: *** [Makefile:445: all] Error 2
make[2]: Leaving directory '/home/bingxuli/0723/buildroot/output/build/host-fakeroot-1.20.2'
make[1]: *** [package/pkg-generic.mk:250: /home/bingxuli/0723/buildroot/output/build/host-fakeroot-1.20.2/.stamp_built] Error 2
make[1]: Leaving directory '/home/bingxuli/0723/buildroot'
make: *** [Makefile:12: Image] Error 2
Best regards
Bingxu
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/57f752ae-1fa2-4deb-bfdd-b8cd0ad61f7en%40googlegroups.com.