Mikel,

I am still experimenting with building a Hugo package using
go-vendor-tools. I have had some success, but the
github.com/tetratelabs/wazero dependency is causing problems.
Looking at the wazero .spec, the build has some special requirements,
but I do not know how to apply these to wazero as a dependency in my
go-vendor-tools Hugo package.

Do you have any time to help me work through this? It seems that
go-vendor-tools is all-or-nothing. Can I use the existing wazero package
as an exception while using go-vendor-tools for everything else?

I have a draft at:

https://www.flyn.org/SRPMS/hugo-0.147.6-1.fc42.src.rpm

Here is how the Hugo build fails:

[...]
/usr/lib64/ccache/gcc -m64 -Wl,-z,relro -pie 
-Wl,--build-id=0xc31f2c3561f12a296e2f8544916af2188f89df1e -o 
$WORK/b001/exe/a.out -Wl,--export-dynamic-symbol=_cgo_panic 
-Wl,--export-dynamic-symbol=_cgo_topofstack 
-Wl,--export-dynamic-symbol=crosscall2 /tmp/go-link-2490298379/go.o 
/tmp/go-link-2490298379/000000.o /tmp/go-link-2490298379/000001.o 
/tmp/go-link-2490298379/000002.o /tmp/go-link-2490298379/000003.o 
/tmp/go-link-2490298379/000004.o /tmp/go-link-2490298379/000005.o 
/tmp/go-link-2490298379/000006.o /tmp/go-link-2490298379/000007.o 
/tmp/go-link-2490298379/000008.o /tmp/go-link-2490298379/000009.o 
/tmp/go-link-2490298379/000010.o /tmp/go-link-2490298379/000011.o 
/tmp/go-link-2490298379/000012.o /tmp/go-link-2490298379/000013.o 
/tmp/go-link-2490298379/000014.o /tmp/go-link-2490298379/000015.o 
/tmp/go-link-2490298379/000016.o /tmp/go-link-2490298379/000017.o 
/tmp/go-link-2490298379/000018.o /tmp/go-link-2490298379/000019.o 
/tmp/go-link-2490298379/000020.o /tmp/go-link-2490298379/000021.o 
/tmp/go-link-2490298379/000022.o -O2 -g -lresolv -O2 -g -lpthread -O2 -g 
-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now 
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 
-specs=/usr/lib/rpm/redhat/redhat-package-notes
/usr/bin/ld: /tmp/go-link-2490298379/go.o: warning: relocation against 
`github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.entrypoint'
 in read-only section `.text'
/usr/bin/ld: /tmp/go-link-2490298379/go.o: in function 
`github.com/gohugoio/hugo/vendor/github.com/tetratelabs/wazero/internal/engine/wazevo.(*callEngine).callWithStack':
go.go:(.text+0xefe983): undefined reference to 
`github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.entrypoint'
/usr/bin/ld: /tmp/go-link-2490298379/go.o: in function 
`github.com/gohugoio/hugo/vendor/github.com/tetratelabs/wazero/internal/engine/wazevo.(*callEngine).callWithStack':
/home/mike/Source/rpms/BUILD/hugo-0.147.6-build/hugo-0.147.6/_build/src/github.com/gohugoio/hugo/vendor/github.com/tetratelabs/wazero/internal/engine/wazevo/call_engine.go:302:(.text+0xefeb0a):
 undefined reference to 
`github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.afterGoFunctionCallEntrypoint'
/usr/bin/ld: 
/home/mike/Source/rpms/BUILD/hugo-0.147.6-build/hugo-0.147.6/_build/src/github.com/gohugoio/hugo/vendor/github.com/tetratelabs/wazero/internal/engine/wazevo/call_engine.go:314:(.text+0xefebc8):
 undefined reference to 
`github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.afterGoFunctionCallEntrypoint'
/usr/bin/ld: 
/home/mike/Source/rpms/BUILD/hugo-0.147.6-build/hugo-0.147.6/_build/src/github.com/gohugoio/hugo/vendor/github.com/tetratelabs/wazero/internal/engine/wazevo/call_engine.go:373:(.text+0xefecc1):
 undefined reference to 
`github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.afterGoFunctionCallEntrypoint'
/usr/bin/ld: 
/home/mike/Source/rpms/BUILD/hugo-0.147.6-build/hugo-0.147.6/_build/src/github.com/gohugoio/hugo/vendor/github.com/tetratelabs/wazero/internal/engine/wazevo/call_engine.go:335:(.text+0xefeda9):
 undefined reference to 
`github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.afterGoFunctionCallEntrypoint'
/usr/bin/ld: 
/home/mike/Source/rpms/BUILD/hugo-0.147.6-build/hugo-0.147.6/_build/src/github.com/gohugoio/hugo/vendor/github.com/tetratelabs/wazero/internal/engine/wazevo/call_engine.go:427:(.text+0xefee01):
 undefined reference to 
`github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.afterGoFunctionCallEntrypoint'
/usr/bin/ld: 
/tmp/go-link-2490298379/go.o:/home/mike/Source/rpms/BUILD/hugo-0.147.6-build/hugo-0.147.6/_build/src/github.com/gohugoio/hugo/vendor/github.com/tetratelabs/wazero/internal/engine/wazevo/call_engine.go:407:
 more undefined references to 
`github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64.afterGoFunctionCallEntrypoint'
 follow
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE

-- 
Mike

:wq
-- 
_______________________________________________
golang mailing list -- golang@lists.fedoraproject.org
To unsubscribe send an email to golang-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to