Created attachment 203701 [details] cmake build and bootstrap log Greetings. Since the cmake port update to 3.14.1 and .2, builds on powerpc arch fails during the bootstrap process. Previous 3.13.x version builds successfully. Build machine: - 11.2-RELEASE-p9 - Powerpc - GCC 8.3.0 Build log and cmake bootstrap log attached. Cheers.
Assigning to Piotr, since he's all about the PPC.
Builds here on 12.0-RELEASE/powerpc64: https://talos.anongoth.pl/data/latest-per-pkg/cmake/3.14.1_1/powerpc64-default.log Can you upgrade to 12?
(In reply to Chip Cuccio from comment #0) Hi, Is it powerpc or powerpc64?
(In reply to mikael.urankar from comment #3) PowerPC
The build log from OP shows an internal compiler error while building, early on in the CMake build. That makes it more a gcc bug than a cmake one .. but it might be due to memory constraints, or a bunch of other reasons. @chip does the problem persist? Have you tried MAKE_BUILD_JOBS_UNSAFE=yes? Have you tried building CMake by hand? If anyone has suitable instructions for cross-building PPC (not PPC64) on an AMD64 host, that would help, since plain PPC hardware is in short supply.
Chip, can you try updating to 12? There's been a lot of work going into 12 and HEAD on powerpc across the board, which may offer some fixes for you. I regularly build on powerpc64 and powerpcspe, powerpcspe being a 32-bit platform. I don't regularly build on powerpc, as I don't have much need. That said, powerpcspe builds cmake just fine on HEAD, so you might be hitting a problem that was fixed in HEAD but not merged back to 11. I know I haven't done many MFC's back to 11, and only sporadically even do MFC's back to 12 even. Adriaan: You can boot powerpc64 kernels in qemu on amd64 (I think there's a HOWTO on the wiki), and from there you should be able to run a 32-bit chroot environment for testing. Unfortunately, that's probably the best you can get. I've never once had success booting 32-bit FreeBSD/powerpc on qemu.
I switched from gcc8 to gcc7 and the build issue was resolved. Not sure why gcc8 caused all of these issues. Thanks.