Closed egandro closed 7 months ago
Willing to provide a Repo/Dockerfile for testing.
This repo shows the issue.
The .a file contains the wrong CPU / data
cd deps/linux_amd64
/usr/bin/ar x *.a
file *.o | head -10
abort_message.o: Mach-O 64-bit arm64 object, flags:<|SUBSECTIONS_VIA_SYMBOLS>
abstract-code.o: Mach-O 64-bit arm64 object, flags:<|SUBSECTIONS_VIA_SYMBOLS>
absvdi2.o: Mach-O 64-bit arm64 object, flags:<|SUBSECTIONS_VIA_SYMBOLS>
absvsi2.o: Mach-O 64-bit arm64 object, flags:<|SUBSECTIONS_VIA_SYMBOLS>
absvti2.o: Mach-O 64-bit arm64 object, flags:<|SUBSECTIONS_VIA_SYMBOLS>
access-builder.o: Mach-O 64-bit arm64 object, flags:<|SUBSECTIONS_VIA_SYMBOLS>
access-info.o: Mach-O 64-bit arm64 object, flags:<|SUBSECTIONS_VIA_SYMBOLS>
accessors.o: Mach-O 64-bit arm64 object, flags:<|SUBSECTIONS_VIA_SYMBOLS>
accounting-allocator.o: Mach-O 64-bit arm64 object, flags:<|SUBSECTIONS_VIA_SYMBOLS>
active-system-pages.o: Mach-O 64-bit arm64 object, flags:<|SUBSECTIONS_VIA_SYMBOLS>
That is what I get from my own builds.
➜ release git:(experiments/ffi) /usr/bin/ar x *.a
➜ release git:(experiments/ffi) file *.o | head -10
abort_message.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
abstract-code.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
absvdi2.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
absvsi2.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
absvti2.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
access-builder.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
access-info.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
accessors.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
accounting-allocator.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
active-system-pages.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped
I also need "-lm" on Debian.
I fixed the issue.
https://github.com/gorules/zen-go/compare/master...egandro:zen-go:master
it doesn't work :/ we have to go with either a dynamic library or a deb/rpm installer
Closing, we will be releasing GoLang support in upcoming weeks
I created a simple go/no-go test in my framework.
go get github.com/gorules/zen-go
go version go1.20.5 linux/amd64
I am getting this results:
The file is in
$HOME/go/pkg/mod/github.com/gorules/zen-go@v0.0.2/deps/linux_amd64
(edit fixed error)