[MacPorts] #63055: Go build fails because of -j1 flag despite use_parallel_build no
MacPorts
noreply at macports.org
Tue Jun 8 12:24:00 UTC 2021
#63055: Go build fails because of -j1 flag despite use_parallel_build no
---------------------------------+--------------------
Reporter: TruePath | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: make.bash, parallel | Port: go
---------------------------------+--------------------
On the latest macports (build from master at commit e641f42a) attempts to
install go fail with the error given below because make.bash doesn't like
the -j1 option
This can be solved via the quick hack of changing the build.cmd in the
portfile to
{{{ build.cmd bash -c "./make.bash" }}} but this is an ugly
hack. The docs don't say that -j1 will be passed if use_parrallel_build
is set to no but there should be some way to suppress this so no weird
shim to eliminate the -j1 arg is needed (I'm sure I just don't know how to
do it)
{{{
:info:build Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_go/go/work/go/src"
&& ./make.bash -j1
:debug:build system: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_go/go/work/go/src"
&& ./make.bash -j1
:info:build Building Go cmd/dist using /opt/local/lib/go-1.4. (go1.4.3
darwin/amd64)
:info:build flag provided but not defined: -j1
:info:build usage: go tool dist bootstrap [options]
:info:build -a=false: rebuild all
:info:build -d=false: enable debugging of bootstrap process
:info:build -no-banner=false: do not print banner
:info:build -v=0: verbosity
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_go/go/work/go/src"
&& ./make.bash -j1
:info:build Exit code: 2
:error:build Failed to build go: command execution failed
:debug:build Error code: CHILDSTATUS 26474 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec -callback
portprogress::target_progress_callback build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_go/go/main.log
for details.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63055>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list