Bug 237302 - devel/cmake: Error in bootstrapping on powerpc arch since the update to 3.14.x
Summary: devel/cmake: Error in bootstrapping on powerpc arch since the update to 3.14.x
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Piotr Kubaj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-15 17:20 UTC by Chip Cuccio
Modified: 2019-07-03 16:06 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments
cmake build and bootstrap log (66.75 KB, text/plain)
2019-04-15 17:20 UTC, Chip Cuccio
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chip Cuccio 2019-04-15 17:20:57 UTC
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.
Comment 1 Adriaan de Groot freebsd_committer freebsd_triage 2019-04-15 19:31:23 UTC
Assigning to Piotr, since he's all about the PPC.
Comment 2 Piotr Kubaj freebsd_committer freebsd_triage 2019-04-16 06:34:16 UTC
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?
Comment 3 Mikael Urankar freebsd_committer freebsd_triage 2019-04-16 07:19:55 UTC
(In reply to Chip Cuccio from comment #0)
Hi,
Is it powerpc or powerpc64?
Comment 4 Chip Cuccio 2019-04-16 12:04:57 UTC
(In reply to mikael.urankar from comment #3)
PowerPC
Comment 5 Adriaan de Groot freebsd_committer freebsd_triage 2019-05-12 16:29:01 UTC
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.
Comment 6 Justin Hibbits freebsd_committer freebsd_triage 2019-06-04 16:38:45 UTC
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.
Comment 7 Chip Cuccio 2019-07-03 16:06:08 UTC
I switched from gcc8 to gcc7 and the build issue was resolved. Not sure why gcc8 caused all of these issues.

Thanks.