Closed TobiasGruenhagen closed 7 years ago
What version of V8 you're trying to build? I had a look at the log on automated build, it gets past this step no problems.
@pinepain, do you have any ideas on what else it might be?
It seems that the process run out of memory (OOM).
Try to increase the RAM-memory assigned to a virtual machine (2048 is fine). Try to limit the number of concurrent cores/jobs/links; by Ninja options like "-j N" and "-l N", V8 options like "concurrent_links".
Looks like this is not helping.
@TobiasGruenhagen Looks a bit odd. Maybe try to add/increase swap? I normally had at least 4Gb and 512Mb swap and it worked ok. As the last resort, giving a try to more recent v8 version may solve an issue.
@AlexMasterov I see that you checkout php-v8 from master, make sure to have up to date libv8, I raise it version time to time, currently you will need at least 6.1.170
. In general, you can get current required min version from https://github.com/pinepain/php-v8/blob/master/config.m4#L11 from V8_MIN_API_VERSION_STR
variable which looks like V8_MIN_API_VERSION_STR=6.1.170
atm.
I finally resolved the issue with strace. It was a privilege error due to PaX. I used paxmark -m mksnapshot
and paxmark -m d8
to resolve the errors. I will try to build it in the build process now.
When building the docker file an error occurs at the end of the ninja build process. I build on a vagrant virtualbox VM with Alpine Linux v3.6.0 and 4GB RAM. I also tested the docker build on a standard installation of Alpine Linux on an extra partition on my machine. The same following error occurs:
When executing the mksnapshot file afterwards on its own, i get the following error output:
If i run the build process without using snapshot the build process works but executing
d8
gives the same error shown before. I tried several GN-/Ninja-build-options without any effort. Do you have any idea why this error occurs and how to solve it?