[MacPorts] #62819: p5.28-perlmagick @6.9.11-60: error: architecture not supported

MacPorts noreply at macports.org
Thu May 6 12:40:39 UTC 2021


#62819: p5.28-perlmagick @6.9.11-60: error: architecture not supported
----------------------------+--------------------------
  Reporter:  murielvd       |      Owner:  ryandesign
      Type:  defect         |     Status:  closed
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.4
Resolution:  invalid        |   Keywords:  bigsur arm64
      Port:  p5-perlmagick  |
----------------------------+--------------------------

Comment (by ryandesign):

 The new log shows "Xcode 12.5" so that's fine now.

 However, this port does not require Xcode, so it uses the Xcode command
 line tools if you have them installed, which it appears that you do.

 The new log still shows the same errors:
 {{{
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2:
 error: Unsupported architecture
 }}}
 {{{
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2:
 error: architecture not supported
 }}}
 and so forth. This is not surprising in that the 10.15 SDK indeed does not
 support Apple Silicon. So we need to determine why it is trying to use
 that SDK.

 Part of the problem is that this is a perl module, and perl modules have a
 tendency to try to build themselves with the settings that were in effect
 when perl was built rather than the settings that are in effect now when
 building the module. See #62440. But I don't think that's completely it.

 For example, the log shows that MacPorts is asking the build to use the
 11.3 SDK, which is what we would expect to see for MacPorts 2.6.4 running
 on macOS 11.3, and which is the SDK version provided by Xcode 12.5 and the
 corresponding command line tools:
 {{{
 SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk'
 }}}
 But the build is ignoring that request. The compile command contains a
 surprising two `-isysroot` flags. First:
 {{{
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 }}}
 This probably comes from perl5.28 because when perl5.28 was built on our
 server we were probably still running macOS 11.0.1 and Xcode 12.2. This
 SDK probably doesn't exist on your system so this line probably does
 nothing. Second:
 {{{
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
 }}}
 This is probably what is causing the 10.15 SDK to be used, which
 apparently does exist on your system, but I don't know why this flag is
 appearing in the build.

 Could you please let me know all the SDKs installed in the command line
 tools on your system?
 {{{
 ls -l /Library/Developer/CommandLineTools/SDKs/
 }}}

 Also, could you show the version of the compiler installed in your command
 line tools, so that I can check that it is the correct version?
 {{{
 /Library/Developer/CommandLineTools/usr/bin/clang --version
 }}}

 When you attached the new log it looks like you replaced the old log, so I
 cannot check the old log anymore. But the new log at least was not from a
 clean build attempt; it's possible that may be contributing to the
 problem. So please `sudo port clean p5.28-perlmagick` and then try
 installing it again.

-- 
Ticket URL: <https://trac.macports.org/ticket/62819#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list