-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Support for custom gcc paths #297
Comments
This step caused the error because the header file could not be found. |
solution: |
what path should be added to CPLUS_INCLUDE_PATH?? |
The correct header file path of custom GCC, by default, clang can't find them. |
With |
ISSUE apache#297 Locate the header file path of DORIS_GCC_HOME, add them to the CPLUS_INCLUDE_PATH environment variable. So clang can find it.
/opt/rh/devtoolset-7/root/usr/bin/gcc on my server. |
What is in |
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/ |
Could you reinstall gcc with three bit version |
After install gcc in this way,
There is only one version number by default. |
Another solution:
|
ISSUE apache#297 1. Find default header file paths of DORIS_GCC_HOME and set as enviroment variable CLANG_COMPATIBLE_FLAGS. 2. Explicitly add these paths to CLANG_INCLUDE_FLAGS.
* Support for custom build toolchains ISSUE #297 Locate the header file path of DORIS_GCC_HOME, add them to the CPLUS_INCLUDE_PATH environment variable. So clang can find it. * Compatible with custom toolchain for clang ISSUE #297 1. Find default header file paths of DORIS_GCC_HOME and set as enviroment variable CLANG_COMPATIBLE_FLAGS. 2. Explicitly add these paths to CLANG_INCLUDE_FLAGS.
After installing devtoolset-7-gcc to /opt/rh/devtoolset-7/, failed when compiling:
thirdparty/installed//include/boost/config/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found # include <cstddef>
So maybe need to better support thirdparty libraries and build toolchains.
The text was updated successfully, but these errors were encountered: