[MacPorts] #68725: go @1.7.13 - Fails to Build on Mtn Lion
MacPorts
noreply at macports.org
Sat Nov 18 01:09:36 UTC 2023
#68725: go @1.7.13 - Fails to Build on Mtn Lion
---------------------+--------------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: mountainlion
Port: go |
---------------------+--------------------------
Description changed by ryandesign:
Old description:
> I previously reported that legacy version of `go`, version @1.17.13, is
> completely broken on Lion and Mtn Lion.
>
> See https://trac.macports.org/ticket/68700
>
> So I thought maybe I could fix the problem by building `go @1.17.13` from
> source. It failed with a `dyld: Symbol not found: _clock_gettime:`
> error. See below.
>
> {{{
> bash-3.2$ sudo port uninstall go
> ---> Deactivating go @1.17.13_0
> ---> Cleaning go
> ---> Uninstalling go @1.17.13_0
> ---> Cleaning go
>
> bash-3.2$ sudo port -vs install go
> ---> Computing dependencies for go.
> ---> Fetching distfiles for go
> ---> go1.17.13.src.tar.gz does not exist in
> /opt/local/var/macports/distfiles/go
> ---> Attempting to fetch go1.17.13.src.tar.gz from
> https://storage.googleapis.com/golang/
> % Total % Received % Xferd Average Speed Time Time Time
> Current
> Dload Upload Total Spent Left
> Speed
> 100 21.1M 100 21.1M 0 0 2691k 0 0:00:08 0:00:08 --:--:--
> 2766k
> ---> go1.17.13.darwin-amd64.tar.gz does not exist in
> /opt/local/var/macports/distfiles/go
> ---> Attempting to fetch go1.17.13.darwin-amd64.tar.gz from
> https://storage.googleapis.com/golang/
> % Total % Received % Xferd Average Speed Time Time Time
> Current
> Dload Upload Total Spent Left
> Speed
> 100 130M 100 130M 0 0 2208k 0 0:01:00 0:01:00 --:--:--
> 3195k
> ---> Verifying checksums for go
> ---> Checksumming go1.17.13.src.tar.gz
> ---> Checksumming go1.17.13.darwin-amd64.tar.gz
> ---> Extracting go
> ---> Extracting go1.17.13.src.tar.gz
> Executing: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work"
> && /usr/bin/gzip -dc
> '/opt/local/var/macports/distfiles/go/go1.17.13.src.tar.gz' |
> /usr/bin/gnutar --no-same-owner -xf -
> xinstall: mkdir
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go_prebuilt
> ---> Applying patches to go
> ---> Applying patch-cgo-drop-no-nullability-completeness.diff
> Executing: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go"
> && /usr/bin/patch -p0 <
> '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/go/files
> /patch-cgo-drop-no-nullability-completeness.diff'
> patching file src/runtime/cgo/cgo.go
> ---> Configuring go
> ---> Building go
> Executing: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go/src"
> && ./make.bash -v=3
> dyld: Symbol not found: _clock_gettime
> Referenced from:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go_prebuilt/go/bin/go
> Expected in: flat namespace
>
> Building Go cmd/dist using
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go_prebuilt/go.
> ()
> dyld: Symbol not found: _clock_gettime
> Referenced from:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go_prebuilt/go/bin/go
> Expected in: flat namespace
>
> ./make.bash: line 184: 39300 Trace/BPT trap: 5
> GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" GO111MODULE=off
> "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist
> Command failed: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go/src"
> && ./make.bash -v=3
> Exit code: 133
> Error: Failed to build go: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug.
> Error: Processing of port go failed
> }}}
New description:
I previously reported that legacy version of `go`, version @1.17.13, is
completely broken on Lion and Mtn Lion.
See #68700
So I thought maybe I could fix the problem by building `go @1.17.13` from
source. It failed with a `dyld: Symbol not found: _clock_gettime:` error.
See below.
{{{
bash-3.2$ sudo port uninstall go
---> Deactivating go @1.17.13_0
---> Cleaning go
---> Uninstalling go @1.17.13_0
---> Cleaning go
bash-3.2$ sudo port -vs install go
---> Computing dependencies for go.
---> Fetching distfiles for go
---> go1.17.13.src.tar.gz does not exist in
/opt/local/var/macports/distfiles/go
---> Attempting to fetch go1.17.13.src.tar.gz from
https://storage.googleapis.com/golang/
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 21.1M 100 21.1M 0 0 2691k 0 0:00:08 0:00:08 --:--:--
2766k
---> go1.17.13.darwin-amd64.tar.gz does not exist in
/opt/local/var/macports/distfiles/go
---> Attempting to fetch go1.17.13.darwin-amd64.tar.gz from
https://storage.googleapis.com/golang/
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 130M 100 130M 0 0 2208k 0 0:01:00 0:01:00 --:--:--
3195k
---> Verifying checksums for go
---> Checksumming go1.17.13.src.tar.gz
---> Checksumming go1.17.13.darwin-amd64.tar.gz
---> Extracting go
---> Extracting go1.17.13.src.tar.gz
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work"
&& /usr/bin/gzip -dc
'/opt/local/var/macports/distfiles/go/go1.17.13.src.tar.gz' |
/usr/bin/gnutar --no-same-owner -xf -
xinstall: mkdir
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go_prebuilt
---> Applying patches to go
---> Applying patch-cgo-drop-no-nullability-completeness.diff
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go"
&& /usr/bin/patch -p0 <
'/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/go/files
/patch-cgo-drop-no-nullability-completeness.diff'
patching file src/runtime/cgo/cgo.go
---> Configuring go
---> Building go
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go/src"
&& ./make.bash -v=3
dyld: Symbol not found: _clock_gettime
Referenced from:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go_prebuilt/go/bin/go
Expected in: flat namespace
Building Go cmd/dist using
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go_prebuilt/go.
()
dyld: Symbol not found: _clock_gettime
Referenced from:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go_prebuilt/go/bin/go
Expected in: flat namespace
./make.bash: line 184: 39300 Trace/BPT trap: 5
GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" GO111MODULE=off
"$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/work/go/src"
&& ./make.bash -v=3
Exit code: 133
Error: Failed to build go: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go/go/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port go failed
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/68725#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list