You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cc: clang: error: no such file or directory: '/Applications/v/thirdparty/sqlite/sqlite3.c'
Reproduction Steps
import db.sqlite
import time
@[table: 'sys_users']
struct User {
pub:
id string @[primary; sql_type: 'VARCHAR(255)'; unique]
name ?string @[sql_type: 'VARCHAR(255)']
status u8
created_at time.Time @[omitempty; sql_type: 'TIMESTAMP']
}
fn main() {
mut db := init_database()!
defer { db.close() or {} }
insert_test_data(mut db) or { panic(err) }
update(mut db)!
}
fn update(mut db sqlite.DB) ! {
req_status := true
sql db {
update User set
name = 'Jengro',
status = if req_status { 1 } else { 0 }
// status = fn [req_status] () u8 {return if req_status { u8(1) } else { u8(0) }}()
// status = fn [req_status] () u8 { if req_status { return 1 } else { return 0 } }()
where id == '100'
}!
println('update success')
}
fn init_database() !&sqlite.DB {
mut db := sqlite.connect(':memory:')!
sql db {
create table User
}!
return &db
}
fn insert_test_data(mut db sqlite.DB) ! {
user1 := User{
id: '100'
name: 'Alice'
status: 0
created_at: time.now()
}
sql db {
insert user1 into User
}!
}
Expected Behavior
no. err
Current Behavior
no err================== C compilation error (from cc): ==============
cc: clang: error: no such file or directory: '/Applications/v/thirdparty/sqlite/sqlite3.c'
================================================================
Try passing `-g` when compiling, to see a .v file:line information, that correlates more with the C error.
(Alternatively, pass `-show-c-output`, to print the full C error message).
builder error:
==================
C error found while compiling generated C code.
This can be caused by invalid C interop code, C compiler flags, or a V compiler bug.
If your code is pure V and this still happens, 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
avey@avey temp % v up
Updating V...
> git_command: git pull https://github.com/vlang/v master
V is already updated.
Current V version: V 0.5.1 e3faeb3, timestamp: 2026-04-18 03:13:29 +0300
avey@avey temp % v version
V 0.5.1 e3faeb3
avey@avey temp %
Describe the bug
cc: clang: error: no such file or directory: '/Applications/v/thirdparty/sqlite/sqlite3.c'
Reproduction Steps
Expected Behavior
no. err
Current Behavior
Possible Solution
No response
Additional Information/Context
V version
V 0.5.1 e3faeb3
Environment details (OS name and version, etc.)
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.