Let us know the real error.
There was a problem with the examples dir; it was unpopulated for some
reason so I repopulated it from master. With that I then got (Fedora 28):
[ 44%] Linking CXX shared library libparseAPI.so
CMakeFiles/parseAPI.dir/src/debug_parse.C.o: In function
`Dyninst::ParseAPI::parsing_printf_int(char const*, ...)':
/work/scox/dyninst/src/parseAPI/src/debug_parse.C:65: undefined
reference to `omp_get_thread_num'
collect2: error: ld returned 1 exit status
make[2]: *** [parseAPI/CMakeFiles/parseAPI.dir/build.make:1160:
parseAPI/libparseAPI.so.9.3.2] Error 1
make[1]: *** [CMakeFiles/Makefile2:1082:
parseAPI/CMakeFiles/parseAPI.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
To get around that I added this to parseAPI/CMakeLists.txt
set(OPENMP_LIBRARIES gomp)
# scox added OPENMP_LIBRARIES
target_link_private_libraries(parseAPI ${Boost_LIBRARIES}
${TBB_LIBRARIES} ${OPENMP_LIBRARIES} tbbmalloc)
and got past that. However I still hit the problem building the
examples (issue #459)
[ 93%] Linking CXX executable codeCoverage
/usr/bin/ld: cannot open output file codeCoverage: Is a directory
collect2: error: ld returned 1 exit status
I pulled in the #459 patch which resolves the above but hit a different
problem building examples that I'll look at.
[ 94%] Linking CXX executable cfg_to_dot
/usr/bin/ld: CMakeFiles/cfg_to_dot.dir/__/parseAPI/doc/example.cc.o:
undefined reference to symbol '_ZN5boost6system16generic_categoryEv'
//usr/lib64/libboost_system.so.1.66.0: error adding symbols: DSO missing
from command line
collect2: error: ld returned 1 exit status
|