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

Configure shouldn't send so much stuff to /dev/null #22801

Open
khwilliamson opened this issue Nov 30, 2024 · 0 comments
Open

Configure shouldn't send so much stuff to /dev/null #22801

khwilliamson opened this issue Nov 30, 2024 · 0 comments

Comments

@khwilliamson
Copy link
Contributor

Description

#22728 and #22793 both appear to stem from a hard-to-spot typo in a C program that Configure tries to compile and run. It turns out that that typo causes the compilation to be aborted on some platforms/compilers, but not others. But in all cases, stderr is redirected to
/dev/null, making this hard to diagnose and solve.

We need some mechanism for such failures to be reportable. I believe that there are cases where the compilation will fail, and that is viewed as an indication that the current platform doesn't support the feature the test program is checking on.

A solution that occurs to me is to capture all such things in a temporary file, which normally gets thrown away, but provide a means to dump its contents on demand.

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

No branches or pull requests

1 participant