-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: C++ preprocessor "/lib/cpp" fails sanity check #22075
Comments
Please provide the steps to reproduce the issue. |
execute $ ./configure |
where should I run that command? |
In the shell of mingw64, also I try in the shell of ucrt64 |
ran into this quite a few times with the older gcc versions, in essence it looks for the c preprocessor in the wrong directory and there are numerous reasons this can happen. A: the package or source you are trying to build is trying to use the Msys2 compiler instead of the MinGW compiler (minor fix try uninstalling Msys2 gcc and binutils eg. pacman -R gcc binutils). B: something went wrong when the MinGW compiler was built and it broke it's internal paths (no fix except figuring out what broke it). C: some other thing might have broken path handling (usually because you have multiple compilers on path. Fixing this can be quite annoying as you have to check the %PATH% variable for compilers that might interfere eg. echo %PATH% should give you a list of things on path. run this in windows command shell not the Msys2 shell. if you dont want to mess with how you have it set up comment this in the compiler.ini file -> MSYS2_PATH_TYPE=inherit so it becomes #MSYS2_PATH_TYPE=inherit, this should remove everything from path except windows system dirs). |
one strange thing why is the compiler installed here ?? -> H:\Programme\msys64. |
Description / Steps to reproduce the issue
I try to config xapian-core-1.4.26.
I install any are important by xapian.
always again i have this Error
Expected behavior
create files for make application
Actual behavior
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in
/c/Users/cschaer/Downloads/xapian-core-1.4.26/xapian-core-1.4.26': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See
config.log' for more detailsin log i can't find much more info.
Verification
Windows Version
MINGW64_NT-10.0-26100
MINGW environments affected
Are you willing to submit a PR?
OK
The text was updated successfully, but these errors were encountered: