Goddard-Fortran-Ecosystem / pFUnit

Parallel Fortran Unit Testing Framework
Other
174 stars 45 forks source link

make install gives an error during "Linking Fortran static library libfunit.a" #343

Open etempel opened 2 years ago

etempel commented 2 years ago

When I run 'make install' after 'cmake ..' and 'make tests; in build directory, I get the following error:

[ 43%] Built target funit-main [ 43%] Linking Fortran static library libfunit.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: libfunit.a(get_errno.c.o) cputype (16777228) does not match previous archive members cputype (16777223) (all members must match) make[2]: [src/funit/libfunit.a] Error 1 make[2]: Deleting file `src/funit/libfunit.a' make[1]: [src/funit/CMakeFiles/funit.dir/all] Error 2 make: [all] Error 2

I'm using Intel 2021.5.0.20211109 compiler in new MacBook Pro with M1 processor under macOS Monterey 12.2.1. Any ideas why the make install fails?

tclune commented 2 years ago

Sorry for the delay in responding. Unfortunately, I do not yet have access to an M1 system, so my ability to troubleshoot this is quite limited. At first glance, it would appear that something is inconsistent in Apple's software stack.

Another person in my group, @mathomp4, recently helped someone port a different package to M1s. I'm mentioning him here in case he has an idea on things to try.

I expect we'll have access to an M1 "soon", anywhere from 2-8 weeks.

tclune commented 2 years ago

BTW, we're a bit surprised, but glad, that the Intel compiler can run on M1. @mathomp4 did recently help someone support a similarly structured package to M1, but that was with GNU. So maybe use a different compiler on that system for now?