v
v copied to clipboard
mac m1: C error found. It should never happen, when compiling pure V code. This is a V compiler bug
Describe the bug
Hello, when build code from tutorial about simple vweb blog:
v -d use_openssl -o blog -prod . && strip ./blog
error happened:
v -d use_openssl -o blog -prod . && strip ./blog
==================
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
...
==================
(Use `v -cg` to print the entire error message)
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 .
Best regards
Reproduction Steps
build code from tutorial about simple vweb blog:
v -d use_openssl -o blog -prod . && strip ./blog
Expected Behavior
Build completed successfully
Current Behavior
==================
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
...
==================
(Use `v -cg` to print the entire error message)
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.6 4a7c70c
Environment details (OS name and version, etc.)
CPU Apple M1 macOS 12.7.4 Apple clang version 14.0.0 (clang-1400.0.29.202)
[!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.