errors on building Linux cross-compiler
#1
Question 
   
[attachment=15][attachment=15]
Hi,
I got some errors when build Linux cross-compiler with the following command:

Code:
./configure --prefix=/opt/riscv
make linux

The errors message is shown in the attached screenshot.
Anyone has an idea how to fix it?

Thanks!
Reply
#2
This is the same issue as:
https://pulp-platform.org/community/show...php?tid=76

Sadly, as far as I see there, it also does not have a solution that seems to have found an answer. We can not replicate the behavior here, maybe someone from the community who has come across this and found a solution? I still suspect that the cross compiler is not in your PATH, i.e. the step mentioned below is missing, or not correct.. 


Quote:To build the Linux cross-compiler, pick an install path. If you choose, say, /opt/riscv, then add /opt/riscv/bin to your PATH now.
Visit pulp-platform.org and follow us on twitter @pulp_platform
Reply
#3
Thanks for the reply!
I double checked and made sure that the riscv toolchain path is in the PATH and repeated the commands, but still got the same error. I did see the linux cross compiling tools installed in the specified directory though. I am not sure if the installation is complete with that error. I will try to proceed to see what would happen.

Mapletree
Reply
#4
The riscv cross compiler tool chain and the Linux cross-compiler were built successfully with the package obtained from the following risc v github:
https://github.com/riscv/riscv-gnu-toolchain/

The original error (error: unrecognized opcode 'lwu a1, .LANCHOR0') mentioned in the initial post took place when the riscv and linux cross-compiler were build with the package obtained from the pulp platform github:
https://github.com/pulp-platform/pulp-ri...-toolchain
There might be some files/configurations out of date from the pulp-riscv-gnu-toolchain that results in the error.

Comparing the instructions provided in the README of the two github repositories, the difference seems to be that the pulp-riscv-gnu-toolchain repository README requires a step to build and install the Newlib cross-compiler for all pulp variants. Just wondering if this step is required to build the Ariane platform? what are exactly built and installed by this step?

Thanks,
Mapletree
Reply
#5
Are you trying to build a toolchain for Ariane using the toolchain repository for Pulp ?
The Pulp toolchain repository should only be used for Pulp targets. For Ariane, the generic riscv toolchain should be used.
Reply
#6
(11-15-2019, 07:53 PM)germain_haugou Wrote: Are you trying to build a toolchain for Ariane using the toolchain repository for Pulp ?
The Pulp toolchain repository should only be used for Pulp targets. For Ariane, the generic riscv toolchain should be used.

Yes, I am trying to build the Ariane platform, and just noticed that there are ariane-sdk that installs the toolchain as well.

Thanks!
Reply


Forum Jump: