Opened 14 months ago
Closed 6 months ago
#68294 closed defect (fixed)
parmetis @20230326_0+mpich: ld: unknown options: -commons
Reported by: | murrayE | Owned by: | catap (Kirill A. Korinsky) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | sonoma | Cc: | |
Port: | parmetis |
Description (last modified by cjones051073 (Chris Jones))
From main.log:
:info:configure -- The C compiler identification is AppleClang 15.0.0.15000040 :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_parmetis/parmetis/work/build/CMakeFiles/CMakeTmp :info:configure :info:configure Run Build Command(s):/usr/bin/make -f Makefile cmTC_5bad5/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_5bad5.dir/build.make CMakeFiles/cmTC_5bad5.dir/build :info:configure Building C object CMakeFiles/cmTC_5bad5.dir/testCCompiler.c.o :info:configure /opt/local/bin/mpicc-mpich-mp -pipe -Os -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_5bad5.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_5bad5.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_5bad5.dir/testCCompiler.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_parmetis/parmetis/work/build/CMakeFiles/CMakeTmp/testCCompiler.c :info:configure Linking C executable cmTC_5bad5 :info:configure /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5bad5.dir/link.txt --verbose=1 :info:configure /opt/local/bin/mpicc-mpich-mp -pipe -Os -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_5bad5.dir/testCCompiler.c.o -o cmTC_5bad5 :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_5bad5] Error 1 :info:configure make: *** [cmTC_5bad5/fast] Error 2
Attachments (2)
Change History (11)
Changed 14 months ago by murrayE
comment:1 Changed 14 months ago by catap (Kirill A. Korinsky)
See: #68225
I assume that it is the same issue.
comment:3 Changed 14 months ago by cjones051073 (Chris Jones)
Description: | modified (diff) |
---|
comment:4 Changed 14 months ago by cjones051073 (Chris Jones)
Keywords: | sonoma added; configure fails removed |
---|
comment:5 Changed 14 months ago by murrayE
For some port (I forget which one) affected by this Xcode 15 linker issue, somebody suggested downgrading to Xcode 14. But that's a no-go if one is already running macOS Sonoma - that being the reason for reinstalling ports in the first place!
The problem is that one can replace Xcode 15 by Xcode 14.3.1 but the latter will not run, giving a message that a newer version of Xcode is required for this new macOS version!
So a Catch-22.
comment:6 Changed 14 months ago by murrayE
I added to my ~/.profile
:
export MACOSX_DEPLOYMENT_TARGET=12 export OTHER_LDFLAGS=-Wl,-ld_classic
After restarting the shell, I tried to install ipopt+mpich, which has parmetis+mpich as a dependency. But configure still failed.
Is this a different issue?
From the log:
:info:configure -- The C compiler identification is AppleClang 15.0.0.15000040 :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_parmetis/parmetis/work/build/CMakeFiles/CMakeTmp :info:configure :info:configure Run Build Command(s):/usr/bin/make -f Makefile cmTC_519b3/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_519b3.dir/build.make CMakeFiles/cmTC_519b3.dir/build :info:configure Building C object CMakeFiles/cmTC_519b3.dir/testCCompiler.c.o :info:configure /opt/local/bin/mpicc-mpich-mp -pipe -Os -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_519b3.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_519b3.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_519b3.dir/testCCompiler.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_parmetis/parmetis/work/build/CMakeFiles/CMakeTmp/testCCompiler.c :info:configure Linking C executable cmTC_519b3 :info:configure /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_519b3.dir/link.txt --verbose=1 :info:configure /opt/local/bin/mpicc-mpich-mp -pipe -Os -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_519b3.dir/testCCompiler.c.o -o cmTC_519b3 :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_519b3] Error 1
comment:7 Changed 9 months ago by murrayE
Seems fixed now with parmetis @20230326_0 under MacPorts 2.9.1
comment:8 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)
Cc: | kirill@… removed |
---|---|
Owner: | set to catap |
Status: | new → assigned |
Summary: | parmetis-20230326_0+mpich.darwin_23.arm6 configure fails → parmetis @20230326_0+mpich: ld: unknown options: -commons |
comment:9 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
It was probably fixed by [088fe8bf449e3a2d956e52fefd0cccfeb371f481/macports-ports] and [fc229044d4132ac1fddaeeb07b07cf14d52ba4dd/macports-ports]; see #68346.
main.log