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

make error #6

Closed
mark-hahn opened this issue Feb 11, 2014 · 4 comments
Closed

make error #6

mark-hahn opened this issue Feb 11, 2014 · 4 comments

Comments

@mark-hahn
Copy link

I'm trying to build the 1.5 generator on ubuntu. I'm using clang 3.2 and gcc version 4.6.3. My cmake command is ...

cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_CONFIG_EXECUTABLE=/root/llvm32build/bin/llvm-config -DCMAKE_BUILD_TYPE=Release

The cmake seems to succeed. I'm getting this output on make ...

Scanning dependencies of target codebrowser_generator
[ 20%] Building CXX object CMakeFiles/codebrowser_generator.dir/main.cpp.o
cc1plus: error: unrecognized command line option â-std=c++11â
cc1plus: error: unrecognized command line option â-std=c++11â
make[2]: *** [CMakeFiles/codebrowser_generator.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/codebrowser_generator.dir/all] Error 2
make: *** [all] Error 2

What am I doing wrong?

.

@ogoffart
Copy link
Contributor

You need at lease gcc 4.7 because i am using C++11 constructs. You can also compile with clang using

cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_CONFIG_EXECUTABLE=/root/llvm32build/bin/llvm-config -DCMAKE_BUILD_TYPE=Release  -DCMAKE_CXX_COMPILER=/root/llvm32build/bin/clang++

However, I must admit I have not tried clang 3.2 for a long time so there might be errors. If possible, you should upgrade to 3.3 or 3.4. Else, please report the error and i will try to fix them.

@mark-hahn
Copy link
Author

Thx. I'll give that a try..

On Tue, Feb 11, 2014 at 12:33 AM, Olivier Goffart
notifications@github.comwrote:

You need at lease gcc 4.7 because i am using C++11 constructs. You can
also compile with clang using

cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_CONFIG_EXECUTABLE=/root/llvm32build/bin/llvm-config -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=/root/llvm32build/bin/clang++

However, I must admit I have not tried clang 3.2 for a long time so there
might be errors. If possible, you should upgrade to 3.3 or 3.4. Else,
please report the error and i will try to fix them.

Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-34734738
.

@amitprakash
Copy link

Having trouble building it with clang 3.3

cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_CONFIG_EXECUTABLE=/usr/local/bin/llvm-config -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=/usr/local/bin/clang++

make
clang: error: -E or -x required when input is from standard input
clang: error: -E or -x required when input is from standard input
clang: error: cannot specify -o when generating multiple output files
make[2]: *** [generator/CMakeFiles/codebrowser_generator.dir/main.cpp.o] Error 1
make[1]: *** [generator/CMakeFiles/codebrowser_generator.dir/all] Error 2
make: *** [all] Error 2

@ogoffart
Copy link
Contributor

ogoffart commented Apr 9, 2014

can you try VERBOSE=1 make ?

@ogoffart ogoffart closed this as completed Feb 5, 2015
azat pushed a commit to azat-archive/woboq_codebrowser that referenced this issue May 8, 2023
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