Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] fix(main/zig): fix missing dynamic linker and libc runtime #22442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbekkomo
Copy link
Contributor

@mbekkomo mbekkomo commented Dec 2, 2024

Closes #20294

Zig uses FHS-type path to guess the ABI and dynamic linker of env binary. That leads to a warning like in #20294

@mbekkomo mbekkomo force-pushed the fix-installation-zig branch 2 times, most recently from 11a4604 to e0000bb Compare December 2, 2024 20:36
@mbekkomo
Copy link
Contributor Author

mbekkomo commented Dec 2, 2024

Related ziglang/zig#14146

@mbekkomo
Copy link
Contributor Author

mbekkomo commented Dec 2, 2024

Might also need to resolve LibCRuntimeNotFound compilation error.

@mbekkomo mbekkomo force-pushed the fix-installation-zig branch 3 times, most recently from 861427c to f9e6b12 Compare December 3, 2024 11:22
@mbekkomo mbekkomo changed the title fix(main/zig): fix warning missing ABI and dynamic linker fix(main/zig): fix missing dynamic linker and libc runtime Dec 3, 2024
@mbekkomo mbekkomo force-pushed the fix-installation-zig branch from f9e6b12 to 1b80507 Compare December 3, 2024 13:04
@truboxl
Copy link
Contributor

truboxl commented Dec 4, 2024

This doesn't fix what it declares it fixes

~/downloads/zig $ zig init
info: created build.zig
info: created build.zig.zon
info: created src/main.zig
info: created src/root.zig
info: see `zig build --help` for a menu of options
~/downloads/zig $ zig build
warning: Encountered error: FileNotFound, falling back to default ABI and dynamic linker.
warning: Encountered error: FileNotFound, falling back to default ABI and dynamic linker.
install
└─ install zig
   └─ zig build-lib zig Debug native failure
error: warning: Encountered error: FileNotFound, falling back to default ABI and dynamic linker.

install
└─ install zig
   └─ zig build-exe zig Debug native failure
error: warning: Encountered error: FileNotFound, falling back to default ABI and dynamic linker.

~/downloads/zig $ apt info zig
Package: zig
Version: 0.13.0-1
Status: install ok installed
Maintainer: @termux
Installed-Size: 340 MB
Homepage: https://ziglang.org
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /data/data/com.termux/files/usr/var/lib/dpkg/status
Description: General-purpose programming language and toolchain

N: There is 1 additional record. Please use the '-a' switch to see it

@mbekkomo
Copy link
Contributor Author

mbekkomo commented Dec 6, 2024

This doesn't fix what it declares it fixes

~/downloads/zig $ zig init
info: created build.zig
info: created build.zig.zon
info: created src/main.zig
info: created src/root.zig
info: see `zig build --help` for a menu of options
~/downloads/zig $ zig build
warning: Encountered error: FileNotFound, falling back to default ABI and dynamic linker.
warning: Encountered error: FileNotFound, falling back to default ABI and dynamic linker.
install
└─ install zig
   └─ zig build-lib zig Debug native failure
error: warning: Encountered error: FileNotFound, falling back to default ABI and dynamic linker.

install
└─ install zig
   └─ zig build-exe zig Debug native failure
error: warning: Encountered error: FileNotFound, falling back to default ABI and dynamic linker.

~/downloads/zig $ apt info zig
Package: zig
Version: 0.13.0-1
Status: install ok installed
Maintainer: @termux
Installed-Size: 340 MB
Homepage: https://ziglang.org
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /data/data/com.termux/files/usr/var/lib/dpkg/status
Description: General-purpose programming language and toolchain

N: There is 1 additional record. Please use the '-a' switch to see it

I'm trying to figure out what standard library does it use to build Zig. Might need to check the build.zig file.

Closes termux#20294

Zig uses FHS-type path to guess the dynamic linker of `env` binary. That leads to a warning like in termux#20294
Zig also tries to find the include dir via `clang`, but it failed. I have no idea why.
@mbekkomo mbekkomo force-pushed the fix-installation-zig branch from 1b80507 to e35c1ea Compare December 17, 2024 15:54
@mbekkomo mbekkomo changed the title fix(main/zig): fix missing dynamic linker and libc runtime [DO NOT MERGE] fix(main/zig): fix missing dynamic linker and libc runtime Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zig build "warning: Encountered error: FileNotFound"
2 participants