Opened 3 years ago
Closed 9 months ago
#64169 closed defect (fixed)
go can't be built on macOS 10.6 i686
Reported by: | catap (Kirill A. Korinsky) | Owned by: | ci42 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | snowleopard | Cc: | herbygillot (Herby Gillot), catap (Kirill A. Korinsky), mascguy (Christopher Nielsen) |
Port: | go |
Description
Building Go cmd/dist using /opt/local/lib/go-1.4. (go1.4.3 darwin/386) Building Go toolchain1 using /opt/local/lib/go-1.4. Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1. /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_go/go/work/go/pkg/tool/darwin_amd64/link: running /opt/local/bin/clang-mp-9.0 failed: exit status 1 ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_go/go/work/.tmp/go-link-026703735/go.o ld: warning: ignoring file /opt/local/lib/libMacportsLegacySupport.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64) Undefined symbols for architecture x86_64: "_clock_gettime", referenced from: _runtime.walltime_trampoline in go.o "_fdopendir$INODE64", referenced from: _syscall.libc_fdopendir_trampoline in go.o "_fstatat64", referenced from: _syscall.libc_fstatat64_trampoline in go.o "_openat", referenced from: _syscall.libc_openat_trampoline in go.o "_unlinkat", referenced from: _syscall.libc_unlinkat_trampoline in go.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Change History (18)
comment:1 Changed 3 years ago by kencu (Ken)
comment:2 Changed 3 years ago by catap (Kirill A. Korinsky)
Maybe the root cause that it had installed legacy support for wrong system?
comment:3 Changed 3 years ago by kencu (Ken)
go should ideally not be trying to build itself x86_64 on the i386 SnowLeopard builder. legacysupport is installed properly (i386).
Just for interest, there was a time I had legacysupport set up to always install itself as universal, to avoid just these sorts of things happening.
comment:4 Changed 3 years ago by jmroot (Joshua Root)
Cc: | herbygillot added |
---|---|
Owner: | set to ci42 |
Port: | go added |
Status: | new → assigned |
Please remember to fill in the Port field and Cc the maintainers.
comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | snowleopard added |
---|
Building legacy support universal would not solve this problem, it would just delay the problem until later and/or make it more difficult to detect, since as you say, the problem isn't legacy support's architectures; the problem is the architectures for which go is trying to build.
I don't know how go builds work but:
GOARCH='386' ^^^
I'm guessing this is MacPorts trying to inform the build system to do a 32-bit build.
Building Go cmd/dist using /opt/local/lib/go-1.4. (go1.4.3 darwin/386) ^^^
I'm guessing this is the build system acknowledging that request.
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_go/go/work/go/pkg/tool/darwin_amd64/link: running /opt/local/bin/clang-mp-9.0 failed: exit status 1 ^^^^^
Things appear to have gone wrong by this point but I don't know why.
If we're going to be interested in fixing 10.6 problems, then we should be more interested in fixing 32-bit-specific 10.6 problems, since there are 32-bit Intel Macs for which 10.6 is the last OS they can use, whereas every 64-bit Intel Mac can be upgraded to at least 10.7.
comment:6 Changed 3 years ago by kencu (Ken)
Of the MacPorts users who still run SnowLeopard, the ports tracker (imperfect as it is) shows the overwhelming majority use the 64bit version. I suspect virtually all of them use it to run some working-very-well legacy PPC software they don't want to give up like I do, not because of a machine hardware constraint.
The oldest Intel Mac I had that did not support 64 bit was a macmini 1,1, and I swapped the processor to a much faster 64bit core2 duo in 10 minutes, for $12, while upgrading the hard drive.
If the 32bit snowleopard comes along without too much trouble, that's OK, but it is quite a different animal to support than the 64bit snowleopard, which tends to fall in line very nicely with 10.7+ and requires relatively little extra work (except for things like go that have prebuilt upstream binaries that need TLS that need to run :> ).
comment:7 Changed 3 years ago by catap (Kirill A. Korinsky)
Ken, I'm a user who runs SnowLeopard for roseta :)
comment:8 follow-up: 14 Changed 3 years ago by catap (Kirill A. Korinsky)
Cc: | catap added |
---|
comment:9 Changed 2 years ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
comment:10 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)
The problem now with go @1.17.13 is:
./make.bash: line 173: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_go/go/work/go_prebuilt/go/bin/go: Bad CPU type in executable Building Go cmd/dist using /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_go/go/work/go_prebuilt/go. () ./make.bash: line 184: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_go/go/work/go_prebuilt/go/bin/go: Bad CPU type in executable Command failed: cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_go/go/work/go/src" && ./make.bash -v=3 Exit code: 1
comment:12 Changed 9 months ago by barracuda156
The issue is that GOARCH
is ignored by the build system, even with Go 1.14.15, which does support i386
. Not sure why.
UPD. Because build system is broken, and to force it use correct arch we need to pass GOHOSTARCH
.
comment:13 Changed 9 months ago by barracuda156
I got to this point, but here is segfaults:
Building Go toolchain2 using go_bootstrap and Go toolchain1. run: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v -i cmd/asm cmd/cgo cmd/compile cmd/link go tool dist: FAILED: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v -i cmd/asm cmd/cgo cmd/compile cmd/link: signal: segmentation fault
This is on standard 10.6.8 in VM, building for i386
.
comment:14 Changed 9 months ago by barracuda156
Replying to catap:
Quite amazing how badly written the Go source is. Every version fails, but differently.
1.14.15:
run: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/link -extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -extld=/opt/local/bin/clang-mp-11 -o /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-929200349/cmd/go/_go_.a DONE rm /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-929200349/cmd/go/_go_.a Building Go toolchain2 using go_bootstrap and Go toolchain1. run: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v -i cmd/asm cmd/cgo cmd/compile cmd/link go tool dist: FAILED: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v -i cmd/asm cmd/cgo cmd/compile cmd/link: signal: segmentation fault rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/bootstrap rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/obj/go-build rm -rf /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-929200349 rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-929200349 Command failed: cd "/opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/src" && ./make.bash -v=3 Exit code: 2
1.13.15:
Building Go toolchain2 using go_bootstrap and Go toolchain1. run: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v -i cmd/asm cmd/cgo cmd/compile cmd/link fatal error: unexpected signal during runtime execution fatal error: unexpected signal during runtime execution [signal SIGBUS: bus error code=0x2 addr=0x0 pc=0x90860a22] runtime stack: runtime: unexpected return pc for runtime.sigpanic called from 0x90860a22 stack: frame={sp:0xb030aeb8, fp:0xb030aed0} stack=[0xb028b374,0xb030af74) b030ae38: 04029f35 <runtime.dopanic_m+453> 040299b4 <runtime.throw+100> b030aea4 00000000 b030ae48: 14d02000 01000001 00000011 04029d19 <runtime.startpanic_m+297> b030ae58: 90860a22 00000000 00000002 0435ce1d b030ae68: 0404e905 <runtime.fatalthrow.func1+69> 14d02000 040299b4 <runtime.throw+100> b030aea4 b030ae78: 00000001 b030aea4 040299b4 <runtime.throw+100> 14d02000 b030ae88: 04029b54 <runtime.fatalthrow+84> b030ae90 0404e8c0 <runtime.fatalthrow.func1+0> 14d02000 b030ae98: 040299b4 <runtime.throw+100> b030aea4 040299b4 <runtime.throw+100> b030aea8 b030aea8: 0404e850 <runtime.throw.func1+0> 04369783 0000002a 0403c781 <runtime.sigpanic+913> b030aeb8: <04369783 0000002a 045d3018 00000052 b030aec8: 14d02000 !90860a22 >ff000000 ffffffff b030aed8: ffffffff 9085534e 9085534e a006950c b030aee8: b030af28 90855378 34d00080 00000000 b030aef8: 0000ff00 ff000000 672f6f67 6f772f6f b030af08: 672f6b72 72732f6f 00000008 04092ef0 <syscall.libc_closedir_trampoline+0> b030af18: 14c8f98c 14c8f98c 14d02000 0000069c b030af28: b030af48 04052532 <runtime.syscall+34> 34d00080 00000000 b030af38: 00000000 14c01dc0 14c01d01 14a30088 b030af48: 14c3a900 04050e43 <runtime.asmcgocall+83> runtime.throw(0x4369783, 0x2a) /opt/local/lib/go/src/runtime/panic.go:774 +0x64 runtime: unexpected return pc for runtime.sigpanic called from 0x90860a22 stack: frame={sp:0xb030aeb8, fp:0xb030aed0} stack=[0xb028b374,0xb030af74) b030ae38: 04029f35 <runtime.dopanic_m+453> 040299b4 <runtime.throw+100> b030aea4 00000000 b030ae48: 14d02000 01000001 00000011 04029d19 <runtime.startpanic_m+297> b030ae58: 90860a22 00000000 00000002 0435ce1d b030ae68: 0404e905 <runtime.fatalthrow.func1+69> 14d02000 040299b4 <runtime.throw+100> b030aea4 b030ae78: 00000001 b030aea4 040299b4 <runtime.throw+100> 14d02000 b030ae88: 04029b54 <runtime.fatalthrow+84> b030ae90 0404e8c0 <runtime.fatalthrow.func1+0> 14d02000 b030ae98: 040299b4 <runtime.throw+100> b030aea4 040299b4 <runtime.throw+100> b030aea8 b030aea8: 0404e850 <runtime.throw.func1+0> 04369783 0000002a 0403c781 <runtime.sigpanic+913> b030aeb8: <04369783 0000002a 045d3018 00000052 b030aec8: 14d02000 !90860a22 >ff000000 ffffffff b030aed8: ffffffff 9085534e 9085534e a006950c b030aee8: b030af28 90855378 34d00080 00000000 b030aef8: 0000ff00 ff000000 672f6f67 6f772f6f b030af08: 672f6b72 72732f6f 00000008 04092ef0 <syscall.libc_closedir_trampoline+0> b030af18: 14c8f98c 14c8f98c 14d02000 0000069c b030af28: b030af48 04052532 <runtime.syscall+34> 34d00080 00000000 b030af38: 00000000 14c01dc0 14c01d01 14a30088 b030af48: 14c3a900 04050e43 <runtime.asmcgocall+83> runtime.sigpanic() /opt/local/lib/go/src/runtime/signal_unix.go:378 +0x391 goroutine 10 [syscall]: syscall.syscall(0x4092ef0, 0x34d00080, 0x0, 0x0, 0x0, 0x0, 0x0) /opt/local/lib/go/src/runtime/sys_darwin.go:63 +0x20 fp=0x14c8f98c sp=0x14c8f97c pc=0x40437e0 syscall.closedir(0x34d00080, 0x43f8be0, 0x14cc6700) /opt/local/lib/go/src/syscall/zsyscall_darwin_386.go:534 +0x41 fp=0x14c8f9ac sp=0x14c8f98c pc=0x4090ec1 os.(*dirInfo).close(...) /opt/local/lib/go/src/os/dir_darwin.go:23 os.(*file).close(0x14c4c2c0, 0xffffffff, 0x4601a84) /opt/local/lib/go/src/os/file_unix.go:241 +0x198 fp=0x14c8f9d4 sp=0x14c8f9ac pc=0x40afa28 os.(*File).Close(...) /opt/local/lib/go/src/os/file_unix.go:233 io/ioutil.ReadDir(0x14c1e820, 0x4a, 0x14c0c520, 0x2, 0x2, 0x14c16480, 0x57) /opt/local/lib/go/src/io/ioutil/ioutil.go:102 +0x156 fp=0x14c8fa1c sp=0x14c8f9d4 pc=0x4119116 go/build.(*Context).readDir(0x45f0160, 0x14c1e820, 0x4a, 0x0, 0x14c16480, 0x57, 0xc, 0x14c0e680) /opt/local/lib/go/src/go/build/build.go:182 +0x71 fp=0x14c8fa3c sp=0x14c8fa1c pc=0x4142681 go/build.(*Context).Import(0x45f0160, 0xbfffeea0, 0x8, 0x14c14240, 0x3d, 0xc, 0xffffffff, 0x0, 0x4067f2c) /opt/local/lib/go/src/go/build/build.go:770 +0x737 fp=0x14c8fdec sp=0x14c8fa3c pc=0x4143cf7 cmd/go/internal/load.loadPackageData.func2(0x14ccaca0, 0x0) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:666 +0x449 fp=0x14c8fe5c sp=0x14c8fdec pc=0x417c6a9 cmd/go/internal/par.(*Cache).Do(0x45efd30, 0x43053a0, 0x14c0e660, 0x14c32760, 0x4325f80, 0x14ccac80) /opt/local/lib/go/src/cmd/go/internal/par/work.go:128 +0xbd fp=0x14c8fe88 sp=0x14c8fe5c pc=0x416645d cmd/go/internal/load.loadPackageData(0xbfffeea0, 0x8, 0x0, 0x0, 0x14c14240, 0x3d, 0x0, 0x0, 0x0, 0x0, ...) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:640 +0x38e fp=0x14c8ff98 sp=0x14c8fe88 pc=0x416d3ae cmd/go/internal/load.(*preload).preloadMatches.func1(0x14c0e5f0, 0xbfffeea0, 0x8) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:773 +0x68 fp=0x14c8ffe0 sp=0x14c8ff98 pc=0x417c848 runtime.goexit() /opt/local/lib/go/src/runtime/asm_386.s:1325 +0x1 fp=0x14c8ffe4 sp=0x14c8ffe0 pc=0x4051261 created by cmd/go/internal/load.(*preload).preloadMatches /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:771 +0x54 goroutine 1 [runnable]: os.(*File).readdir(0x14c0e648, 0xffffffff, 0x0, 0x0, 0x14c0e648, 0x0, 0x0) /opt/local/lib/go/src/os/file_unix.go:378 +0x83 os.(*File).Readdir(...) /opt/local/lib/go/src/os/dir.go:26 io/ioutil.ReadDir(0x14c1e5f0, 0x49, 0x14c0c4d0, 0x2, 0x2, 0x14c16420, 0x56) /opt/local/lib/go/src/io/ioutil/ioutil.go:101 +0x183 go/build.(*Context).readDir(0x45f0160, 0x14c1e5f0, 0x49, 0x0, 0x14c16420, 0x56, 0xc, 0x14c0e640) /opt/local/lib/go/src/go/build/build.go:182 +0x71 go/build.(*Context).Import(0x45f0160, 0xbfffee84, 0x7, 0x14c14240, 0x3d, 0xc, 0xffffffff, 0x0, 0x4067f2c) /opt/local/lib/go/src/go/build/build.go:770 +0x737 cmd/go/internal/load.loadPackageData.func2(0x14ccac00, 0x0) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:666 +0x449 cmd/go/internal/par.(*Cache).Do(0x45efd30, 0x43053a0, 0x14c0e618, 0x14c8eb24, 0x4325f80, 0x14ccabe0) /opt/local/lib/go/src/cmd/go/internal/par/work.go:128 +0xbd cmd/go/internal/load.loadPackageData(0xbfffee84, 0x7, 0x0, 0x0, 0x14c14240, 0x3d, 0x0, 0x0, 0x14c14400, 0x0, ...) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:640 +0x38e cmd/go/internal/load.loadImport(0x14c0e5f0, 0xbfffee84, 0x7, 0x14c14240, 0x3d, 0x0, 0x14c8ecd8, 0x0, 0x0, 0x0, ...) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:482 +0x119 cmd/go/internal/load.PackagesAndErrors(0x14c10080, 0x4, 0x4, 0x0, 0x0, 0x0) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:1982 +0x405 cmd/go/internal/load.PackagesForBuild(0x14c10080, 0x4, 0x4, 0x4311700, 0x0, 0x0) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:2028 +0x42 cmd/go/internal/work.runInstall(0x45d7ee0, 0x14c10080, 0x4, 0x4) /opt/local/lib/go/src/cmd/go/internal/work/build.go:483 +0x30 main.main() /opt/local/lib/go/src/cmd/go/main.go:189 +0x6b2 goroutine 6 [syscall]: os/signal.signal_recv(0x14c367c3) /opt/local/lib/go/src/runtime/sigqueue.go:144 +0x118 os/signal.loop() /opt/local/lib/go/src/os/signal/signal_unix.go:23 +0x14 created by os/signal.init.0 /opt/local/lib/go/src/os/signal/signal_unix.go:29 +0x31 goroutine 7 [runnable]: cmd/go/internal/load.loadPackageData(0xbfffee84, 0x7, 0x0, 0x0, 0x14c14240, 0x3d, 0x0, 0x0, 0x0, 0x0, ...) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:640 +0x2dc cmd/go/internal/load.(*preload).preloadMatches.func1(0x14c0e5f0, 0xbfffee84, 0x7) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:773 +0x68 created by cmd/go/internal/load.(*preload).preloadMatches /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:771 +0x54 goroutine 8 [syscall]: syscall.syscall(0x4092ef0, 0x34c00120, 0x0, 0x0, 0x0, 0x0, 0x0) /opt/local/lib/go/src/runtime/sys_darwin.go:63 +0x20 fp=0x14c8a98c sp=0x14c8a97c pc=0x40437e0 syscall.closedir(0x34c00120, 0x43f8be0, 0x14d3a000) /opt/local/lib/go/src/syscall/zsyscall_darwin_386.go:534 +0x41 fp=0x14c8a9ac sp=0x14c8a98c pc=0x4090ec1 os.(*dirInfo).close(...) /opt/local/lib/go/src/os/dir_darwin.go:23 os.(*file).close(0x14d20000, 0xffffffff, 0x4601a84) /opt/local/lib/go/src/os/file_unix.go:241 +0x198 fp=0x14c8a9d4 sp=0x14c8a9ac pc=0x40afa28 os.(*File).Close(...) /opt/local/lib/go/src/os/file_unix.go:233 io/ioutil.ReadDir(0x14d04000, 0x49, 0x14d14040, 0x2, 0x2, 0x14d1a000, 0x56) /opt/local/lib/go/src/io/ioutil/ioutil.go:102 +0x156 fp=0x14c8aa1c sp=0x14c8a9d4 pc=0x4119116 go/build.(*Context).readDir(0x45f0160, 0x14d04000, 0x49, 0x0, 0x14d1a000, 0x56, 0xc, 0x14cde050) /opt/local/lib/go/src/go/build/build.go:182 +0x71 fp=0x14c8aa3c sp=0x14c8aa1c pc=0x4142681 go/build.(*Context).Import(0x45f0160, 0xbfffee8c, 0x7, 0x14c14240, 0x3d, 0xc, 0xffffffff, 0x0, 0x4067f2c) /opt/local/lib/go/src/go/build/build.go:770 +0x737 fp=0x14c8adec sp=0x14c8aa3c pc=0x4143cf7 cmd/go/internal/load.loadPackageData.func2(0x14ce0060, 0x0) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:666 +0x449 fp=0x14c8ae5c sp=0x14c8adec pc=0x417c6a9 cmd/go/internal/par.(*Cache).Do(0x45efd30, 0x43053a0, 0x14cde020, 0x14c39760, 0x4325f80, 0x14ce0040) /opt/local/lib/go/src/cmd/go/internal/par/work.go:128 +0xbd fp=0x14c8ae88 sp=0x14c8ae5c pc=0x416645d cmd/go/internal/load.loadPackageData(0xbfffee8c, 0x7, 0x0, 0x0, 0x14c14240, 0x3d, 0x0, 0x0, 0x0, 0x0, ...) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:640 +0x38e fp=0x14c8af98 sp=0x14c8ae88 pc=0x416d3ae cmd/go/internal/load.(*preload).preloadMatches.func1(0x14c0e5f0, 0xbfffee8c, 0x7) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:773 +0x68 fp=0x14c8afe0 sp=0x14c8af98 pc=0x417c848 created by cmd/go/internal/load.(*preload).preloadMatches /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:771 +0x54 goroutine 9 [runnable]: os.(*File).readdirnames(0x14d00038, 0xffffffff, 0x0, 0x14d00038, 0x40af787, 0x14, 0x14d1c000) /opt/local/lib/go/src/os/dir_darwin.go:46 +0x7d os.(*File).Readdirnames(...) /opt/local/lib/go/src/os/dir.go:48 os.(*File).readdir(0x14d00038, 0xffffffff, 0x0, 0x0, 0x14d00038, 0x0, 0x0) /opt/local/lib/go/src/os/file_unix.go:377 +0x49 os.(*File).Readdir(...) /opt/local/lib/go/src/os/dir.go:26 io/ioutil.ReadDir(0x14d1c000, 0x4d, 0x14d22040, 0x2, 0x2, 0x14d2c000, 0x5a) /opt/local/lib/go/src/io/ioutil/ioutil.go:101 +0x183 go/build.(*Context).readDir(0x45f0160, 0x14d1c000, 0x4d, 0x0, 0x14d2c000, 0x5a, 0xc, 0x14d00030) /opt/local/lib/go/src/go/build/build.go:182 +0x71 go/build.(*Context).Import(0x45f0160, 0xbfffee94, 0xb, 0x14c14240, 0x3d, 0xc, 0xffffffff, 0x0, 0x4067f2c) /opt/local/lib/go/src/go/build/build.go:770 +0x737 cmd/go/internal/load.loadPackageData.func2(0x14cf6040, 0x0) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:666 +0x449 cmd/go/internal/par.(*Cache).Do(0x45efd30, 0x43053a0, 0x14d00010, 0x14c39f60, 0x4325f80, 0x14cf6020) /opt/local/lib/go/src/cmd/go/internal/par/work.go:128 +0xbd cmd/go/internal/load.loadPackageData(0xbfffee94, 0xb, 0x0, 0x0, 0x14c14240, 0x3d, 0x0, 0x0, 0x0, 0x0, ...) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:640 +0x38e cmd/go/internal/load.(*preload).preloadMatches.func1(0x14c0e5f0, 0xbfffee94, 0xb) /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:773 +0x68 created by cmd/go/internal/load.(*preload).preloadMatches /opt/local/lib/go/src/cmd/go/internal/load/pkg.go:771 +0x54 [signal SIGBUS: bus error code=0x2 addr=0x0 pc=0x90860a22] runtime stack: runtime: unexpected return pc for runtime.sigpanic called from 0x90860a22 stack: frame={sp:0xb0206eb8, fp:0xb0206ed0} stack=[0xb0187374,0xb0206f74) b0206e38: 04029f35 <runtime.dopanic_m+453> 040299b4 <runtime.throw+100> b0206ea4 00000000 b0206e48: 14c580e0 01000001 00000011 04029d19 <runtime.startpanic_m+297> b0206e58: 90860a22 00000000 00000002 0435ce1d b0206e68: 0404e905 <runtime.fatalthrow.func1+69> 14c580e0 040299b4 <runtime.throw+100> b0206ea4 b0206e78: 00000001 b0206ea4 040299b4 <runtime.throw+100> 14c580e0 b0206e88: 04029b54 <runtime.fatalthrow+84> b0206e90 0404e8c0 <runtime.fatalthrow.func1+0> 14c580e0 b0206e98: 040299b4 <runtime.throw+100> b0206ea4 040299b4 <runtime.throw+100> b0206ea8 b0206ea8: 0404e850 <runtime.throw.func1+0> 04369783 0000002a 0403c781 <runtime.sigpanic+913> b0206eb8: <04369783 0000002a 34c00140 00000016 b0206ec8: 14c580e0 !90860a22 >34c000a0 00000000 b0206ed8: 00000000 9085534e 9085534e a006950c b0206ee8: b0206f28 90855378 34c00120 00000000 b0206ef8: 04020795 <runtime.(*gcSweepBuf).push+469> 046bc040 046bc440 0000005f b0206f08: 00000000 00000009 045f3460 00000001 b0206f18: 00000000 14c8a98c 14c580e0 0000069c b0206f28: b0206f48 04052532 <runtime.syscall+34> 34c00120 00000000 b0206f38: 00000000 00000000 00000001 14a30070 b0206f48: 14c56000 04050e43 <runtime.asmcgocall+83> runtime.throw(0x4369783, 0x2a) /opt/local/lib/go/src/runtime/panic.go:774 +0x64 runtime: unexpected return pc for runtime.sigpanic called from 0x90860a22 stack: frame={sp:0xb0206eb8, fp:0xb0206ed0} stack=[0xb0187374,0xb0206f74) b0206e38: 04029f35 <runtime.dopanic_m+453> 040299b4 <runtime.throw+100> b0206ea4 00000000 b0206e48: 14c580e0 01000001 00000011 04029d19 <runtime.startpanic_m+297> b0206e58: 90860a22 00000000 00000002 0435ce1d b0206e68: 0404e905 <runtime.fatalthrow.func1+69> 14c580e0 040299b4 <runtime.throw+100> b0206ea4 b0206e78: 00000001 b0206ea4 040299b4 <runtime.throw+100> 14c580e0 b0206e88: 04029b54 <runtime.fatalthrow+84> b0206e90 0404e8c0 <runtime.fatalthrow.func1+0> 14c580e0 b0206e98: 040299b4 <runtime.throw+100> b0206ea4 040299b4 <runtime.throw+100> b0206ea8 b0206ea8: 0404e850 <runtime.throw.func1+0> 04369783 0000002a 0403c781 <runtime.sigpanic+913> b0206eb8: <04369783 0000002a 34c00140 00000016 b0206ec8: 14c580e0 !90860a22 >34c000a0 00000000 b0206ed8: 00000000 9085534e 9085534e a006950c b0206ee8: b0206f28 90855378 34c00120 00000000 b0206ef8: 04020795 <runtime.(*gcSweepBuf).push+469> 046bc040 046bc440 0000005f b0206f08: 00000000 00000009 045f3460 00000001 b0206f18: 00000000 14c8a98c 14c580e0 0000069c b0206f28: b0206f48 04052532 <runtime.syscall+34> 34c00120 00000000 b0206f38: 00000000 00000000 00000001 14a30070 b0206f48: 14c56000 04050e43 <runtime.asmcgocall+83> runtime.sigpanic() /opt/local/lib/go/src/runtime/signal_unix.go:378 +0x391 go tool dist: FAILED: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 2 rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/bootstrap rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/obj/go-build rm -rf /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-241371318 rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-241371318 Command failed: cd "/opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/src" && ./make.bash -v=3 Exit code: 2
1.12.16:
run: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/link -o /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-025297113/cmd/go/_go_.a /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/link: running gcc failed: exit status 1 ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-425847376/go.o Undefined symbols for architecture i386: "___getdirentries64", referenced from: syscall.libc___getdirentries64_trampoline in go.o "_fstatat64", referenced from: syscall.libc_fstatat64_trampoline in go.o "_openat", referenced from: syscall.libc_openat_trampoline in go.o "_unlinkat", referenced from: syscall.libc_unlinkat_trampoline in go.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status go tool dist: FAILED: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/link -o /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-025297113/cmd/go/_go_.a: exit status 2 rm /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-025297113/cmd/go/_go_.a rm -rf /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-025297113 rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-025297113 Building Go toolchain2 using go_bootstrap and Go toolchain1. run: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v -i cmd/asm cmd/cgo cmd/compile cmd/link go tool dist: FAILED: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v -i cmd/asm cmd/cgo cmd/compile cmd/link: fork/exec /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap: no such file or directory rm -rf /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-025297113 rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-025297113 Command failed: cd "/opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/src" && ./make.bash -v=3 Exit code: 2
1.11.13:
cmd/go/internal/cfg cmd/go/internal/str cmd/go/internal/base cmd/go/internal/cache # crypto/x509 src/crypto/x509/root_cgo_darwin.go:29:48: error: use of undeclared identifier 'kSecPolicyOid' if (CFDictionaryGetValueIfPresent(properties, kSecPolicyOid, (const void **)&value)) { ^ src/crypto/x509/root_cgo_darwin.go:30:26: error: use of undeclared identifier 'kSecPolicyAppleSSL'; did you mean 'SecPolicyCreateSSL'? isSSL = CFEqual(value, kSecPolicyAppleSSL); ^~~~~~~~~~~~~~~~~~ SecPolicyCreateSSL /System/Library/Frameworks/Security.framework/Headers/SecPolicy.h:103:14: note: 'SecPolicyCreateSSL' declared here SecPolicyRef SecPolicyCreateSSL(Boolean server, CFStringRef hostname); ^ 2 errors generated. cmd/go/internal/modinfo cmd/go/internal/search cmd/go/internal/imports cmd/go/internal/load cmd/go/internal/dirhash cmd/go/internal/par cmd/go/internal/modfetch/codehost # cmd/doc ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-146115678/go.o cmd/go/internal/semver cmd/go/internal/work cmd/go/internal/doc cmd/go/internal/module cmd/go/internal/help # cmd/cover ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-764240058/go.o cmd/go/internal/cmdflag cmd/go/internal/modfile # cmd/dist ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-381178976/go.o cmd/go/internal/mvs cmd/internal/test2json cmd/go/internal/tool cmd/go/internal/version cmd/go/internal/txtar cmd/gofmt cmd/nm # cmd/link ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-131392393/go.o cmd/objdump # cmd/fix ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-575936140/go.o cmd/pack cmd/vendor/github.com/google/pprof/internal/elfexec cmd/vendor/github.com/google/pprof/profile cmd/go/internal/run cmd/vendor/github.com/ianlancetaylor/demangle cmd/vendor/github.com/google/pprof/internal/measurement cmd/vendor/github.com/google/pprof/internal/graph # cmd/pack ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-786448233/go.o cmd/vendor/github.com/google/pprof/third_party/d3 cmd/vendor/github.com/google/pprof/third_party/d3flamegraph cmd/vendor/github.com/google/pprof/third_party/svgpan cmd/vendor/golang.org/x/sys/unix cmd/test2json # cmd/nm ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-677127706/go.o cmd/vendor/github.com/google/pprof/internal/proftest # cmd/gofmt ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-009452998/go.o cmd/vendor/golang.org/x/sys/windows cmd/vendor/golang.org/x/sys/windows/registry cmd/vet/internal/cfg cmd/vet/internal/whitelist cmd/vet # cmd/objdump ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-153931868/go.o cmd/vendor/golang.org/x/crypto/ssh/terminal # cmd/test2json ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-331898867/go.o # cmd/vet ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-075454208/go.o go tool dist: FAILED: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v std cmd: exit status 2 rm -rf /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-030719066 rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-030719066 Command failed: cd "/opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/src" && ./make.bash -v=3 Exit code: 2
1.11.5:
cmd/pack cmd/go/internal/run # crypto/x509 Undefined symbols for architecture i386: "_SecItemExport", referenced from: _FetchPEMRoots in _x002.o "_SecCertificateCopyNormalizedSubjectContent", referenced from: _FetchPEMRoots in _x002.o "_SecCertificateCopyNormalizedIssuerContent", referenced from: _FetchPEMRoots in _x002.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) # crypto/x509 src/crypto/x509/root_cgo_darwin.go:120:29: warning: implicit declaration of function 'SecCertificateCopyNormalizedSubjectContent' is invalid in C99 [-Wimplicit-function-declaration] src/crypto/x509/root_cgo_darwin.go:120:15: warning: incompatible integer to pointer conversion initializing 'CFDataRef' (aka 'const struct __CFData *') with an expression of type 'int' [-Wint-conversion] src/crypto/x509/root_cgo_darwin.go:125:28: warning: implicit declaration of function 'SecCertificateCopyNormalizedIssuerContent' is invalid in C99 [-Wimplicit-function-declaration] src/crypto/x509/root_cgo_darwin.go:125:15: warning: incompatible integer to pointer conversion initializing 'CFDataRef' (aka 'const struct __CFData *') with an expression of type 'int' [-Wint-conversion] src/crypto/x509/root_cgo_darwin.go:139:10: warning: implicit declaration of function 'SecItemExport' is invalid in C99 [-Wimplicit-function-declaration] cmd/vendor/github.com/google/pprof/internal/elfexec cmd/vendor/github.com/google/pprof/profile # cmd/pack ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-893014936/go.o cmd/vendor/github.com/ianlancetaylor/demangle cmd/vendor/github.com/google/pprof/third_party/d3 cmd/vendor/github.com/google/pprof/third_party/d3flamegraph cmd/vendor/github.com/google/pprof/third_party/svgpan cmd/vendor/golang.org/x/sys/unix # cmd/gofmt ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-741640627/go.o cmd/test2json # cmd/objdump ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-169981049/go.o cmd/vendor/github.com/google/pprof/internal/proftest cmd/vendor/golang.org/x/sys/windows cmd/vendor/golang.org/x/sys/windows/registry cmd/vet/internal/cfg # cmd/nm ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-273886396/go.o cmd/vet/internal/whitelist cmd/vendor/golang.org/x/crypto/ssh/terminal cmd/vet cmd/vendor/github.com/google/pprof/internal/measurement cmd/vendor/github.com/google/pprof/internal/graph # cmd/test2json ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-774408184/go.o # cmd/vet ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-392591662/go.o go tool dist: FAILED: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v std cmd: exit status 2 rm -rf /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-140863265 rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-140863265 Command failed: cd "/opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/src" && ./make.bash -v=3 Exit code: 2
1.10.7:
run: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/link -o /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-078710914/cmd/go/_go_.a warning: unable to find runtime/cgo.a ld: warning: can't parse dwarf compilation unit info in /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-link-085913922/go.o run: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/link -o /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-078710914/cmd/go/_go_.a DONE rm /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-078710914/cmd/go/_go_.a Building Go toolchain2 using go_bootstrap and Go toolchain1. run: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v -i cmd/asm cmd/cgo cmd/compile cmd/link fatal error: runtime: bsdthread_register error runtime stack: runtime.throw(0x428d06f, 0x21) /opt/local/lib/go/src/runtime/panic.go:616 +0x6b fp=0xbfffec5c sp=0xbfffec50 pc=0x402768b runtime.goenvs() /opt/local/lib/go/src/runtime/os_darwin.go:129 +0x63 fp=0xbfffec70 sp=0xbfffec5c pc=0x40256f3 runtime.schedinit() /opt/local/lib/go/src/runtime/proc.go:501 +0xaa fp=0xbfffeca0 sp=0xbfffec70 pc=0x4029b4a runtime.rt0_go(0xbfffed40, 0x0, 0x8fe0001c, 0x0, 0x8fe00000, 0xbfffed6c, 0x0, 0x0, 0x0, 0x0, ...) /opt/local/lib/go/src/runtime/asm_386.s:297 +0x224 fp=0xbfffeca4 sp=0xbfffeca0 pc=0x404ba54 go tool dist: FAILED: /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/pkg/tool/darwin_386/go_bootstrap install -gcflags=all= -ldflags=all="-extldflags=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport" -v -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 2 rm -rf /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-078710914 rm -r /opt/local/var/macports/build/_opt_SLports_lang_go/go/work/.tmp/go-tool-dist-078710914 Command failed: cd "/opt/local/var/macports/build/_opt_SLports_lang_go/go/work/go/src" && ./make.bash -v=3 Exit code: 2
comment:15 Changed 9 months ago by barracuda156
However, it may be that 1.11.x will build, just the security patch has to be backported. Since it failed to apply, I just dropped it for the time-being. 1.10.7 fails earlier than 1.11.x.
comment:16 Changed 9 months ago by barracuda156
comment:17 Changed 9 months ago by barracuda156
FWIW,
10:~ svacchanda$ port -v installed go The following ports are currently installed: go @1.11.13_0 (active) requested_variants='' platform='darwin 10' archs='i386' date='2024-02-09T20:24:40+0800'
comment:18 Changed 9 months ago by barracuda156
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
it's trying to build go 64bit but legacysupport is installed as 32bit.
So something has to be tweaked -- I guess go should not be trying to build 64bit on 32bit 10.6.8, so that is what needs tweaking (or excluding, as not many people care about 32bit 10.6.8 any more, I sure don't).