Created attachment 896328 [details] buld.log Hello, I have problems installing zig 0.12.0, because of: [19/19] cd /var/tmp/portage/dev-lang/zig-0.12.0/work/zig-0.12.0 && /var/tmp/portage/dev-lang/zig-0.12.0/work/zig-0.12.0/build/zig2 build --prefix /var/tmp/portage/dev-lang/zig-0.12.0/work/zig-0.12.0/build/stage3 --zig-lib-dir /var/tmp/portage/dev-lang/zig-0.12.0/work/zig-0.12.0/lib -Dconfig_h=/var/tmp/portage/dev-lang/zig-0.12.0/work/zig-0.12.0/build/config.h -Denable-llvm -Doptimize=ReleaseFast -Dno-langref -Dtarget=native -Dcpu=native -Dversion-string=0.12.0 warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. warning: Encountered error: UnexpectedEndOfFile, falling back to default ABI and dynamic linker. /var/tmp/portage/dev-lang/zig-0.12.0/temp/environment: line 2665: /var/tmp/portage/dev-lang/zig-0.12.0/work/zig-0.12.0/build/stage3/bin/zig: cannot execute: required file not found
Created attachment 896329 [details] emerge --info '=dev-lang/zig-0.12.0::gentoo'
Created attachment 896330 [details] environment
Created attachment 896331 [details] emerge -pqv '=dev-lang/zig-0.12.0::gentoo'
Strange thing is, that when I enter the corresponding directory: % pwd /var/tmp/portage/dev-lang/zig-0.12.0/work/zig-0.12.0/build/stage3/bin % ls -al total 88700 drwxr-xr-x 1 portage portage 6 24. čen 12.44 . drwxr-xr-x 1 portage portage 12 24. čen 12.27 .. -rwxr-xr-x 1 portage portage 90828776 24. čen 12.44 zig File is present and is executable. But when I try to execute it manually: % ./zig zsh: no such file or directory: ./zig In bash: RinceWind /var/tmp/portage/dev-lang/zig-0.12.0/work/zig-0.12.0/build/stage3/bin # ./zig bash: ./zig: cannot execute: required file not found
Can you try this patch please? It's included in 0.13.0 but version was not bumped yet, I'd like to see if it woks for you in isolation.
Created attachment 896368 [details, diff] patch-backport-0.12.1
(In reply to Petr Šourek from comment #4) > Strange thing is, that when I enter the corresponding directory: > % pwd > /var/tmp/portage/dev-lang/zig-0.12.0/work/zig-0.12.0/build/stage3/bin > > % ls -al > total 88700 > drwxr-xr-x 1 portage portage 6 24. čen 12.44 . > drwxr-xr-x 1 portage portage 12 24. čen 12.27 .. > -rwxr-xr-x 1 portage portage 90828776 24. čen 12.44 zig > > File is present and is executable. But when I try to execute it manually: > > % ./zig > zsh: no such file or directory: ./zig > > In bash: > RinceWind > /var/tmp/portage/dev-lang/zig-0.12.0/work/zig-0.12.0/build/stage3/bin # ./zig > bash: ./zig: cannot execute: required file not found It complains not about existing of zig binary itself, it actually complains about dynamic linker not existing. Most likely Zid detect your native linker wrongly, you can verify this by running file on the zig executable.
Hello, thanks for explanation and for the patch. I can confirm, that with the patch inserted into /etc/portage/packages/dev-lang/zig-0.12.0 it compiled correctly. Thanks, Regards, Petr Sourek
Hello again, could you please test new version dev-lang/zig-0.13.0, without patch? If it works then this is solved.
(In reply to Eric Joldasov from comment #9) > Hello again, could you please test new version dev-lang/zig-0.13.0, without > patch? If it works then this is solved. Hello, launched eix-sync, emerge -av1u dev-lang/zig and I can confirm, that version 0.13.0 compiled without patch. For implementation I was using folder /etc/portage/patches/dev-lang/zig-0.12.0 and if I get it correctly, it gets used only for 0.12.0 version. Didn't find implementing it at the begining of 0.13.0. And just mentioning it, if I did any error (I am just a user). Thanks, Regards, Petr Sourek
Thanks!
(In reply to Eric Joldasov from comment #11) > Thanks! You are welcome, thank you too.