You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
Bug description
When building the helloworld example, linker reports that it cannot find -lhero-target although libhero-target.so exists and path given to the linker with -L flag is valid.
To Reproduce
source scripts/hero-z-7045-env.sh
cd hero-openmp-examples/helloworld
make clean all
Build fails
Console output
root@38574fee9dc5:/hero-sdk/hero-openmp-examples/helloworld# make all
arm-linux-gnueabihf-gcc -O3 -g3 -fopenmp -Wall -I. -I../common -I/hero-sdk/libhero-target/inc -c -o helloworld.o helloworld.c
arm-linux-gnueabihf-gcc -O3 -g3 -fopenmp -Wall -I. -I../common -I/hero-sdk/libhero-target/inc helloworld.o -L/hero-sdk/libhero-target/lib -lhero-target -o helloworld
/hero-sdk/hero-gcc-toolchain/install/lib/gcc/arm-linux-gnueabihf/7.1.1/accel/riscv32-unknown-elf/../../../../../../riscv32-unknown-elf/bin/ld: cannot find -lhero-target
collect2: error: ld returned 1 exit status
lto-wrapper: fatal error: /hero-sdk/hero-gcc-toolchain/install/libexec/gcc/arm-linux-gnueabihf/7.1.1//accel/riscv32-unknown-elf/mkoffload terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
/hero-sdk/hero-gcc-toolchain/install/lib/gcc/arm-linux-gnueabihf/7.1.1/../../../../arm-linux-gnueabihf/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
/hero-sdk/hero-openmp-examples/helloworld/../common/default.mk:36: recipe for target 'helloworld' failed
make: *** [helloworld] Error 1
OS and environment information
Output of lsb_release -a:
I have found the solution to the problem be running the last step from the builder script, in other words running ./hero-z-7045-builder -i, even though another computer has already done this step and the driver is already running on the board.
The problem arose from my misunderstanding that the install step of the builder script only cross-compiles the necessary drivers and programs for the board and copies them over ssh to the board.
In my opinion this is not that intuitive and could maybe be better that the builder script enables building the examples without having the board already plugged in and ready with the built linux on.
Hope this helps.
Ask me for any further information that you need.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug description
When building the helloworld example, linker reports that it cannot find -lhero-target although libhero-target.so exists and path given to the linker with -L flag is valid.
To Reproduce
Console output
OS and environment information
Output of
lsb_release -a
:Output of
env
:Additional context
I am working in a docker image.
The text was updated successfully, but these errors were encountered: