kendryte / kendryte-gnu-toolchain

Kendryte GNU Toolchain
Other
74 stars 25 forks source link

several errors when compiling hello_world from kendryte-standalone-sdk #4

Closed GitJer closed 5 years ago

GitJer commented 5 years ago

I have installed the kendryte-gnu-toolchain as instructed. The configure/make took a long time but finished without errors. When compiling the hello_world example in the kendryte-standalone-sdk (downloaded at the same time as the toolchain, so not an old version) I get several errors:

Searching for solutions has not yet solved these errors. Is there something I forgot to do? Or did wrong?

vowstar commented 5 years ago

We are sorry for bringing you inconvenience. Please use our pre-compiled toolchain (including OSX) https://github.com/kendryte/kendryte-gnu-toolchain/releases/tag/v8.2.0-20190213

Or recompile with the following flag

./configure --prefix=/opt/kendryte-toolchain --with-cmodel=medany --with-arch=rv64imafc --with-abi=lp64f

make
./configure --prefix=/usr/local/opt/kendryte-toolchain --with-cmodel=medany --with-arch=rv64imafc --with-abi=lp64f
make

This fix is ​​only for the current SDK and may change in the future.

GitJer commented 5 years ago

This worked! Thank you.

Note that on a machine with multiple cores the -j option for make may help speed things up. E.g. on a 4 core CPU you can use the command "make -j 6"