ProcursusTeam / Procursus

Modern *OS Bootstrap
https://apt.procurs.us
BSD Zero Clause License
896 stars 126 forks source link

(propably) Incorrect paths while using go install #1133

Open magmaus3 opened 2 years ago

magmaus3 commented 2 years ago

Log:

go install git.sr.ht/~ghost08/photon@latest
go: downloading git.sr.ht/~ghost08/photon v0.0.0-20220103201530-57687766a71a
go: downloading github.com/alecthomas/kong v0.2.22
go: downloading github.com/gdamore/tcell/v2 v2.4.0
go: downloading github.com/mattn/go-runewidth v0.0.13
go: downloading github.com/sbani/go-humanizer v0.3.2
go: downloading github.com/soniakeys/quant v1.0.0
go: downloading golang.design/x/clipboard v0.5.3
go: downloading golang.org/x/image v0.0.0-20211028202545-6944b10bf410
go: downloading golang.org/x/net v0.0.0-20211216030914-fe4d6282115f
go: downloading github.com/cixtor/readability v1.0.0
go: downloading github.com/gabriel-vasile/mimetype v1.4.0
go: downloading github.com/kennygrant/sanitize v1.2.4
go: downloading github.com/mmcdole/gofeed v1.1.3
go: downloading github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
go: downloading github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9
go: downloading github.com/gdamore/encoding v1.0.0
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e
go: downloading golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading github.com/json-iterator/go v1.1.12
go: downloading github.com/mmcdole/goxpp v0.0.0-20200921145534-2f3784f67354
go: downloading github.com/PuerkitoBio/goquery v1.8.0
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/andybalholm/cascadia v1.3.1
# git.sr.ht/~ghost08/photon
/home/sunchipnacho/Source/Procursus/Repo/build_work/iphoneos-arm64/1700/ldid/ldid.cpp(1309): _assert(): errno=2
libc++abi: terminating with uncaught exception of type char const*
Torrekie commented 2 years ago

ldid seems problematic with Golang generated executables

ldid.cpp(1300): _assert(): errno=2
libc++abi.dylib: terminating with uncaught exception of type char const*
Abort trap: 6

Use absolute path to entitlements works for me, or you can do a strip before calling ldid

CRKatri commented 2 years ago

Please try updating to golang 1.17, the patch to sign binaries with ldid has been removed so it will be adhoc signed by the go linker.

CRKatri commented 2 years ago

@vXtreniusX any update on this?