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
$ /usr/bin/time -v zig build-exe 4593.zig
Command being timed: "zig build-exe 4593.zig"
User time (seconds): 0.91
System time (seconds): 0.27
Percent of CPU this job got: 98%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:01.21
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 1085480
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 1
Minor (reclaiming a frame) page faults: 261252
Voluntary context switches: 95
Involuntary context switches: 13
Swaps: 0
File system inputs: 0
File system outputs: 3040
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
I get this on debian 10 x64 with 1GB mem 0.5GB swap:
allocation failed
Unable to dump stack trace: debug info stripped
Command terminated by signal 6
Command being timed: "zig build-exe main.zig"
User time (seconds): 0.35
System time (seconds): 0.08
Percent of CPU this job got: 99%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.44
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 175620
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 40091
Voluntary context switches: 2
Involuntary context switches: 79
Swaps: 0
File system inputs: 0
File system outputs: 8
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
I created a heroku buildpack for zig to tried and deploy a stupid simple zig streamserver app and it also fails build on a server with 1GB of memory without any extra swap space.
-----> Building zig project
remote: allocation failed
remote: Unable to dump stack trace: debug info stripped
remote:
After adding 1GB of swap space it worked.
From watching with top it seems zig requires about minimum of 1.2GB of free memory to build a very simple project.
Activity
daurnimator commentedon Mar 1, 2020
Works on my computer; with no zig-cache:
markfirmware commentedon Mar 1, 2020
I get this on debian 10 x64 with 1GB mem 0.5GB swap:
frmdstryr commentedon Apr 1, 2020
I created a heroku buildpack for zig to tried and deploy a stupid simple zig streamserver app and it also fails build on a server with 1GB of memory without any extra swap space.
After adding 1GB of swap space it worked.
From watching with top it seems zig requires about minimum of 1.2GB of free memory to build a very simple project.
andrewrk commentedon Oct 17, 2020
Duplicate of #471. The main effort to address this is working towards the self-hosted compiler + #6378.