Opened 5 years ago
Last modified 4 years ago
#60106 closed defect
nodejs12/13 fail to build on older OSX — at Initial Version
Reported by: | dubiousjim | Owned by: | ci42 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | snowleopard lion mountainlion mavericks yosemite haspatch | Cc: | |
Port: | nodejs13 |
Description
A recent attempt to upgrade from nodejs12 @12.15.0_0 to @12.16.0_0, and an attempt to (build and) install nodejs13 @13.8.0_0 failed with a similar error. The logs for each attempt end with errors about the presence of the macro MAP_ANONYMOUS
in src/large_pages/node_large_page.cc. (I've already discarded the log, and am disinclined to wait the several hours it takes to get that far in the failed build.) Apparently this macro is undefined on older OSXs. I'm using Mac 10.10.5.
I searched on that, and found [this discussion](https://github.com/eclipse/omr/issues/902), which prompted me to create the attached patch and attempt the build again. With the Portfile modified to include that patch, both nodejs12 and nodejs13 were able to build and install.
patch MAP_ANONYMOUS to fallback to MAP_ANON