Describe the bug
Try to compile mysql code on RockyLinux 8 will fail.
Reproduction Steps
goto vlib/db/mysql
v mysql_test.v -showcc -keepc
Expected Behavior
compile ok
Current Behavior
# v mysql_test.v -showcc -keepc
> C compiler cmd: '/home/github/lang/v/thirdparty/tcc/tcc.exe' '@/tmp/v_0/mysql_test.tmp.c.rsp'
> C compiler response file "/tmp/v_0/mysql_test.tmp.c.rsp":
-fwrapv -o "/home/github/lang/v/vlib/db/mysql/mysql_test" -D GC_THREADS=1 -D GC_BUILTIN_ATOMIC=1 -I "/home/github/lang/v/thirdparty/libgc/include" -I "/usr/include/mysql -m64" -I "/usr/include" -L "/usr/lib64/mysql" -L "/usr/lib64" "/tmp/v_0/mysql_test.tmp.c" -std=gnu99 -D_DEFAULT_SOURCE -bt25 "/home/github/lang/v/thirdparty/tcc/lib/libgc.a" -ldl -lpthread -lmysqlclient -lssl -lcrypto
> C compiler cmd: 'cc' '@/tmp/v_0/mysql_test.tmp.c.rsp'
> C compiler response file "/tmp/v_0/mysql_test.tmp.c.rsp":
-fwrapv -o '/home/github/lang/v/vlib/db/mysql/mysql_test' -D GC_THREADS=1 -D GC_BUILTIN_ATOMIC=1 -I "/home/github/lang/v/thirdparty/libgc/include" -I "/usr/include/mysql -m64" -I "/usr/include" -L "/usr/lib64/mysql" -L "/usr/lib64" "/tmp/v_0/mysql_test.tmp.c" -std=gnu99 -D_DEFAULT_SOURCE "/home/github/lang/v/thirdparty/tcc/lib/libgc.a" -ldl -lpthread -lmysqlclient -lssl -lcrypto
builder error: Header file <mysql.h>, needed for module `db.mysql` was not found. Please install the libmysqlclient-dev development headers.
Possible Solution
remove -m64 from compile flags.
Additional Information/Context
No response
V version
V 0.4.10 a298fb8 .a298fb8
Environment details (OS name and version, etc.)
V full version
V 0.4.10 a298fb8 .a298fb8
OS
linux, "Rocky Linux release 8.10 (Green Obsidian)"
Processor
40 cpus, 64bit, little endian, Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz
Memory
49.86GB/62.29GB
V executable
/home/github/lang/v/v
V last modified time
2025-04-03 08:16:12
V home dir
OK, value: /home/github/lang/v
VMODULES
OK, value: /root/.vmodules
VTMP
OK, value: /tmp/v_0
Current working dir
OK, value: /home/github/lang/v/vlib/db/mysql
Git version
git version 2.43.5
V git status
weekly.2025.14-dirty
.git/config present
true
cc version
cc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)
gcc version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)
clang version
N/A
tcc version
tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 Linux)
tcc git status
thirdparty-linux-amd64 696c1d84
emcc version
N/A
glibc version
ldd (GNU libc) 2.28
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.
Describe the bug
Try to compile mysql code on RockyLinux 8 will fail.
Reproduction Steps
goto
vlib/db/mysqlExpected Behavior
compile ok
Current Behavior
Possible Solution
remove
-m64from compile flags.Additional Information/Context
No response
V version
V 0.4.10 a298fb8.a298fb8
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.