Opened 3 years ago

Closed 2 years ago

#65127 closed defect (worksforme)

vtk @8.2.0_11 +qt5: fails to build on arm/Monterey

Reported by: wrohv Owned by: stromnov@…
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: haspatch Cc: rdbisme (Ruben Di Battista), mascguy (Christopher Nielsen)
Port: vtk

Description

I was previously able to build @8.2.0_10, but now I'm unable to build this variant. Without qt5, the port builds and installs fine.

The +clang13+qt5 variant also didn't build for me initially, but it did successfully build and install after I applied the following patch: https://gitlab.kitware.com/vtk/vtk/-/merge_requests/6420/diffs

I also note that the Homebrew formula for vtk contains several lines like this:

  # clang: error: unable to execute command: Segmentation fault: 11
  # clang: error: clang frontend command failed due to signal (use -v to see invocation)
  # Apple clang version 13.1.6 (clang-1316.0.21.2)
  fails_with :clang if DevelopmentTools.clang_build_version == 1316 && Hardware::CPU.arm?

and my system-installed clang version is indeed 13.1.6 (clang-1316.0.21.2)

Attachments (1)

main.log (5.0 MB) - added by wrohv 3 years ago.

Change History (8)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Could you attach the main.log, please?

Changed 3 years ago by wrohv

Attachment: main.log added

comment:2 Changed 3 years ago by wrohv

Attached. This looks like the relevant part to me:

:info:build clang: error: unable to execute command: Segmentation fault: 11
:info:build clang: error: clang frontend command failed due to signal (use -v to see invocation)
:info:build Apple clang version 13.1.6 (clang-1316.0.21.2)
:info:build Target: arm64-apple-darwin21.4.0

comment:3 in reply to:  2 ; Changed 2 years ago by rdbisme (Ruben Di Battista)

Replying to wrohv:

Attached. This looks like the relevant part to me:

:info:build clang: error: unable to execute command: Segmentation fault: 11
:info:build clang: error: clang frontend command failed due to signal (use -v to see invocation)
:info:build Apple clang version 13.1.6 (clang-1316.0.21.2)
:info:build Target: arm64-apple-darwin21.4.0

This will be hard for me to test, since I don't have a Mac anymore. My plan was to setup emulation somewhere and keep maintaining these packages, but not sure if I can emulate M1.

I'll try to bump the vtk version somehow and see if they fixed the problem upstream.

comment:4 in reply to:  3 Changed 2 years ago by wrohv

Replying to rdbisme:

This will be hard for me to test, since I don't have a Mac anymore. My plan was to setup emulation somewhere and keep maintaining these packages, but not sure if I can emulate M1.

I'll try to bump the vtk version somehow and see if they fixed the problem upstream.

Just updated to Monterey 12.4 and Xcode 13.4 (clang-1316.0.21.2.5), unfortunately this problem still occurs. I am happy to test any potential fixes on my computer, if you have them.

comment:5 Changed 2 years ago by wrohv

Tried again with the latest vtk @9.1.0 +qt5 and Xcode 14 (beta); this combination built successfully for me. Not sure what fixed it as both the Xcode and vtk versions are newer. I initially tried +qt5+clang13, and that failed with a similar error as above but I didn't investigate further after the vanilla +qt5 worked.

Unfortunately, even with the successful build the +qt5 variant didn't produce the correct qt5-enabled vtk library for me. That's a separate issue, and I submitted https://github.com/macports/macports-ports/pull/15428 to address that.

With a workable solution to my initial problem, this one can be closed from my perspective.

Last edited 2 years ago by wrohv (previous) (diff)

comment:6 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:7 in reply to:  5 Changed 2 years ago by mascguy (Christopher Nielsen)

Resolution: worksforme
Status: assignedclosed

Replying to wrohv:

Tried again with the latest vtk @9.1.0 +qt5 and Xcode 14 (beta); this combination built successfully for me. Not sure what fixed it as both the Xcode and vtk versions are newer. I initially tried +qt5+clang13, and that failed with a similar error as above but I didn't investigate further after the vanilla +qt5 worked.

Unfortunately, even with the successful build the +qt5 variant didn't produce the correct qt5-enabled vtk library for me. That's a separate issue, and I submitted https://github.com/macports/macports-ports/pull/15428 to address that.

With a workable solution to my initial problem, this one can be closed from my perspective.

Glad it's resolved, and thanks again for the PR!

Note: See TracTickets for help on using tickets.