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

C preprocessor "/lib/cpp" fails sanity check #667

Closed
starg2 opened this issue Jan 20, 2024 · 3 comments
Closed

C preprocessor "/lib/cpp" fails sanity check #667

starg2 opened this issue Jan 20, 2024 · 3 comments

Comments

@starg2
Copy link
Contributor

starg2 commented Jan 20, 2024

Today, I tried to build gcc 13.2.0 but every configuration failed with the following error:

checking how to run the C preprocessor... /lib/cpp
configure: error: in `/c/buildroot/x86_64-1320-posix-seh-ucrt-rt_v11-rev0/build/gcc-13.2.0/x86_64-w64-mingw32/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
make[2]: *** [Makefile:19013: configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory '/c/buildroot/x86_64-1320-posix-seh-ucrt-rt_v11-rev0/build/gcc-13.2.0'
make[1]: *** [Makefile:24536: stage1-bubble] Error 2
make[1]: Leaving directory '/c/buildroot/x86_64-1320-posix-seh-ucrt-rt_v11-rev0/build/gcc-13.2.0'
make: *** [Makefile:1091: all] Error 2

The error happened while configuring libgcc in stage1. I have no idea why configure thinks non-existing /lib/cpp is a C preprocessor.

Strangely, the same configurations built successfully last month.

Any help would be appreciated.

@starg2
Copy link
Contributor Author

starg2 commented Jan 21, 2024

Downgrading msys2-runtime from 3.4.10-4 to 3.4.10-2 solved the issue.

So we are affected by pathconv-adjustments as well. (cf. msys2/msys2-runtime#187)

@starg2
Copy link
Contributor Author

starg2 commented Feb 7, 2024

Msys2 project has recently built gcc successfully.

The true cause must be somewhere in the differences between msys2 and mingw-builds.

@starg2
Copy link
Contributor Author

starg2 commented Feb 11, 2024

Msys2-runtime 3.4.10-5 was released and the isuue is fixed now.

@starg2 starg2 closed this as completed Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant