Re: Go fails build on Mac OS X 10.11
Scott Hannahs via Fink-users <[email protected]>
| Newsgroups | gmane.os.apple.fink.general |
|---|---|
| Message-ID | <[email protected]> |
> On Oct 3, 2021, at 9:55 AM, Hanspeter Niederstrasser <[email protected]> wrote: > > 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 There was a similar issue in building R-base35 and linking. I think the autoconf was not handling it correctly? > The header seems to imply that timespec_get is only available in >=10.15? > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/time.h > > There seems to be some long history about this function. The autoconfig checks for the librt library but seems to find it? > AC_CHECK_LIB(rt, clock_gettime) > > I seem to be getting out of my depth with autoconfig files. But limiting go to version1.14 for the older systems will also work for me. -Scott _______________________________________________ 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