-
Notifications
You must be signed in to change notification settings - Fork 2
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
Failed for scapix_generated #6
Comments
I cannot recreate this issue using Ubuntu 22.04 with gcc 11.4 compiler. This is what I installed on clean Ubuntu 22.04:
Can you post here CMake output with information on compiler chosen by CMake? |
The following is the CMake configuration log.
|
Thank you for your report. Can you please run one more test? In the file:
In line 474, replace: This will print more info during build.
|
"Okay, I tried it, and the detailed results are as follows:"
|
Okay, I installed gcc 12: CMake picks up gcc 11, while clang based scapix parser picks up gcc 12. I will investigate further, thanks a lot for your help. If you need a workaround right now, you need to uninstall multiple versions of gcc and leave only one (you seem to have 3 versions installed: 10, 11, 12). |
This problem affects clang in general, when both gcc-11 and gcc-12 is installed on Ubuntu 22.04: clang fails to find C++ headers in presence of gcc-12 package |
I found out this problem exists when you install "gcc-12" package. If you install "g++-12" package instead, there is no problem. "gcc-12" package does not install C++ standard library, while "g++-12" package does install it. This problem affects any instance of clang compiler, including system clang compiler and clang compiler used as scapix parser. |
When running 'default.sh' in Bash, an error is encountered, and this error repeats multiple times.
ENV:
ubuntu-22.04
tips:
[ 5%] Building CXX object _deps/scapix-1.0.35-build/CMakeFiles/scapix.dir/source/scapix/bridge/python/dummy.cpp.o
[ 10%] Linking CXX static library libscapix.a
[ 10%] Built target scapix
Scanning dependencies of target chatlib_scapix_generated
[ 15%] Running Scapix Bridge for ... example1/source/chat/contact.h
... example1/source/chat/contact.h:10:10: fatal error: 'string' file not found
#include
^~~~~~~~
1 error generated.
Error while processing /home/damone/project/example1/source/chat/contact.h.
gmake[2]: *** [CMakeFiles/chatlib_scapix_generated.dir/build.make:147:../../generated/bridge/java/contact.cpp] error 1
gmake[1]: *** [CMakeFiles/Makefile2:162:CMakeFiles/chatlib_scapix_generated.dir/all] error 2
gmake: *** [Makefile:91:all] error 2
The text was updated successfully, but these errors were encountered: