I am having trouble fixing Hugo's FTBFS [1] on Fedora 44. The problem seems
related to the linker changes and Hugo's use of the odd wazero package.
Here is the error message, which comes from g++:
/usr/bin/ld.bfd: /tmp/go-link-1634777508/go.o: warning: relocation against `github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.afterGoFunctionCallEntrypoint' in read-only section `.text'
/usr/bin/ld.bfd: error: read-only segment has dynamic relocations
collect2: error: ld returned 1 exit status
Is anyone else maintaining a package that uses
github.com/tetratelabs/wazero? Did you run into something like this?
Strangely the golang-github-tetratelabs-wazero package builds just fine
on Fedora 44, and it does not seem to use g++ when it does so. However,
Hugo use vendored dependencies.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=2434652
--
Mike
:wq