Opened 4 years ago

Closed 3 years ago

#62413 closed defect (fixed)

Error: Failed to build stellarium: command execution failed

Reported by: petrvokac Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: arm64 Cc:
Port: stellarium

Description (last modified by ryandesign (Ryan Carsten Schmidt))

pmm:~ pet$ sudo port install stellarium
Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
--->  Computing dependencies for stellarium
--->  Fetching archive for stellarium
--->  Attempting to fetch stellarium-0.20.4_1.darwin_20.arm64.tbz2 from https://packages.macports.org/stellarium
--->  Attempting to fetch stellarium-0.20.4_1.darwin_20.arm64.tbz2 from https://cph.dk.packages.macports.org/stellarium
--->  Attempting to fetch stellarium-0.20.4_1.darwin_20.arm64.tbz2 from https://lil.fr.packages.macports.org/stellarium
--->  Fetching distfiles for stellarium
--->  Verifying checksums for stellarium
--->  Extracting stellarium
--->  Applying patches to stellarium
--->  Configuring stellarium
--->  Building stellarium
Error: Failed to build stellarium: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_stellarium/stellarium/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port stellarium failed

pmm:~ pet$ uname -a
Darwin pmm.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 arm64

Attachments (1)

main.log (5.8 MB) - added by petrvokac 4 years ago.
build log

Change History (8)

Changed 4 years ago by petrvokac

Attachment: main.log added

build log

comment:1 Changed 4 years ago by kencu (Ken)

it is trying to build stellarium as x86_64 on arm64 and fails as all the supporting libraries are arm64.

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: stellarium removed
Owner: set to michaelld
Status: newassigned

MacPorts hasn't specified any -arch flags in the environment variables. Not sure why. And somehow -arch x86_64 flags have materialized out of nowhere during the build. Not sure why. I don't see anything about it in the portfile so maybe it is a defect in the qt5 portgroup or the qt5 ports.

comment:3 Changed 4 years ago by kencu (Ken)

I already have tried to force qt5 not to push in the x86_64 flags it wants to push in with this patch <https://github.com/macports/macports-ports/blob/master/aqua/qt5/files/patch-qmake-dont-hard-code-x86_64-as-the-architecture-when-using-qmake-installed.diff> but qt5 is insidious.

Perhaps the arch is slipping in somewhere still.

comment:4 Changed 4 years ago by kencu (Ken)

Probably right here <https://github.com/Stellarium/stellarium/blob/eaea3e793df610421e219d2ef7dbd8c5c5805bf2/CMakeLists.txt#L293>

     # We support only 64 bits MacOSX
     SET(CMAKE_OSX_ARCHITECTURES "x86_64")

comment:5 Changed 4 years ago by kencu (Ken)

so petrvokac, try patching out that spot I showed you where Stellarium forces the arch to x86_64, and let MacPorts drive the arch selection instead as we want it to.

Then we will see if it builds, or if there is another error coming down the road.

comment:6 Changed 3 years ago by michaelld (Michael Dickens)

Commenting out that line seems to do the trick for me. I'll add a patch.

comment:7 Changed 3 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: assignedclosed

In 46dbf3a817d477803fdc3e2650c014bf9f86a125/macports-ports (master):

stellarium: add patch to disable limiting OSX_ARCHITECURES

let 'port' figure this out

Closes: #62413

Note: See TracTickets for help on using tickets.