You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run pkg on Alpine Linux to build FreeBSD packages containing cross-compiled binaires (meaning that I do not have to run a full FreeBSD VM just for builds, and can use a simple Linux container).
On Alpine 3.16, pkg 1.18.4 compiles just fine, but fails at runtime, e.g. when running pkg help:
pkg: failed to get the note section
pkg: failed to get the note section
pkg: Unable to determine ABI
pkg: Cannot parse configuration file!
A quick look at the code shows that pkg tries to read information from ELF binaries, but error messages do not indicate precisely what went wrong. Same thing with the message about a configuration file, I have not provided any so I do not see how it could not be parsed.
If someone has an idea, I would be more than happy to test a solution, and I could even try to provide a patch.
The text was updated successfully, but these errors were encountered:
Ok, got it. Apparently explicitely setting ABI = "freebsd:13:x86:64" in /usr/local/etc/pkg.conf also does the trick. Hopefully it will not cause other problems later.
I am trying to run pkg on Alpine Linux to build FreeBSD packages containing cross-compiled binaires (meaning that I do not have to run a full FreeBSD VM just for builds, and can use a simple Linux container).
On Alpine 3.16, pkg 1.18.4 compiles just fine, but fails at runtime, e.g. when running
pkg help
:A quick look at the code shows that pkg tries to read information from ELF binaries, but error messages do not indicate precisely what went wrong. Same thing with the message about a configuration file, I have not provided any so I do not see how it could not be parsed.
If someone has an idea, I would be more than happy to test a solution, and I could even try to provide a patch.
The text was updated successfully, but these errors were encountered: