Opened 8 months ago

Last modified 8 months ago

#69567 assigned defect

fftw-3 @3.3.10 +universal fails to build with universal_archs containing arm64 and x86_64

Reported by: wenbingzhang Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: fftw-3

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

--->  Configuring fftw-3
Error: Failed to configure fftw-3: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_fftw-3/fftw-3/work/fftw-3.3.10-arm64/config.log
Error: Failed to configure fftw-3: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_fftw-3/fftw-3/main.log for details.

Attachments (1)

config.log (236.7 KB) - added by wenbingzhang 8 months ago.

Download all attachments as: .zip

Change History (6)

Changed 8 months ago by wenbingzhang

Attachment: config.log added

comment:1 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to MarcusCalhoun-Lopez
Port: fftw-3 added
Status: newassigned

It looks like you're on an Intel Mac running macOS 12 and you're trying to compile this port for arm64. Is that right?

The log says:

./configure: line 2408: /opt/local/bin/gfortran-mp-13: Bad CPU type in executable

What is the CPU type of that executable? This command would tell you:

file /opt/local/bin/gfortran-mp-13

Also, for what architecture does MacPorts think it has installed it? This command would tell you:

port -v installed $(port provides /opt/local/bin/gfortran-mp-13)

comment:2 Changed 8 months ago by wenbingzhang

/opt/local/bin/gfortran-mp-13: Mach-O 64-bit executable x86_64
Last edited 8 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 8 months ago by wenbingzhang

The following ports are currently installed:
  gcc13 @13.2.0_4+stdlib_flag (active) requested_variants='' platform='darwin 21' archs='x86_64' date='2024-03-22T15:00:55+0800'
  gcc13 @13.2.0_4+stdlib_flag+universal requested_variants='+universal' platform='darwin 21' archs='arm64 x86_64' date='2024-03-22T14:15:19+0800
Last edited 8 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 8 months ago by jmroot (Joshua Root)

Universal with arm64 and x86_64 isn't going to work out of the box for anything that builds with gfortran or gcc generally, because you can't target different architectures with the same gcc (except i386 and x86_64 via multilib).

comment:5 Changed 8 months ago by jmroot (Joshua Root)

Summary: Error: Processing of port fftw-3 failedfftw-3 @3.3.10 +universal fails to build with universal_archs containing arm64 and x86_64
Note: See TracTickets for help on using tickets.