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
lcheylus
changed the title
Error when using thirdparty/zip/miniz on OpenBSD with tcc
Error when using thirdparty/zip/miniz.h on OpenBSD with tcc
Sep 18, 2024
Describe the bug
During build of a program using
thirdparty/zip/miniz.h
on OpenBSD/amd64 with tcc, it fails with builder error'sys/utime.h' not found
Reproduction Steps
thirdparty/tcc
forthirdparty-openbsd-amd64
branchcmd/tools/vcompress.v
with VExpected Behavior
No error during build with
thirdparty/zip/miniz.h
Current Behavior
Error with build of
cmd/tools/vcompress.v
withtcc
(default compiler)$ ./v cmd/tools/vcompress.v builder error: 'sys/utime.h' not found
Possible Solution
Patch
thirdparty/zip/miniz.h
withdefined(__OpenBSD__)
I have a PoC with this fix => will crate PR ASAP
Additional Information/Context
No response
V version
V 0.4.7 c0f7244
Environment details (OS name and version, etc.)
./v doctor
V full version: V 0.4.7 c0f7244
OS: openbsd, 7.6, GENERIC.MP#312
Processor: 2 cpus, 64bit, little endian
getwd: /home/fox/dev/vlang.git
vexe: /home/fox/dev/vlang.git/v
vexe mtime: 2024-09-18 13:31:36
vroot: OK, value: /home/fox/dev/vlang.git
VMODULES: OK, value: /home/fox/.vmodules
VTMP: OK, value: /tmp/v_1000
Git version: git version 2.46.1
Git vroot status: weekly.2024.37-17-gc0f72446 (2 commit(s) behind V master)
.git/config present: true
CC version: OpenBSD clang version 16.0.6
thirdparty/tcc status: thirdparty-openbsd-amd64 8205cc59
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.
The text was updated successfully, but these errors were encountered: