Compile v error in arm32 with debian 11 system #18338
Replies: 4 comments 4 replies
-
Might there be a problem with building V on 32-bit architectures? On Linux, the build succeeds on i386As soon as I noticed this error:
I engaged the trusty GNU C:
The message about
Why is it linking I tried the bundled
And job done! The ARM v6
But the failure didn't disappear when repeating the trick from
I tried compiling and linking the bundled diff --git a/vlib/builtin/builtin_d_gcboehm.c.v b/vlib/builtin/builtin_d_gcboehm.c.v
index 161a6de8f..23788e858 100644
--- a/vlib/builtin/builtin_d_gcboehm.c.v
+++ b/vlib/builtin/builtin_d_gcboehm.c.v
@@ -8,6 +8,14 @@ $if use_bundled_libgc ? {
#flag @VEXEROOT/thirdparty/libgc/gc.o
}
+$if use_bundled_libatomic ? {
+ #flag @VEXEROOT/thirdparty/libatomic_ops/atomic_ops.o
+ #flag -I @VEXEROOT/thirdparty/libatomic_ops
+
+ #flag -I @VEXEROOT/thirdparty/libgc/include
+ #flag @VEXEROOT/thirdparty/libgc/gc.o
+}
+
$if dynamic_boehm ? {
$if windows {
$if tinyc { But strangely, it still couldn't find the exports, just like in the previous runs:
ARM v7I tried all what I did for ARMV v6, but I kept getting the same error as @Blackrose:
Status
Is the solution for the |
Beta Was this translation helpful? Give feedback.
-
When compiling V for 32-bit targets, you either need to add the This means, of course, that you can't use the default Makefile without modifying it to add one or more of those options. While it may be possible to have make figure out what you need, it hasn't been a big enough issue to build that in, yet. People simply haven't been doing a lot with 32-bit systems with V, as most systems in the past 10+ years have been 64-bit. If you do find a nice way of handling 32-bit systems, please don't hesitate to submit a PR to help improve V. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hint! So, there's some extra work expected. I'll look at what I can do. I admit than 32-bit systems are on the decline. I've just received an older Raspberry Pi and an embedded PC with Vortex86 and I'm trying to get some services running on them. Node.js works, Zig too, Rust crashes and now I'm trying to get V working. |
Beta Was this translation helpful? Give feedback.
-
I was able to install v in a raspberry pi :-) by making first Tried first It took minutes to finish but worked. LDFLAGS="-latomic" make
|
Beta Was this translation helpful? Give feedback.
-
Hi, I try to compile v in arm32 platform with debian os. When I run make, it shows no found v file. So I try to run command by manual.
Beta Was this translation helpful? Give feedback.
All reactions