Skip to content

C error while migrating vpm to veb #24044

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

Open
Paul-Stern opened this issue Mar 25, 2025 · 3 comments
Open

C error while migrating vpm to veb #24044

Paul-Stern opened this issue Mar 25, 2025 · 3 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@Paul-Stern
Copy link

Paul-Stern commented Mar 25, 2025

Describe the bug

C error when trying to build the project

Reproduction Steps

  1. clone https://github.com/koplenov/vpm
  2. Try to build the master branch

Expected Behavior

Successful build or, at most, a V error.

Current Behavior

C error:

vpm$ v .
================== C compilation error (from tcc): ==============
cc: /tmp/v_1000/vpm.01JQ6XYC4EVVWKNXNVS6R7FY1Z.tmp.c:20888: warning: implicit declaration of function 'time__Time_local_to_utc'
cc: /tmp/v_1000/vpm.01JQ6XYC4EVVWKNXNVS6R7FY1Z.tmp.c:20888: error: '{' expected (got ";")
=================================================================
(You can pass `-cg`, or `-show-c-output` as well, to print all the C error messages).
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.10 2b76902

Environment details (OS name and version, etc.)

$ v doctor

V full version V 0.4.10 86bb2d7.2b76902
OS linux, Ubuntu 24.10
Processor 12 cpus, 64bit, little endian, AMD Ryzen 5 5500U with Radeon Graphics
Memory 0.56GB/22.32GB
V executable /home/john/dev/gh/v/v
V last modified time 2025-03-25 13:12:26
V home dir OK, value: /home/john/dev/gh/v
VMODULES OK, value: /home/john/.vmodules
VTMP OK, value: /tmp/v_1000
Current working dir OK, value: /home/john/dev/vpm
Git version git version 2.45.2
V git status 0.4.10-37-g2b769025-dirty (1 commit(s) behind V master)
.git/config present true
cc version cc (Ubuntu 14.2.0-4ubuntu2) 14.2.0
gcc version gcc (Ubuntu 14.2.0-4ubuntu2) 14.2.0
clang version N/A
tcc version tcc version 0.9.28rc 2024-07-31 HEAD@1cee0908 (x86_64 Linux)
tcc git status thirdparty-linux-amd64 0134e9b9
emcc version N/A
glibc version ldd (Ubuntu GLIBC 2.40-1ubuntu3.1) 2.40

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.

@Paul-Stern Paul-Stern added the Bug This tag is applied to issues which reports bugs. label Mar 25, 2025
Copy link

Connected to Huly®: V_0.6-22435

@Paul-Stern Paul-Stern changed the title C error while developing vpm C error while migrating vpm to veb Mar 25, 2025
@JalonSolov
Copy link
Contributor

Perhaps try with the official repo: https://github.com/vlang/vpm

@Paul-Stern
Copy link
Author

Paul-Stern commented Mar 25, 2025

Thank you for your reply. We are trying to migrate vpm from vweb to veb. That's why the fork is needed as there are some migration steps done already. As the last V error had been fixed, there came C errors. BTW I even tried performing the migration on my own on branch
https://github.com/Paul-Stern/vpm/tree/veb-migrate-draft
I fixed all the V errors but sadly enough, got exactly the same error.

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