Re: Go fails build on Mac OS X 10.11

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.general
Organization Snaggled Works
Message-ID <[email protected]>
On 10/1/21 7:09 AM, Scott Hannahs via Fink-users wrote:
> This is the third of a few build failures.  Attempt to try to update “go”.  This is the missing symbol _clock_gettime that I think appeared in another package.  I forget the resolution of that one.
> 
> sudo -u fink-bld [ENV] sh -c /tmp/fink.LiKdj
> cd src && GOROOT_FINAL=/sw/lib/go GOROOT_BOOTSTRAP=/sw/src/fink.build/go-1.16.6-1/go/../go-1.16.6/go ./make.bash --no-banner
> dyld: Symbol not found: _clock_gettime
>    Referenced from: /sw/src/fink.build/go-1.16.6-1/go/../go-1.16.6/go/bin/go
>    Expected in: flat namespace
> 
> Building Go cmd/dist using /sw/src/fink.build/go-1.16.6-1/go/../go-1.16.6/go. ()
> dyld: Symbol not found: _clock_gettime
>    Referenced from: /sw/src/fink.build/go-1.16.6-1/go/../go-1.16.6/go/bin/go
>    Expected in: flat namespace
> 
> ./make.bash: line 184: 91883 Trace/BPT trap: 5       GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" GO111MODULE=off "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist
> ### execution of cd failed, exit code 133
> ### execution of /tmp/fink.LiKdj failed, exit code 133
> 
> ...
> 
> Package manager version: 0.45.3
> Distribution version: selfupdate-git Mon Sep 27 20:55:21 2021, 10.11, x86_64
> Trees: local/main stable/main local/injected
> Xcode.app: 8.2.1
> Xcode command-line tools: 8.2.0.0.1.1480973914
> Max. Fink build jobs:  1

_clock_gettime is only available from 10.12 and up. The go 1.14 release 
notes (the previous version in Fink) say that 1.15 will require macOS 
10.12, and the 1.15 release notes confirm that. I've made the older 1.14 
available for 10.9-10.11.

Hanspeter



_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.