Opened 2 years ago

Last modified 2 years ago

#66261 assigned defect

mpich-default: can't build universal variant on arm64

Reported by: catap (Kirill A. Korinsky) Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version:
Keywords: universal Cc: mascguy (Christopher Nielsen)
Port: mpich-default

Description

An attempt to run port install mpich-default +universal fails on configure stage as:

configure: error: ****  Incompatible Fortran and C Object File Types!  ****
F77 Object File Type produced by "/opt/local/bin/gfortran-mp-12  -pipe -fallow-argument-mismatch -O2" is : : Mach-O 64-bit object arm64.
 C  Object File Type produced by "/usr/bin/clang  -pipe -arch x86_64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -fno-common  -O2" is : : Mach-O 64-bit object x86_64.

Attachments (1)

main.log (356.3 KB) - added by catap (Kirill A. Korinsky) 2 years ago.

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by catap (Kirill A. Korinsky)

Attachment: main.log added

comment:1 Changed 2 years ago by jmroot (Joshua Root)

It's going to be very difficult to build anything universal for arm64 and x86_64 with gcc, because a single gcc installation won't build both of those archs. You would need a cross compiler for one of them.

comment:2 Changed 2 years ago by catap (Kirill A. Korinsky)

Well, I did some magic at gcc10-bootstrap that allows to use as kind of universal compiler at clang-11-bootstrap. Maybe it can be reused elsewhere.

Note: See TracTickets for help on using tickets.