Opened 14 months ago

Last modified 6 months ago

#66736 new defect

go-1.4 @1.4.3_1 fails to build on Mtn Lion

Reported by: RobK88 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: mountainlion Cc: ci42, breiter (Brian Reiter), RobK88
Port: go-1.4

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I am unable to build and install go-1.4 on my old Mac running Mountain Lion. I need this port installed to build go which is needed to build totp-cli

This bug is likely related to #63673

:error:build Failed to build go-1.4: command execution failed
:debug:build Error code: CHILDSTATUS 48861 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_go-1.4/go-1.4/main.log for details.

Attachments (1)

main.log (29.8 KB) - added by RobK88 14 months ago.
main.log

Download all attachments as: .zip

Change History (10)

comment:1 Changed 14 months ago by RobK88

Description: modified (diff)

comment:2 Changed 14 months ago by RobK88

Description: modified (diff)

comment:3 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: mountainlion added; mountain_lion removed

Please attach the main.log file. The portion that you posted does not tell us what error occurred, only that an error occurred.

comment:4 Changed 14 months ago by RobK88

No problem Ryan. I will attach it now.

Changed 14 months ago by RobK88

Attachment: main.log added

main.log

comment:5 Changed 14 months ago by RobK88

Great news! After I upgraded MacPorts from version 2.8.0 to 2.8.1 this morning, the go-1.4 port now builds from source just fine on Mountain Lion.

It looks like the upgrade of the MacPorts build system fixed the problem!

You can now close this ticket!

comment:6 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

The log shows you were using trace mode and the error was:

:info:build fatal error: runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)
:info:build runtime stack:
:info:build runtime.throw(0x3e9855)
:info:build     /opt/local/lib/go-1.4/src/runtime/panic.go:491 +0xad fp=0x7fff5fbff580 sp=0x7fff5fbff550
:info:build runtime.goenvs()
:info:build     /opt/local/lib/go-1.4/src/runtime/os_darwin.c:103 +0x60 fp=0x7fff5fbff598 sp=0x7fff5fbff580
:info:build runtime.schedinit()
:info:build     /opt/local/lib/go-1.4/src/runtime/proc.c:141 +0x5f fp=0x7fff5fbff5c0 sp=0x7fff5fbff598
:info:build runtime.rt0_go(0x7fff5fbff5f8, 0x4, 0x7fff5fbff5f8, 0x0, 0x0, 0x4, 0x7fff5fbff7e8, 0x7fff5fbff897, 0x7fff5fbff89d, 0x7fff5fbff8a0, ...)
:info:build     /opt/local/lib/go-1.4/src/runtime/asm_amd64.s:95 +0x116 fp=0x7fff5fbff5c8 sp=0x7fff5fbff5c0

That does indeed look very similar to #63673 as you indicated, though I'm not sure why you're seeing that problem on Mountain Lion; that ticket was thought to be specific to Monterey. We have binaries of this port that were built successfully for Mountain Lion in 2017. I'm also not sure why you're having to build this from source rather than just receive that binary.

I'm not sure why updating to MacPorts 2.8.1 would've fixed this for you. None of the changes in 2.8.1 seem related.

Are you sure that you didn't just try to build the port without trace mode, and that was why it succeeded? Or did you perhaps receive our prebuilt binary this time?

comment:7 Changed 14 months ago by RobK88

I initially tried to install totp-cli from source using trace mode on Mtn Lion. Since I did not have Go or Go-1.4 installed, it looks like Macports tried to install these dependencies from source as well using trace mode.

The Macports installation on this old Mac running Mt Lion is a new installation. It uses the default settings in macports.config. So it normally would download pre-built binaries when available.

I will uninstall go-1.4 and build it again making sure I use trace mode and I will post the results.

Last edited 14 months ago by RobK88 (previous) (diff)

comment:8 Changed 14 months ago by RobK88

Yes, you were right. The last time I successfully built go-1.4 from source I forgot to add the t flag to use trace mode.

Today, when I tried to build go-1.4 from source using trace mode on Mtn Lion, the port fails to build as I previously reported.

It looks like the bug still exists after all. Sorry for the red herring.

P.S. I am also able to successfully install go-1.4 on Mtn Lion using the prebuilt binaries.

comment:9 Changed 6 months ago by RobK88

Cc: RobK88 added
Note: See TracTickets for help on using tickets.