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
[ERROR] configure: error: C preprocessor "/lib/cpp" fails sanity check #327
Comments
@jcmvbkbc Maybe you can take a look here? |
@M2shad0w You also need to give us more information. I have a math problem. The answer I got was 4. It's wrong. What is wrong with my math equation? Can you think about my math problem and your issue and discover what you need to show us to help you? |
i do as the article build ESP8266 dep envstep by step but when i run command the process fails with error
then do as this issue
passed, but failed with above mention
here is all the build log about 4M |
@M2shad0w can you also share the file /Volumes/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-core-pass-2/xtensa-lx106-elf/libgcc/config.log ? |
@jcmvbkbc thank you for your response |
@M2shad0w thanks. So...
...for some reason the cross compiler tries to use host's include files through the libgcc configuration process. Let's try to find out why by invoking it with -v option so that it prints details of what it does. Can you do the following and post the output here?:
|
@jcmvbkbc |
@M2shad0w OK, there are extra include directories. Looks like they are picked from the CPATH environment variable. Can you run your crosstool-NG build with this variable unset? I also suspect that you'd need to unset it to be able to use the built cross-compiler. |
@jcmvbkbc thanks . |
@jcmvbkbc +1 Thanks for your help with this! |
I'm actually going to make this a test or abort in crosstool-NG.sh.in, as setting CPATH for any build could potentially break the build. |
when i build crosstools-ng for esp8266, it raises this error, anyone help?
The text was updated successfully, but these errors were encountered: