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

error: C++ preprocessor "/lib/cpp" fails sanity check #22075

Open
5 of 7 tasks
ChrigiGee opened this issue Sep 30, 2024 · 6 comments
Open
5 of 7 tasks

error: C++ preprocessor "/lib/cpp" fails sanity check #22075

ChrigiGee opened this issue Sep 30, 2024 · 6 comments
Labels

Comments

@ChrigiGee
Copy link

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 details

in log i can't find much more info.

Verification

Windows Version

MINGW64_NT-10.0-26100

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

OK

@ChrigiGee ChrigiGee added the bug label Sep 30, 2024
@Biswa96
Copy link
Member

Biswa96 commented Sep 30, 2024

Please provide the steps to reproduce the issue.

@ChrigiGee
Copy link
Author

execute $ ./configure

@Biswa96
Copy link
Member

Biswa96 commented Sep 30, 2024

where should I run that command?

@ChrigiGee
Copy link
Author

ChrigiGee commented Sep 30, 2024

In the shell of mingw64, also I try in the shell of ucrt64
I delete mingw and reinstall, same error.
I delete the full directory of the zip of xapian and unzip again. Same error again.
I update to the newest one of mingw by the update script himself.
Always the same error.

config.log

@revelator
Copy link
Contributor

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).

@revelator
Copy link
Contributor

one strange thing why is the compiler installed here ?? -> H:\Programme\msys64.
you should use as short a path as possible due to the shell not handling long paths all to well, preferable in the standard location eg. C:\Msys64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants