Failed to map a virtual memory block
This issue occured on Alpine linux which uses Musl, on x86
⚠ The compiler encountered an unexpected error: "Failed to map a virtual memory block.".
- Function: mmap_init(...)
- Source file: v0.7.4/c3c-0.7.4/src/utils/vmem.c:46
32 or 64 bit?
32bit
mmap_init gets called with hardcoded 4096 * 1024 * 1024 bytes which overflows to 0
I see.
I also had to modify std library to use allocator:new_aligned instead of allocator::new in object.c3 to get it to compile a program. Is i686 architecture supported? I assumed that it is the same as x86.
On 0.7.5 this should now be adjusted down and should work.
For Linux both x86 and x64 should be supported. Windows 32 bit isn't.
Is this verified to work now?
I'm going to assume it is.