[MacPorts] #52506: go @1.7.1_0.darwin_10.x86_64 fails to compile/install

MacPorts noreply at macports.org
Wed Oct 5 02:09:39 CEST 2016


#52506: go @1.7.1_0.darwin_10.x86_64 fails to compile/install
------------------------+--------------------------------
 Reporter:  macports@…  |      Owner:  macports-tickets@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.3.4
 Keywords:              |       Port:  go
------------------------+--------------------------------
 Upgrading, cleaning, uninstalling and reinstalling didn't work.
 The only thing in the logfile that looks like an error is:

 {{{
 :info:build # crypto/x509
 :info:build crypto/x509/root_cgo_darwin.go: In function 'FetchPEMRoots':
 :info:build crypto/x509/root_cgo_darwin.go:97: error: 'for' loop initial
 declaration used outside C99 mode
 :info:build crypto/x509/root_cgo_darwin.go:106: error: 'for' loop initial
 declaration used outside C99 mode

 ...

 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_go/go/work/go/src"
 && ./make.bash
 :info:build Exit code: 2
 :error:build org.macports.build for port go returned: command execution
 failed
 :debug:build Error code: CHILDSTATUS 35058 2
 :debug:build Backtrace: command execution failed
     while executing
 "system -nice 0 $fullcmdstring"
     ("eval" body line 1)
     invoked from within
 "eval system $notty $nice \$fullcmdstring"
     invoked from within
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "portbuild::build_main org.macports.build"
     ("eval" body line 1)
     invoked from within
 "eval $procedure $targetname"
 :info:build Warning: targets not executed for go: org.macports.activate
 org.macports.build org.macports.destroot org.macports.install

 }}}

 Another odd thing is that the top of the logfile, it says that
 go-1.4 is installed and active even though I uninstalled it first
 and port installed go reports "None of the specified ports are
 installed.":

 {{{
 :debug:main go-1.4 1.4.3_0 exists in the ports tree
 :debug:main go-1.4 1.4.3_0  is the latest installed
 :debug:main go-1.4 1.4.3_0  is active
 }}}

 But that may not be important.

-- 
Ticket URL: <https://trac.macports.org/ticket/52506>
MacPorts <https://www.macports.org/>
Ports system for the Mac operating system



More information about the macports-tickets mailing list