On 3/27/2015 9:41 PM, Don Lewis wrote: > I was not seeing this problem on my older package builder running > 10.1-STABLE. Since this problem has not shown up on the FreeBSD package > building cluster, I got suspicious that the change was quite recent. > > This old gcc bug report: > <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940> led me to suspect > mmap(). > > The old gcc source file /usr/src/contrib/gcc/ggc-common.c does a couple > of mmap() calls. Tne first is in mmap_gt_pch_get_address() where a > NULL first argument is used. The address that gets returned is stashed > away and the region is unmapped. Then a later call in > mmap_gt_pch_use_address() passes this saved address to mmap() as a > hint. It expects the mapped region to get mapped to the same base > address. If this does not happen, the above error is the result. > > If I go back to kernel source r280326, which immediately preceeds the > above commit, I am able to successfully build openjdk7. > > I recommend that any machines in the ports cluster being used to build > packages for FreeBSD 8 and 9 avoid upgrading past r280326 until this > issue is resolved. I have not observed any problems building packages > for FreeBSD 10 and 11. >
I've committed a change to openjdk7/8 to disable PCH for GCC. filezilla and aegisub apparently use PCH as well. I still need to test and fix them. -- Regards, Bryan Drewery
signature.asc
Description: OpenPGP digital signature