Created attachment 219899 [details]
Update to 4.1.2
Build and package info is available at https://gitlab.com/swills/freebsd-ports/pipelines/219785090
It builds fine in 11.4 and 12.1 but it does not in -current:
panic: sym already present in installSym
goroutine 1 [running]:
cmd/link/internal/loader.(*Loader).addNewSym(0xc00058a000, 0xb4f4, 0x8290152df, 0x16, 0x1, 0xc000177560, 0xffffffffffffff01, 0x8290152df)
cmd/link/internal/loader.loadObjSyms(0xc00058a000, 0xc00000c140, 0xc000594f60, 0xc000080000, 0x0)
cmd/link/internal/loader.(*Loader).LoadFull(0xc00058a000, 0x86c760, 0xc00000c140, 0x0)
cmd/link/internal/ld.(*Link).loadlibfull(0xc00006f880, 0xc006bf4000, 0x97a72, 0x97a72, 0x26c0000)
cmd/link/internal/ld.Main(0x86c760, 0x20, 0x20, 0x1, 0x7, 0x10, 0x0, 0x0, 0x6d87b2, 0x1b, ...)
*** Error code 2
make: stopped in /usr/ports/security/lego
build of security/lego | lego-4.1.2 ended at Tue Nov 24 10:34:18 CET 2020
build time: 00:02:19
!!! build failure encountered !!!
[00:09:32] Error: Build failed in phase: build
Would you have a look at it?
(In reply to Fernando Apesteguía from comment #2)
It looks like this might be a system issue or something else in your environment. See https://github.com/golang/go/issues/42772.
I don't have a -current system but I can try to bring one up. However, this is an issue in the linker which I don't know much about so we'd need some Go experts to take a look.
It does look like the automated build passed on -current, so I do suspect there's something else going on here.
(In reply to Matthew Horan from comment #3)
I built it two more times successfully. This -current is running in VBox so maybe it is related to that. I will build a couple of times more and commit if nothing shows up.
A commit references this bug:
Date: Tue Nov 24 14:24:55 UTC 2020
New revision: 556159
security/lego: Update to 4.1.2
Submitted by: email@example.com (maintainer)
I assume something went bad on my side.