Opened 3 weeks ago

Last modified 8 days ago

#65127 assigned defect

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)
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 2 weeks ago.

Change History (5)

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

Could you attach the main.log, please?

Changed 2 weeks ago by wrohv

Attachment: main.log added

comment:2 Changed 2 weeks 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 11 days 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 8 days 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.

Note: See TracTickets for help on using tickets.