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

undefined reference to omp_get_max_threads ; undefined reference to pthread_create #182

Closed
yurivict opened this issue Apr 30, 2021 · 2 comments

Comments

@yurivict
Copy link

Version 5.0.5 breaks:

[100% 47/47] : && /usr/bin/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer  -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector-strong blank/CMakeFiles/blank.dir/main.cpp.o -o blank/blank  -Wl,-rpath,/disk-samsung/freebsd-ports/misc/opennn/work/.build/opennn  opennn/libopennn.so && :
FAILED: blank/blank 
: && /usr/bin/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer  -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector-strong blank/CMakeFiles/blank.dir/main.cpp.o -o blank/blank  -Wl,-rpath,/disk-samsung/freebsd-ports/misc/opennn/work/.build/opennn  opennn/libopennn.so && :
ld: error: opennn/libopennn.so: undefined reference to omp_get_max_threads
ld: error: opennn/libopennn.so: undefined reference to pthread_create
c++: error: linker command failed with exit code 1 (use -v to see invocation)

OS: FreeBSD 12.2

@martin76ec
Copy link

Same issue here.

/usr/bin/ld: opennn/libopennn.a(data_set.cpp.o): in function OpenNN::DataSet::set_default()': data_set.cpp:(.text+0xe0bb): undefined reference to omp_get_max_threads'
/usr/bin/ld: opennn/libopennn.a(data_set.cpp.o): in function `std::thread::thread<std::function<void ()>, , void>(std::function<void ()>&&)':

@davidge807
Copy link
Contributor

Hi @yurivict @martin76ec

Are you still getting the same issue running the current dev version?

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

No branches or pull requests

3 participants