Hello,
I am trying to build project in below path and following the procedure provided in below link but getting error.
Error:
Hello,
I am trying to build project in below path and following the procedure provided in below link but getting error.
Error:
Hello @prashant.s,
According to the README documentation in that GitHub repository, you need to create a build directory and then call the script from that directory within firmware-himax-we-i-plus
:
$ mkdir build-gnu
$ cd build-gnu
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=toolchain.gnu.cmake
Build directory:
Inside build-gnu folder is below
Inside firmware-himax-we-i-plus folder
Running cmake … -DCMAKE_TOOLCHAIN_FILE=toolchain.gnu.cmake command
Hello,
The build-gnu directory needs to be inside the firmware directory: firmware-himax-we-i-plus/build-gnu
You need to run the cmake command from inside the build-gnu
directory as well:
cd build-gnu
cmake .. -DCMAKE_TOOLCHAIN_FILE=toolchain.gnu.cmake
Hello @prashant.s,
This is because you have created a CMakeCache.txt file in multiple places within your project by running the cmake command not in the build-gnu
directory. Please go ahead and delete this project firmware-himax-we-i-plus
and start a fresh one by cloning / downloading from the GitHub repo again.
Then please follow the README instructions exactly to build from the build-gnu
directory using the cmake command.
Thanks!
Hello,
Please make sure you install the software prerequisites described here: https://github.com/edgeimpulse/firmware-himax-we-i-plus#requirements
I am building in linux machine so need only ARC GNU Toolchain
Please follow the instructions in the README here: https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain
Hello Jenny,
As per you mentioned, started building toolchain from the steps given in
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain
link but got error which is shown below
Logs:
[ERROR] collect2: fatal error: ld terminated with signal 9 [Killed]
[ERROR] make[2]: *** [/home/emqos24/Desktop/himax/arc-elf2-toolchain/crosstool-ng/.build/arc-snps-elf/src/gcc/gcc/lto/Make-lang.in:101: lto-dump] Error 1
[ERROR] make[2]: *** Waiting for unfinished jobs…
[ERROR] make[1]: *** [Makefile:4410: all-gcc] Error 2
[ERROR] /
[ERROR] >>
[ERROR] >> Build failed in step ‘Installing pass-2 core C gcc compiler’
[ERROR] >> called in step ‘(top-level)’
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@376]
[ERROR] >> called from: do_gcc_core_backend[scripts/build/cc/gcc.sh@735]
[ERROR] >> called from: do_cc_core_pass_2[scripts/build/cc/gcc.sh@259]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@697]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: ‘build.log’
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> https://crosstool-ng.github.io/docs/known-issues/
[ERROR] >>
[ERROR] >> NOTE: Your configuration includes features marked EXPERIMENTAL.
[ERROR] >> Before submitting a bug report, try to reproduce it without enabling
[ERROR] >> any experimental features. Otherwise, you’ll need to debug it
[ERROR] >> and present an explanation why it is a bug in crosstool-NG - or
[ERROR] >> preferably, a fix.
[ERROR] >>
[ERROR] >> If you feel this is a bug in crosstool-NG, report it at:
[ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR] >>
[ERROR] >> Make sure your report includes all the information pertinent to this issue.
[ERROR] >> Read the bug reporting guidelines here:
[ERROR] >> http://crosstool-ng.github.io/support/
[ERROR] /
[ERROR] (elapsed: 270:58.91)
[271:01] / make: *** [ct-ng:261: build] Error 2