Replies: 4 comments
-
To compile without the gc, you have to add As far as gc goes, there are plans for a pure V gc in the works, though there is nothing currently available for use. Once that is in place, though, none of us have to worry about libgc any longer. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your feedback. @JalonSolov The plan to create pure V GC is to translate Bohem, which is already used in V, right? I'll write a ticket about my latest error with -autofree and json, as it appears with GCC. |
Beta Was this translation helpful? Give feedback.
-
The issue for -autofree and x.jons2 : #25124 |
Beta Was this translation helpful? Give feedback.
-
It might be interesting to put in an issue about Bohem at the Cosmopolitan repo. They may come up with some resolution, workaround, or at least give an additional perspective. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I would like compile my project Bernard with Cosmopolitan and I'm having some difficulties.
I am developing under WLS 2 Ubuntu 24.04, using version 0.4.11 of V and version 14.1.0 of comopolitan.
My first command gives the following results:
There are a few errors when compiling the GC source file
v/thirdparty/libgc/gc.c
because “the collector has not been ported to this machine/OS combination.” Well, if I compile with the autofree option:Now, cosmocc cannot find “@/tmp/v_1000/bernard.01K2PY4M01GBBHZNAKHBJKB24E.tmp.c.rsp,” but I can give it the commands contained in this file:
This is now a link error with the error “undefined reference to ‘_option_Array_string_free’”.
The problem is in the json module with autofree option activated and not cosmocc because I have the same errors with gcc:
The last solution is to change my code to manually free up memory and use the
-manualfree
option, but I don't want to modify my code for that.Do you have any other solutions ? It's a problem in Cosmopolitan or V ? Have you ever worked on a project with Cosmopolitan?
Beta Was this translation helpful? Give feedback.
All reactions