Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue at linking stage with pthread_atfork #35

Open
hsyedsplineai opened this issue Feb 4, 2019 · 0 comments
Open

Build issue at linking stage with pthread_atfork #35

hsyedsplineai opened this issue Feb 4, 2019 · 0 comments

Comments

@hsyedsplineai
Copy link

Hi,

I'm facing build issue with virtual simulator at linking stage.
The build of 'hw' and SystemC passed without any issue.

The error message on building 'vp' is pasted below. Can you suggest what is the solution. I also tried with '-pthread' option instead of '-lpthread' in the file 'vp/CMakeFiles/aarch64_toplevel.dir/link.txt' that didn't solve the issue.

The command and error messages is given below.

uname -a
*** 4.15.0-43-generic #46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

The configuration Command:
cmake -DCMAKE_CXX_COMPILER=/home/syed/utils/gcc-4.9.3/bin/g++ -DCMAKE_INSTALL_PREFIX=build -DSYSTEMC_PREFIX=/usr/local/systemc-2.3.0/ -DNVDLA_HW_PREFIX=/home/syed/workdla/nvdla/hw -DNVDLA_HW_PROJECT=nv_full

The build:

make -j6
.....
[ 87%] Built target greenreg
Scanning dependencies of target nvdla
Scanning dependencies of target cosim_sc_wrapper
[ 87%] Building CXX object models/nvdla.build/CMakeFiles/nvdla.dir/src/adaptors/gp2str.cpp.o
[ 89%] Building CXX object models/nvdla.build/CMakeFiles/nvdla.dir/src/nvdla_top.cpp.o
[ 91%] Building CXX object models/nvdla.build/CMakeFiles/nvdla.dir/src/adaptors/gsgp2tlm.cpp.o
[ 91%] Building CXX object models/nvdla.build/CMakeFiles/nvdla.dir/src/adaptors/tlm2gsgp.cpp.o
[ 93%] Building CXX object models/nvdla.build/CMakeFiles/nvdla.dir/src/adaptors/irq_adaptor.cpp.o
[ 94%] Building CXX object fpga/aws-fpga/cosim_sc_wrapper.build/CMakeFiles/cosim_sc_wrapper.dir/src/nvdla_cosim_sc_wrapper.cpp.o
[ 94%] Building CXX object fpga/aws-fpga/cosim_sc_wrapper.build/CMakeFiles/cosim_sc_wrapper.dir/src/extmem_cosim_sc_wrapper.cpp.o
[ 96%] Building CXX object fpga/aws-fpga/cosim_sc_wrapper.build/CMakeFiles/cosim_sc_wrapper.dir/src/transactors/gsgp2cosim.cpp.o
[ 96%] Building CXX object fpga/aws-fpga/cosim_sc_wrapper.build/CMakeFiles/cosim_sc_wrapper.dir/src/transactors/irq2gss.cpp.o
[ 96%] Linking CXX shared library libnvdla.so
[ 96%] Built target nvdla
[ 98%] Linking CXX shared library libcosim_sc_wrapper.so
[ 98%] Built target cosim_sc_wrapper
Scanning dependencies of target aarch64_toplevel
[100%] Building CXX object CMakeFiles/aarch64_toplevel.dir/src/aarch64_toplevel.cpp.o
[100%] Linking CXX executable aarch64_toplevel
/home/syed/workdla/nvdla/vp/libs/qbox.build/aarch64-softmmu/libqbox-nvdla.so: undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
CMakeFiles/aarch64_toplevel.dir/build.make:95: recipe for target 'aarch64_toplevel' failed
make[2]: *** [aarch64_toplevel] Error 1
CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/aarch64_toplevel.dir/all' failed
make[1]: *** [CMakeFiles/aarch64_toplevel.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant