[MacPorts] #70190: go-1.4 @1.4.3_1: warning: unable to find runtime/cgo.a
MacPorts
noreply at macports.org
Sun Jun 9 02:54:31 UTC 2024
#70190: go-1.4 @1.4.3_1: warning: unable to find runtime/cgo.a
------------------------+--------------------
Reporter: ar-an-ribe | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: | Port: go-1.4
------------------------+--------------------
After uninstalling the `go @1.17.13` and `go-1.4 @1.4.3_1` ports from my
laptop with OS X 10.9 (Mavericks), I’d reïnstalled `go-1.4 @1.4.3_1` to
try my hand at compiling Go 1.10.8 [the last supported version of Go on
Mavericks] from source, and the compilation process emitted a warning that
it was unable to find `runtime/cgo.a` before producing a fatal error:
{{{
Building Go cmd/dist using /opt/local/lib/go-1.4.
Building Go toolchain1 using /opt/local/lib/go-1.4.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
warning: unable to find runtime/cgo.a
Building Go toolchain2 using go_bootstrap and Go toolchain1.
fatal error: runtime: bsdthread_register error
runtime stack:
runtime.throw(0x4301e9b, 0x21)
/Users/ar-an-ribe/go-1.10.8/src/runtime/panic.go:616 +0x81
fp=0x7fff5fbfec88 sp=0x7fff5fbfec68 pc=0x4029e31
runtime.goenvs()
/Users/ar-an-ribe/go-1.10.8/src/runtime/os_darwin.go:129 +0x83
fp=0x7fff5fbfecb8 sp=0x7fff5fbfec88 pc=0x40279b3
runtime.schedinit()
/Users/ar-an-ribe/go-1.10.8/src/runtime/proc.go:501 +0xd6
fp=0x7fff5fbfed20 sp=0x7fff5fbfecb8 pc=0x402c726
runtime.rt0_go(0x7fff5fbfed68, 0x9, 0x7fff5fbfed68, 0x0, 0x7fff90f195fd,
0x7fff90f195fd, 0x0, 0x9, 0x7fff5fbff008, 0x7fff5fbff051, ...)
/Users/ar-an-ribe/go-1.10.8/src/runtime/asm_amd64.s:252 +0x1f4
fp=0x7fff5fbfed28 sp=0x7fff5fbfed20 pc=0x4051ff4
go tool dist: FAILED: /Users/ar-an-
ribe/Source/go-1.10.8/pkg/tool/darwin_amd64/go_bootstrap install
-gcflags=all= -ldflags=all=\"-extldflags=${configure.ldflags}\" -i cmd/asm
cmd/cgo cmd/compile cmd/link: exit status 2
}}}
Should a `runtime/cgo.a` file have been installed as part of the `go-1.4
@1.4.3_1` port? There are numerous files within the
`/opt/local/lib/go-1.4` directory hierarchy that begin with “cgo”,
including (but not limited to) a `./src/runtime/cgo` directory, but a
“cgo.a” file was nowhere within that directory hierarchy.
I don’t know whether or not the fatal error above was caused by the
absence of the `runtime/cgo.a` file.
No notes were included with the `go-1.4 @1.4.3_1` port, so I don’t know if
any or all of the `GO_EXTLINK_ENABLED`, `GO_LDFLAGS`, and `CGO_LDFLAGS`
environment variables (which were mentioned in the notes of the `go
@1.17.13` port) need to be set to allow compilation of supported versions
of Go from source using the `go-1.4 @1.4.3_1` port.
--
Ticket URL: <https://trac.macports.org/ticket/70190>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list