-
Notifications
You must be signed in to change notification settings - Fork 13
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
Chicken/Egg compile problem with libompd #46
Comments
My latest commit to ompd should fix this issue (although not tested by building from scratch without an openmp compiler) |
Unfortunately, this is still broken: [917/3945] Building CXX object projects/openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o
FAILED: projects/openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o
/g/g0/martymcf/.session.ray/build/linux-rhel7-ppc64le/llvm.justclang/bin/clang++ -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dompd_EXPORTS -Iprojects/openmp/libompd/src -I/g/g0/martymcf/.session.ray/src/llvm.ompd/projects/openmp/libompd/src -Iinclude -I/g/g0/martymcf/.session.ray/src/llvm.ompd/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fcolor-diagnostics -std=c++11 -std=c++11 -g -fPIC -MD -MT projects/openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o -MF projects/openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o.d -o projects/openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o -c /g/g0/martymcf/.session.ray/src/llvm.ompd/projects/openmp/libompd/src/omp-debug.cpp
In file included from /g/g0/martymcf/.session.ray/src/llvm.ompd/projects/openmp/libompd/src/omp-debug.cpp:16:
/g/g0/martymcf/.session.ray/src/llvm.ompd/projects/openmp/libompd/src/omp-debug.h:65:7: warning: 'operator delete' has a non-throwing exception specification but can still throw [-Wexceptions]
throw std::bad_alloc();
^
/g/g0/martymcf/.session.ray/src/llvm.ompd/projects/openmp/libompd/src/omp-debug.h:62:8: note: deallocator has a non-throwing exception specification
void operator delete(void *addr) throw() {
^ ~~~~~~~
/g/g0/martymcf/.session.ray/src/llvm.ompd/projects/openmp/libompd/src/omp-debug.h:70:7: warning: 'operator delete[]' has a non-throwing exception specification but can still throw [-Wexceptions]
throw std::bad_alloc();
^
/g/g0/martymcf/.session.ray/src/llvm.ompd/projects/openmp/libompd/src/omp-debug.h:67:8: note: deallocator has a non-throwing exception specification
void operator delete[](void *addr) throw() {
^ ~~~~~~~
/g/g0/martymcf/.session.ray/src/llvm.ompd/projects/openmp/libompd/src/omp-debug.cpp:17:10: fatal error: 'omp.h' file not found
#include "omp.h"
^~~~~~~
2 warnings and 1 error generated. |
@jprotze, your latest commit has fixed the problem and it now seems to be building correctly. Thank you. Marty |
I am reopening this because I forgot that I also have a change that needs to be merged in to the ompd branch. I will generate a pull request shortly. |
@ilagunap and @jprotze,
I am now attempting to build the OMP runtime (for the first time with a compiler that does not yet have an OMP runtime) with -DLIBOMP_OMPD_ENABLED=On and I am seeing the following build failure since this is the first time that openmp is being built.
Perhaps there should be some sort of dependency of libompd on openmp? Or the header file should be obtained from somewhere else?
The text was updated successfully, but these errors were encountered: