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

Compilation with -DCMAKE_BUILD_TYPE=Debug fails #16

Closed
gmarpons opened this issue Aug 17, 2012 · 1 comment
Closed

Compilation with -DCMAKE_BUILD_TYPE=Debug fails #16

gmarpons opened this issue Aug 17, 2012 · 1 comment
Labels

Comments

@gmarpons
Copy link
Owner

On branch get_rules_dir_at_runtime.

error: unable to load plugin
'/home/gmarpons/llvm-cmake-debug/projects/crisp/lib/DeclExtractor/libdeclextractor.so':
'/home/gmarpons/llvm-cmake-debug/projects/crisp/lib/DeclExtractor/libdeclextractor.so:
undefined symbol: _ZN4llvm9DebugFlagE'
make[2]: *** [lib/CrispClangPlugin/CMakeFiles/run_clang_decl_extractor.dir/ClangDeclarations.cpp.o] Error 1

@rizsotto
Copy link
Collaborator

It is there because your clang were compiled in release mode. Check this out http://llvm.org/docs/doxygen/html/Debug_8h_source.html The symbol is guarded by #ifndef NDEBUG, so you have no chance to have it when you compile against release mode llvm libs. Was able to make a debug build Crisp iff the clang was also a debug build.

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

2 participants