Opened 7 months ago

Last modified 3 months ago

#68296 new defect

scalapack-2.2.0_1+gfortran+mpich+openblas configure fails arm64

Reported by: murrayE Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc: kirill@…, catap (Kirill A. Korinsky), cjones051073 (Chris Jones)
Port: scalapack

Description (last modified by cjones051073 (Chris Jones))

From main.log:

:info:configure -- The C compiler identification is AppleClang 15.0.0.15000040
:info:configure -- The Fortran compiler identification is GNU 12.3.0
:info:configure -- Detecting C compiler ABI info
:info:configure -- Detecting C compiler ABI info - failed
:info:configure -- Check for working C compiler: /opt/local/bin/mpicc-mpich-mp
:info:configure -- Check for working C compiler: /opt/local/bin/mpicc-mpich-mp - broken
:info:configure CMake Error at /opt/local/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
:info:configure   The C compiler
:info:configure     "/opt/local/bin/mpicc-mpich-mp"
:info:configure   is not able to compile a simple test program.
:info:configure   It fails with the following output:
:info:configure     Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_scalapack/scalapack/work/build/CMakeFiles/CMakeTmp
:info:configure     
:info:configure     Run Build Command(s):/usr/bin/make -f Makefile cmTC_341e4/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_341e4.dir/build.make CMakeFiles/cmTC_341e4.dir/build
:info:configure     Building C object CMakeFiles/cmTC_341e4.dir/testCCompiler.c.o
:info:configure     /opt/local/bin/mpicc-mpich-mp   -pipe -Os -Wno-implicit-function-declaration -DNDEBUG -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -MD -MT CMakeFiles/cmTC_341e4.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_341e4.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_341e4.dir/testCCompiler.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_scalapack/scalapack/work/build/CMakeFiles/CMakeTmp/testCCompiler.c
:info:configure     Linking C executable cmTC_341e4
:info:configure     /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_341e4.dir/link.txt --verbose=1
:info:configure     /opt/local/bin/mpicc-mpich-mp -pipe -Os -Wno-implicit-function-declaration -DNDEBUG -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/local/lib/libgcc -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  CMakeFiles/cmTC_341e4.dir/testCCompiler.c.o -o cmTC_341e4 
:info:configure     ld: unknown options: -commons 
:info:configure     clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:configure     make[1]: *** [cmTC_341e4] Error 1
:info:configure     make: *** [cmTC_341e4/fast] Error 2

Attachments (1)

main.log (108.0 KB) - added by murrayE 7 months ago.
main.log

Download all attachments as: .zip

Change History (14)

Changed 7 months ago by murrayE

Attachment: main.log added

main.log

comment:1 Changed 7 months ago by murrayE

Summary: scalapackk-2.2.0_1+gfortran+mpich+openblas configure fails arm64scalapack-2.2.0_1+gfortran+mpich+openblas configure fails arm64

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

See: #68225

I assume that it is the same issue.

Last edited 7 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 7 months ago by cjones051073 (Chris Jones)

Description: modified (diff)

comment:4 in reply to:  2 Changed 7 months ago by cjones051073 (Chris Jones)

Replying to catap:

See: #68225

I assume that it is the same issue.

I agree. This is I am sure just another manifestation of the linker issues introduced with Xcode15.

Last edited 7 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 7 months ago by cjones051073 (Chris Jones)

Keywords: sonoma added; configure failure removed

comment:6 Changed 7 months ago by catap (Kirill A. Korinsky)

Cc: catap added

comment:7 Changed 7 months ago by murrayE

After adding to `~/.profile the settings

export MACOSX_DEPLOYMENT_TARGET=12
export OTHER_LDFLAGS=-Wl,-ld_classic

and, of course, restarting the shell, I tried once again to install scalapack-2.2.0_1+gfortran+mpich+openblas for arm64.

First try now failed because it required re-install of mpich-default with variant +gcc13, which I did. Still, configure fails.

From main.log:

:info:configure -- Check for working C compiler: /opt/local/bin/mpicc-mpich-mp
:info:configure -- Check for working C compiler: /opt/local/bin/mpicc-mpich-mp - broken
:info:configure CMake Error at /opt/local/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
:info:configure   The C compiler
:info:configure     "/opt/local/bin/mpicc-mpich-mp"
:info:configure   is not able to compile a simple test program.
:info:configure   It fails with the following output:
:info:configure     Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_scalapack/scalapack/work/build/CMakeFiles/CMakeTmp
:info:configure     
:info:configure     Run Build Command(s):/usr/bin/make -f Makefile cmTC_883db/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_883db.dir/build.make CMakeFiles/cmTC_883db.dir/build
:info:configure     Building C object CMakeFiles/cmTC_883db.dir/testCCompiler.c.o
:info:configure     /opt/local/bin/mpicc-mpich-mp   -pipe -Os -Wno-implicit-function-declaration -DNDEBUG -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -MD -MT CMakeFiles/cmTC_883db.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_883db.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_883db.dir/testCCompiler.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_scalapack/scalapack/work/build/CMakeFiles/CMakeTmp/testCCompiler.c
:info:configure     Linking C executable cmTC_883db
:info:configure     /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_883db.dir/link.txt --verbose=1
:info:configure     /opt/local/bin/mpicc-mpich-mp -pipe -Os -Wno-implicit-function-declaration -DNDEBUG -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/local/lib/libgcc -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  CMakeFiles/cmTC_883db.dir/testCCompiler.c.o -o cmTC_883db 
:info:configure     ld: unknown options: -commons 
:info:configure     clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:configure     make[1]: *** [cmTC_883db] Error 1
:info:configure     make: *** [cmTC_883db/fast] Error 2

So now what's wront and what's the fix?

comment:8 Changed 7 months ago by cjones051073 (Chris Jones)

Personal profile settings will never affect macports builds. The fix is the port in question must be updated to explicitly use the classic linker option.

Last edited 7 months ago by cjones051073 (Chris Jones) (previous) (diff)

comment:9 Changed 7 months ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:10 Changed 6 months ago by barracuda156

Got the same error now on Sonoma.

comment:11 in reply to:  description ; Changed 5 months ago by barracuda156

Replying to murrayE:

Should be fixed now.

comment:12 in reply to:  11 Changed 5 months ago by murrayE

Replying to barracuda156:

Replying to murrayE:

Should be fixed now.

Thank you!

comment:13 Changed 3 months ago by murrayE

Seems fixed now with scalapack @2.2.0_2 under MacPorts 2.9.1.

Note: See TracTickets for help on using tickets.