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

Chicken/Egg compile problem with libompd #46

Open
mcfadden8 opened this issue May 15, 2018 · 4 comments
Open

Chicken/Egg compile problem with libompd #46

mcfadden8 opened this issue May 15, 2018 · 4 comments
Assignees
Labels

Comments

@mcfadden8
Copy link

@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?

[9/2936] 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.
[29/2936] Linking CXX executable bin/llvm-tblgen
ninja: build stopped: subcommand failed.
@jprotze
Copy link

jprotze commented May 15, 2018

My latest commit to ompd should fix this issue (although not tested by building from scratch without an openmp compiler)

@mcfadden8
Copy link
Author

@jprotze,

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.

@mcfadden8
Copy link
Author

@jprotze, your latest commit has fixed the problem and it now seems to be building correctly.

Thank you.

Marty

@mcfadden8 mcfadden8 reopened this May 15, 2018
@mcfadden8
Copy link
Author

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.

@jprotze jprotze added the OMPD label Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants