pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: golang "Cannot write-enable text segment" issue (net/syncthing)





On Mon, 2 Mar 2026, David Brownlee wrote:

Would anyone have any thoughts on how to debug this?

Have pushed a package which easily demonstrates this to
pkgsrc/wip/syncthing - you don't even need to try to do anything
useful to trigger the issue - just "syncthing" after build is enough

I have not looked, but two things you could try are:

- set GOFLAGS=-buildmode=pie

- make sure all the C code is compiled with -fPIC, maybe via wrappers?

--
Benny


Home | Main Index | Thread Index | Old Index