ocaml-obuild / obuild

simple package build system for ocaml
BSD 2-Clause "Simplified" License
55 stars 20 forks source link

bootstrap fails in arch that doesn't support gprof #169

Closed andyli closed 6 years ago

andyli commented 6 years ago

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 6 years ago

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 6 years ago

corresponding PR was merged so closing

UnixJunkie commented 6 years ago

thanks a lot for the problem detection and the fix