#68552 closed defect (duplicate)
openmpi-default @4.1.4: error: Could not determine global symbol label prefix
Reported by: | rmclaren | Owned by: | mascguy (Christopher Nielsen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | sonoma | Cc: | |
Port: | openmpi |
Description (last modified by rmclaren)
Installation of openmpi-default port fails on Intel MacOS Ventura 13.6 (Xcode Version 14.3) with the following error:
Error: Failed to configure openmpi-default: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_openmpi/openmpi-default/work/build/config.log Error: Failed to configure openmpi-default: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_openmpi/openmpi-default/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port openmpi-default failed
Some excerpts from the config.log file:
Apple clang version 15.0.0 (clang-1500.0.40.1) Target: x86_64-apple-darwin22.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin configure:6571: $? = 0 configure:6560: /usr/bin/clang -v >&5 Apple clang version 15.0.0 (clang-1500.0.40.1) Target: x86_64-apple-darwin22.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin configure:6571: $? = 0 configure:6560: /usr/bin/clang -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:6571: $? = 1 configure:6560: /usr/bin/clang -qversion >&5 clang: error: unknown argument '-qversion'; did you mean '--version'? clang: error: no input files
configure:7146: /usr/bin/clang -E -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk conftest.c conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^~~~~~~~~~~~~~~~~~ 1 error generated. configure:7146: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "Open MPI" | #define PACKAGE_TARNAME "openmpi" | #define PACKAGE_VERSION "4.1.4" | #define PACKAGE_STRING "Open MPI 4.1.4" | #define PACKAGE_BUGREPORT "http://www.open-mpi.org/community/help/" | #define PACKAGE_URL "" | #define OPAL_ARCH "x86_64-apple-darwin22.6.0" | /* end confdefs.h. */ | #include <ac_nonexistent.h>
conftest.c:53:10: fatal error: 'minix/config.h' file not found #include <minix/config.h> ^~~~~~~~~~~~~~~~ 1 error generated. configure:7494: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "Open MPI" | #define PACKAGE_TARNAME "openmpi" | #define PACKAGE_VERSION "4.1.4" | #define PACKAGE_STRING "Open MPI 4.1.4" | #define PACKAGE_BUGREPORT "http://www.open-mpi.org/community/help/" | #define PACKAGE_URL "" | #define OPAL_ARCH "x86_64-apple-darwin22.6.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include <stdio.h> | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include <stdlib.h> | # include <stddef.h> | #else | # ifdef HAVE_STDLIB_H | # include <stdlib.h> | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include <memory.h> | # endif | # include <string.h> | #endif | #ifdef HAVE_STRINGS_H | # include <strings.h> | #endif | #ifdef HAVE_INTTYPES_H | # include <inttypes.h> | #endif | #ifdef HAVE_STDINT_H | # include <stdint.h> | #endif | #ifdef HAVE_UNISTD_H | # include <unistd.h> | #endif | #include <minix/config.h> configure:7494: result: no configure:7494: checking minix/config.h presence configure:7494: /usr/bin/clang -E -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk conftest.c conftest.c:20:10: fatal error: 'minix/config.h' file not found #include <minix/config.h> ^~~~~~~~~~~~~~~~ 1 error generated.
Attachments (2)
Change History (13)
comment:1 Changed 13 months ago by rmclaren
Description: | modified (diff) |
---|
comment:2 Changed 13 months ago by rmclaren
Description: | modified (diff) |
---|
comment:3 Changed 13 months ago by kencu (Ken)
Changed 13 months ago by rmclaren
Attachment: | config.log added |
---|
Changed 13 months ago by rmclaren
comment:5 follow-ups: 7 10 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | sonoma added |
---|---|
Owner: | set to mascguy |
Status: | new → assigned |
Summary: | Installing openmpi-defualt fails. → openmpi-default @4.1.4: error: Could not determine global symbol label prefix |
Version: | → 2.8.1 |
main.log says:
:debug:sysinfo Xcode 14.3, CLT 15.0.0.0.1.1694021235
So although you have Xcode 14.3, you have the Xcode 15 version of the command line tools, and openmpi-default port does not specify use_xcode yes
so it will use the CLT, not Xcode. We've seen Xcode 15 or its CLT cause a lot of problems. Maybe this is one of them.
The main.log also said the problem was:
:info:configure checking prefix for global symbol labels... none :info:configure configure: error: Could not determine global symbol label prefix
We usually recommend you use a matched set of Xcode and CLT, so your options are to upgrade to Xcode 15 (and keep experiencing this bug) or downgrade the CLT to 14.3 (and hopefully fix it).
comment:6 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Duplicate of #68226 which says what the fix is.
comment:7 follow-up: 8 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign:
so your options are to upgrade to Xcode 15 (and keep experiencing this bug) or downgrade the CLT to 14.3 (and hopefully fix it).
Actually macOS Sonoma requires Xcode 15, so you cannot downgrade to Xcode 14.3; you must upgrade.
comment:8 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign:
Actually macOS Sonoma requires Xcode 15, so you cannot downgrade to Xcode 14.3; you must upgrade.
Excuse me; I misread; you're on Ventura so downgrading Xcode to 14.3 is an option.
comment:9 Changed 13 months ago by rmclaren
Downgrading the command line tools worked. Thanks for your time and advice!
comment:10 follow-up: 11 Changed 12 months ago by astroboylrx (Rixin Li)
Replying to ryandesign:
We usually recommend you use a matched set of Xcode and CLT, so your options are to upgrade to Xcode 15 (and keep experiencing this bug) or downgrade the CLT to 14.3 (and hopefully fix it).
I just upgraded to macOS Sonoma 14.1.1, and followed the migration procedure. The Xcode.app About page shows that it is version 15.0.1. However, the main.log for installing openmpi-default
still shows :debug:sysinfo Xcode 14.2, CLT 15.0.0.0.1.1694021235
. How can I let MacPorts know that Xcode is newer now? Thanks a lot in advance!
comment:11 Changed 12 months ago by astroboylrx (Rixin Li)
Replying to astroboylrx:
Replying to ryandesign:
We usually recommend you use a matched set of Xcode and CLT, so your options are to upgrade to Xcode 15 (and keep experiencing this bug) or downgrade the CLT to 14.3 (and hopefully fix it).
I just upgraded to macOS Sonoma 14.1.1, and followed the migration procedure. The Xcode.app About page shows that it is version 15.0.1. However, the main.log for installing
openmpi-default
still shows:debug:sysinfo Xcode 14.2, CLT 15.0.0.0.1.1694021235
. How can I let MacPorts know that Xcode is newer now? Thanks a lot in advance!
Too add a bit more info, some other ports can correctly detect the Xcode version, for example, main.log from clang-11
shows :debug:sysinfo Xcode 15.0.1, CLT 15.0.0.0.1.1694021235
. Nevertheless, clang-11
also fails.
I know it might look like those are the errors, but those aren't actually the errors that caused your build to fail. Those are normal, run-of-the-mill configure checks doing their thing.
Please attach the main.log (and if you can, the config.log) and someone will take a look.