Opened 14 years ago

Closed 11 years ago

#27247 closed defect (fixed)

openmpi +gcc45 won't build in Mac OS X 10.5.8

Reported by: ksnelgrove@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: leopard Cc: jcharris@…, tenomoto (Takeshi Enomoto)
Port: openmpi

Description (last modified by mf2k (Frank Schima))

I've been trying to build openmpi using macports. The command:

% sudo port install openmpi +gcc45

Works fine on another machine with Mac OS X 10.6.4 but fails with 10.5.8 (Xcode 3.1.4). I've tried this on two separate machines with 10.5.8 with the same result and looked through most of the newer tickets without success.

The log (attached) shows the build does go very far and there are a number of warnings and errors in the configuration log. I'm not experienced enough to know how to fix these. Some highlights:

  1. --with-xgrid not recognized
  2. why does build proceed with gcc-4.0 when gcc45 is an install prerequisite?
  3. errors for a number of missing includes: vtf3.h BPatch.h f2c.h jvmti.h papi.h libcpc.h malloc.h ctool/ctool.h
  4. warnings with:
    • fno-strict-aliasing added to CFLAGS
    • finline-functions added to CXXFLAGS
    • fvisibility=hidden added to CFLAGS

The build proceeds to:

:info:build   CCLD   libopen-pal.la
:info:build   CCLD   libopen-pal-lt.la
:info:build ar: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_openmpi/work/build/opal/e
vent/.libs/libevent.a: Resource temporarily unavailable
:info:build ar: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_openmpi/work/build/opal/m
ca/base/.libs/libmca_base.a: Resource temporarily unavailable
:info:build make[2]: *** [libopen-pal.la] Error 1

I've tried to build with the default: openmpi +gcc44 but get a similar errors

Attachments (2)

main.log (220.9 KB) - added by ksnelgrove@… 14 years ago.
openmpi build log
Portfile.diff (310 bytes) - added by tenomoto (Takeshi Enomoto) 13 years ago.

Download all attachments as: .zip

Change History (11)

Changed 14 years ago by ksnelgrove@…

Attachment: main.log added

openmpi build log

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…

comment:2 Changed 14 years ago by jcharris@…

I have encountered a very similar error on a Mac Pro running OS X Server 10.5.8 (Xcode 3.1.2). In my case, I am just building openmpi with gcc44, but I believe the situation is similar. I don't think any of the 4 messages mentioned are critical to building openmpi. In my case, the "resource temporarily unavailable" was: '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_openmpi/work/build/orte/mca/ess/.libs/libmca_ess.a' which I can confirm exists. In my case, attempting to install it three times in a row, it eventually proceeds (i.e., sometimes "sudo port install openmpi" works, sometimes it doesn't).

I can tell that during the build process multiple cores are being used in parallel, suggesting to me that perhaps at some point two processes are trying to access the file at the same time, thus explaining the random nature of whether it works or not, but I can't confirm this, and a fix to this problem would be most welcome. It is frustrating to uninstall something that was working, and reinstall, and suddenly have problems.

comment:3 Changed 14 years ago by jcharris@…

Cc: jcharris@… added

Cc Me!

comment:4 in reply to:  2 Changed 14 years ago by serra@…

I have had the same issue and agree with jcharris, macports eventually worked on the 3rd try. In my case I was installing openmpi +gcc45.

comment:5 Changed 14 years ago by rbeyer (Ross Beyer)

Just supporting previous posters. Attempting to port install openmpi (without a variant specifier) on my 10.5.8 system also resulted in several of these 'Resource temporarily unavailable' errors. I tried uninstalling and cleaning several times but kept getting these errors. Upon finally finding this ticket, I just tried repeatedly port installing, and it took three times of issuing the same command (port install) which got farther every time, and finally installed.

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Keywords: leopard added

comment:7 Changed 13 years ago by tenomoto (Takeshi Enomoto)

I encountered the same problem with +g95, which means that the choice of the fortran compiler is not an issue. I was able to successfully complete the build process with

$ sudo port -d install openmpi +g95 use_parallel_build=no

With the patch I was able to build +gcc44 (default_variants).

Changed 13 years ago by tenomoto (Takeshi Enomoto)

Attachment: Portfile.diff added

comment:8 Changed 13 years ago by jmroot (Joshua Root)

Cc: takeshi@… added

Is this still needed with 1.5.5? If so, you should just go ahead and commit the fix.

comment:9 Changed 11 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: newclosed

Should be fixed now with the new port groups.

Note: See TracTickets for help on using tickets.