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

mac m1: C error found. It should never happen, when compiling pure V code. This is a V compiler bug #21820

Open
kodsurfer opened this issue Jul 7, 2024 · 0 comments
Labels
Bug This tag is applied to issues which reports bugs. Build V build error on any OS/CPU architecture. OS: Mac Bugs/feature requests, that are specific to Mac OS.

Comments

@kodsurfer
Copy link

kodsurfer commented Jul 7, 2024

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.

@kodsurfer kodsurfer added the Bug This tag is applied to issues which reports bugs. label Jul 7, 2024
@JalonSolov JalonSolov changed the title C error found. It should never happen, when compiling pure V code. This is a V compiler bug mac m1: C error found. It should never happen, when compiling pure V code. This is a V compiler bug Jul 8, 2024
@felipensp felipensp added OS: Mac Bugs/feature requests, that are specific to Mac OS. Build V build error on any OS/CPU architecture. labels Jul 9, 2024
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. Build V build error on any OS/CPU architecture. OS: Mac Bugs/feature requests, that are specific to Mac OS.
Projects
None yet
Development

No branches or pull requests

2 participants