Opened 8 years ago
Closed 2 years ago
#52506 closed defect (fixed)
go @1.7.1_0.darwin_10.x86_64 fails to compile/install
Reported by: | macportsraf | Owned by: | ci42 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | herbygillot (Herby Gillot) | |
Port: | go |
Description
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.
Attachments (1)
Change History (4)
comment:1 Changed 8 years ago by ci42
comment:2 Changed 8 years ago by ci42
Owner: | changed from macports-tickets@… to ciserlohn@… |
---|
Changed 8 years ago by macportsraf
complete logfile from a clean install attempt
comment:3 Changed 2 years ago by mascguy (Christopher Nielsen)
Cc: | herbygillot added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Given that this ticket relates to a much older version of go
- combined with the fact that we have a newer ticket, covering 10.6_x64 - closing. Plus this was fixed at some point with newer releases, as versions of go
built successfully for 10.6_x64 up until very recently.
Latest failures tracked by issue:65176. @macportsraf, I added you to that newer ticket.
Please provide a complete log of a clean install attempt. Looks like a duplicate of #52036.
Since version 1.5 go ist self hosting. Go-1.4 is the last version written in C and used for bootstrapping go versions > 1.4. If you install go > 1.4 from source go-1.4 will be installed as a build time dependency.