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

building error with clang 8.0.0 / Arch #77

Closed
aldenhallak opened this issue Apr 12, 2019 · 2 comments
Closed

building error with clang 8.0.0 / Arch #77

aldenhallak opened this issue Apr 12, 2019 · 2 comments
Assignees

Comments

@aldenhallak
Copy link

/usr/bin/ld: CMakeFiles/codebrowser_generator.dir/main.cpp.o: undefined reference to symbol '_ZN5clang22PCHContainerOperationsC1Ev'
/usr/bin/ld: /usr/lib/../lib/libclangSerialization.so.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [generator/CMakeFiles/codebrowser_generator.dir/build.make:212: generator/codebrowser_generator] Error 1
make[1]: *** [CMakeFiles/Makefile2:157: generator/CMakeFiles/codebrowser_generator.dir/all] Error 2

not sure if this was related to earlier clang issues.

@oddtux
Copy link

oddtux commented May 18, 2019

it can be fixed by adding "clangSerialization" to file "generator/CMakeLists.txt".

like this:

--- a/generator/CMakeLists.txt
+++ b/generator/CMakeLists.txt
@@ -20,6 +20,7 @@ target_link_libraries(codebrowser_generator PRIVATE
   clangBasic
   clangLex
   clangTooling
+  clangSerialization
 )

@ogoffart
Copy link
Contributor

Thanks,
was fixed with 25cdb43

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

No branches or pull requests

3 participants