Closed VisualEhrmanntraut closed 3 years ago
are they marked as executable? Not quite sure how this could happen as we only recently switched to github actions and upgraded dependencies to fix issues like this.
That would give a different error. The error would be permission denied: <executable>
, exec format error means the executable format is not recognised by the operating system. You can obviously tell this is correct due to the fact that the "file" command output says the file is data, not an executable. E.g.
❯ file `where zsh`
/bin/zsh: Mach-O 64-bit executable x86_64
Also, the only contents the binaries have is just symbol names. The rest are just 0
is it really all just 0? I could imagine there being padding, but don't think it would be that much.
Is this possibly some issue with tar? The CI tests the executables before upload and they worked fine.
Can you share more system & processor information?
Could be an issue with your tar. OS: macOS Catalina 10.15.7 19H1323 x86_64 Host: Hackintosh (SMBIOS: MacPro7,1) Kernel: 19.6.0 CPU: AMD Ryzen 5 2600 (There's no reason using a hackintosh would cause this issue) EDIT: When I extract the tar.gz manually, it gives me a weird GNUSparse.0 folder with those files being in there Also, building the binaries manually works fine on my machine as well, the tar is probably the problem
Also, about the padding, no, executables do not have padding in their headers, neither does anything. And yes, it's all 0s.
found some discussion about an issue like this: https://github.com/actions/virtual-environments/issues/2619
Running sudo /usr/sbin/purge
before archiving or using gtar
instead of tar
seems to fix it for those people.
the actions environment should have it preinstalled according to the comments over there and other PRs in other projects
oh I just noticed that's in the workflow, alright
new tar working?
Yes, though, your VSCode extension didn't automatically update to it. Downloading and extracting the tar manually works though, so yeah, issue resolved.
Also tried downloading binaries manually. Log from code-d:
When running command manually:
Extra information: