bootstrap fails in arch that doesn't support gprof
andyli opened this issue · 3 comments
andyli commented
I'm packaging obuild for fedora and found out that ./bootstrap
failed on aarch64 and s390x. The error was:
Configuring obuild-0.1.8...
[ 1 of 56] Compiling Ext.Fugue
Profiling with "gprof" is not supported on this platform.
real 0m0.843s
user 0m0.706s
sys 0m0.287s
error: Bad exit status from /var/tmp/rpm-tmp.8ys63H (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.8ys63H (%build)
Child return code was: 1
Is there an easy way to disable gprof during bootstrap, or let obuild detects that the arch is not supported thus does not turn it on?
andyli commented
Turn out the default is no profiling, but there is a bug in parsing cmd args that cause profiling to be turned on no matter what. #170 fixed the issue.
UnixJunkie commented
corresponding PR was merged so closing
UnixJunkie commented
thanks a lot for the problem detection and the fix