You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apply an incorrect patch to readline.c that causes compilation to fail (to mimic the situation I'm in, I don't have a minimal reproducer yet). Try building with --verbose. You'll see something like:
readline.c: ... error: <compiler error message>
1 error generated.
make[2]: *** [readline.o] Error 1
make[1]: *** [ext/readline/all] Error 2
<other stuff>
Inspect or clean up the working tree at /tmp/ruby-build.20220813172251.84708.XSQCpi
Results logged to /tmp/ruby-build.20220813172251.84708.log
The failing invocation itself is not printed (I checked the mentioned log as well), perhaps because the verbose is not being passed through to the make invocation.
Expected vs. actual behavior
With --verbose, I would expect all compiler invocations to be printed, so that one can narrow down the cause of the failure quickly, and potentially compare the invocation with a successful build in a different configuration.
Logs
n/a -- this bug isn't about my specific failure (I'll investigate that), but about --verbose.
The text was updated successfully, but these errors were encountered:
It wasn't too hard to work around this by using a custom CC which logs the invocations, so I think it's OK to close this if you want --verbose to not be so verbose. IIRC the compiler invocations for OpenSSL are printed though, so this behavior seems inconsistent and potentially unintentional.
It depends on what the Makefile prints, for openssl it seems to print command lines, for ruby the Makefile prints something like compiling foo.c. Not sure if there is a way to tweak that.
Agreed that ruby-build could logging names of external commands and the arguments that it invokes them with. These would be generally useful in logs, not just in --verbose mode.
Steps to reproduce the behavior
Apply an incorrect patch to
readline.c
that causes compilation to fail (to mimic the situation I'm in, I don't have a minimal reproducer yet). Try building with--verbose
. You'll see something like:The failing invocation itself is not printed (I checked the mentioned
log
as well), perhaps because the verbose is not being passed through to the make invocation.Expected vs. actual behavior
With
--verbose
, I would expect all compiler invocations to be printed, so that one can narrow down the cause of the failure quickly, and potentially compare the invocation with a successful build in a different configuration.Logs
n/a -- this bug isn't about my specific failure (I'll investigate that), but about
--verbose
.The text was updated successfully, but these errors were encountered: