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

vdoctor.v (v doctor) does not compile on termux #23597

Open
heyimtcn opened this issue Jan 27, 2025 · 2 comments
Open

vdoctor.v (v doctor) does not compile on termux #23597

heyimtcn opened this issue Jan 27, 2025 · 2 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@heyimtcn
Copy link
Contributor

heyimtcn commented Jan 27, 2025

Describe the bug

running v doctor will compile vdoctor.v which fails on termux

Reproduction Steps

run v doctor on termux

Expected Behavior

vdoctor.v to compile and v doctor to function properly

Current Behavior

cannot compile `/data/data/com.termux/files/home/v/cmd/tools/vdoctor.v`: 1
ld.lld: error: undefined symbol: libiconv_open
>>> referenced by iconv_nix.c.v:42 (vlib/encoding/iconv/iconv_nix.c.v:42)
>>>               /data/data/com.termux/files/usr/tmp/vdoctor-71a857.o:(encoding__iconv__conv)

ld.lld: error: undefined symbol: libiconv
>>> referenced by iconv_nix.c.v:54 (vlib/encoding/iconv/iconv_nix.c.v:54)
>>>               /data/data/com.termux/files/usr/tmp/vdoctor-71a857.o:(encoding__iconv__conv)

ld.lld: error: undefined symbol: libiconv_close
>>> referenced by iconv_nix.c.v:46 (vlib/encoding/iconv/iconv_nix.c.v:46)
>>>               /data/data/com.termux/files/usr/tmp/vdoctor-71a857.o:(encoding__iconv__conv)
>>> referenced by iconv_nix.c.v:46 (vlib/encoding/iconv/iconv_nix.c.v:46)
>>>               /data/data/com.termux/files/usr/tmp/vdoctor-71a857.o:(encoding__iconv__conv)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.9 3343fb7

Environment details (OS name and version, etc.)

vdoctor.v won't compile

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@heyimtcn heyimtcn added the Bug This tag is applied to issues which reports bugs. label Jan 27, 2025
Copy link

Connected to Huly®: V_0.6-22023

@kbkpbot
Copy link
Contributor

kbkpbot commented Jan 27, 2025

It seems missing libiconv at termux.
Try to install it ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

2 participants