01-28-2019, 09:57 PM
Hello!
While following the instructions to install the RISC-V GNU compiler as listed here :https://github.com/pulp-platform/pulp-riscv-gnu-toolchain.
I installation for the linux cross compiler is failing.
On running this command on the terminal:
I get the error message saying:
/include/atomic.h:826:3: error: #error ATOMIC_EXCHANGE_USES_CAS has to be defined.
I have attached a screenshot showing the error with this post.
Is there any fix for this? or Am I doing something wrong?
I am running this on Ubuntu 18.04 and I have set the gcc version to 5. Also, the Newlib compilation is performed successfully.
While following the instructions to install the RISC-V GNU compiler as listed here :https://github.com/pulp-platform/pulp-riscv-gnu-toolchain.
I installation for the linux cross compiler is failing.
On running this command on the terminal:
Code:
./configure --prefix=/opt/riscv --with-arch=rv32g --with-abi=ilp32d
make linux
I get the error message saying:
/include/atomic.h:826:3: error: #error ATOMIC_EXCHANGE_USES_CAS has to be defined.
I have attached a screenshot showing the error with this post.
Is there any fix for this? or Am I doing something wrong?
I am running this on Ubuntu 18.04 and I have set the gcc version to 5. Also, the Newlib compilation is performed successfully.