Opened 23 months ago

Closed 21 months ago

Last modified 21 months ago

#65337 closed defect (fixed)

openmpi @4.1.4: subports openmpi-gcc7 and openmpi-gcc9: builds failing for 10.7 and earlier

Reported by: mascguy (Christopher Nielsen) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: cjones051073 (Chris Jones), kencu (Ken)
Port: openmpi-gcc7 openmpi-gcc9

Description

While previous releases of openmpi-gcc7 and openmpi-gcc9 build successfully for 10.7 and earlier, the latest version fails on our buildbots:

checking whether the C compiler works... no
configure: error: C compiler cannot create executables

Currently travelling, without access to my suite of macOS VMs, so I can't try to reproduce this locally. But I'm hoping it's something related to stdlib, such as this prior issue with gdal:

59989 - gdal +gcc: configure: error: C compiler cannot create executables

Attachments (1)

openmpi-gcc7-10.7-config.log (65.2 KB) - added by mascguy (Christopher Nielsen) 21 months ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 21 months ago by mascguy (Christopher Nielsen)

Reviewing config.log, it looks like the following is occurring:

configure:6591: checking whether the C compiler works
configure:6613: /opt/local/bin/gcc-mp-7 -pipe -Os -I/opt/local/include/LegacySupport -arch x86_64 -I/opt/local/include/L
egacySupport -Wl,-headerpad_max_install_names -lMacportsLegacySupport conftest.c  >&5
ld: library not found for -lgcc_ext.10.5
collect2: error: ld returned 1 exit status

This appears to be the same problem covered by issue:65055, so need to do more digging.

comment:2 Changed 21 months ago by mascguy (Christopher Nielsen)

Cc: cjones051073 kencu added

Chris/Ken, any thoughts, per issue:65055?

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

please attach here, if you can, the conftest.c referred to above

comment:4 Changed 21 months ago by Chris Jones <jonesc@…>

In 61e01e26b3cb2bbbdee8920c44e9e49fc4154f73/macports-ports (master):

libgcc9: Fix build of runtime on OSX10.7 and older
See: #65337
See: #65055

Changed 21 months ago by mascguy (Christopher Nielsen)

comment:5 in reply to:  3 Changed 21 months ago by mascguy (Christopher Nielsen)

Replying to cjones051073:

please attach here, if you can, the conftest.c referred to above

Full configure log attached. But it looks like that test program is:

configure: failed program was:
98	| /* confdefs.h */
99	| #define PACKAGE_NAME "Open MPI"
100	| #define PACKAGE_TARNAME "openmpi"
101	| #define PACKAGE_VERSION "4.1.4"
102	| #define PACKAGE_STRING "Open MPI 4.1.4"
103	| #define PACKAGE_BUGREPORT "http://www.open-mpi.org/community/help/"
104	| #define PACKAGE_URL ""
105	| #define OPAL_ARCH "x86_64-apple-darwin11.4.2"
106	| /* end confdefs.h.  */
107	|
108	| int
109	| main ()
110	| {
111	|
112	|   ;
113	|   return 0;
114	| }

comment:6 Changed 21 months ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: assignedclosed

After building libgcc9 locally with the latest commit from @cjones, the problem is resolved. Also queued rebuilds for 10.7 and earlier on the buildbots.

Thanks for the quick fix Chris!

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

No need to manually queue rebuilds, the revbump would have handled it.

comment:8 in reply to:  7 Changed 21 months ago by mascguy (Christopher Nielsen)

Replying to cjones051073:

No need to manually queue rebuilds, the revbump would have handled it.

Rebuilds were queued for openmpi-gcc7 and openmpi-gcc9, not libgcc9. ;-)

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

My commit above ups the revision for libgcc9, so a rebuild would have been automatic.

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

comment:10 Changed 21 months ago by cjones051073 (Chris Jones)

Sorry, I see what you are saying now. My mistake….

Note: See TracTickets for help on using tickets.