errors on building Linux cross-compiler - Printable Version +- PULP Community (https://pulp-platform.org/community) +-- Forum: PULP's Community forum (https://pulp-platform.org/community/forumdisplay.php?fid=1) +--- Forum: PULP General questions (https://pulp-platform.org/community/forumdisplay.php?fid=2) +--- Thread: errors on building Linux cross-compiler (/showthread.php?tid=135) |
errors on building Linux cross-compiler - mapletree - 11-12-2019 [attachment=15][attachment=15] Hi, I got some errors when build Linux cross-compiler with the following command: Code: ./configure --prefix=/opt/riscv The errors message is shown in the attached screenshot. Anyone has an idea how to fix it? Thanks! RE: errors on building Linux cross-compiler - kgf - 11-12-2019 This is the same issue as: https://pulp-platform.org/community/showthread.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. RE: errors on building Linux cross-compiler - mapletree - 11-14-2019 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 RE: errors on building Linux cross-compiler - mapletree - 11-15-2019 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-riscv-gnu-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 RE: errors on building Linux cross-compiler - germain_haugou - 11-15-2019 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. RE: errors on building Linux cross-compiler - mapletree - 11-18-2019 (11-15-2019, 07:53 PM)germain_haugou Wrote: Are you trying to build a toolchain for Ariane using the toolchain repository for Pulp ? Yes, I am trying to build the Ariane platform, and just noticed that there are ariane-sdk that installs the toolchain as well. Thanks! |