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

Phasar won't build on Ubuntu #28

Closed
tiganov opened this issue Mar 20, 2019 · 2 comments
Closed

Phasar won't build on Ubuntu #28

tiganov opened this issue Mar 20, 2019 · 2 comments

Comments

@tiganov
Copy link

tiganov commented Mar 20, 2019

Hello, I am attempting to compile Phasar on Ubuntu 18.04 (I have also tried 16.04 with the same results). I am following your instructions, but I come across the following issue when running make in /build.

[  0%] Building CXX object lib/Controller/CMakeFiles/phasar_controller.dir/AnalysisController.cpp.o
cc1plus: error: to generate dependencies you must specify either -M or -MM
cc1plus: warning: unrecognized command line option ‘-Wno-return-type-c-linkage’
lib/Controller/CMakeFiles/phasar_controller.dir/build.make:62: recipe for target 'lib/Controller/CMakeFiles/phasar_controller.dir/AnalysisController.cpp.o' failed
make[2]: *** [lib/Controller/CMakeFiles/phasar_controller.dir/AnalysisController.cpp.o] Error 1
CMakeFiles/Makefile2:2868: recipe for target 'lib/Controller/CMakeFiles/phasar_controller.dir/all' failed
make[1]: *** [lib/Controller/CMakeFiles/phasar_controller.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
@pdschubert
Copy link
Member

Hi, please set the system's C and C++ compiler variables to clang before generating the Makefile using cmake:

$ export CC=/usr/local/bin/clang
$ export CXX=/usr/local/bin/clang++

(You may need to adjust the paths as necessary.)

@tiganov
Copy link
Author

tiganov commented Mar 21, 2019

This worked. I did this before, but just didn't remove the current build files after setting the paths and before running cmake again. Thank you!

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

2 participants