New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #27247 (new defect)

Opened 3 years ago

Last modified 13 months ago

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@…, takeshi@…
Port: openmpi

Description (last modified by macsforever2000@…) (diff)

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

main.log (220.9 KB) - added by ksnelgrove@… 3 years ago.
openmpi build log
Portfile.diff (310 bytes) - added by takeshi@… 17 months ago.

Change History

Changed 3 years ago by ksnelgrove@…

openmpi build log

comment:1 Changed 3 years ago by macsforever2000@…

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

comment:2 follow-up: ↓ 4 Changed 2 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 2 years ago by jcharris@…

  • Cc jcharris@… added

Cc Me!

comment:4 in reply to: ↑ 2 Changed 2 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 2 years ago by rbeyer@…

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 20 months ago by jmr@…

  • Keywords leopard added

comment:7 Changed 17 months ago by takeshi@…

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 17 months ago by takeshi@…

comment:8 Changed 13 months ago by jmr@…

  • Cc takeshi@… added

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

Note: See TracTickets for help on using tickets.