[Beowulf] Re: static pvm library won't link anymore

David Mathog mathog at caltech.edu
Mon Jul 9 18:34:36 EDT 2007

> Turns out that the difficulties getting pvm to run were not just
> pvm problems.  There is a bizarre problem where every program, even
> "Hello World" built on Mandriva 2007.1 (gcc 4.1.2,2.6.17-14mdv) 
> will not run on Mandriva 2007.0 (gcc 4.1.1,

Google with strings from the back trace messages showed
that this was a known issue. New distributions such as Mandriva
2007.1 and FC7 default to a  new linker mode:


Unfortunately ld in older distros has no clue what this is
and treats the binary as if it had the older


resulting in "floating point exception" (which is a bit of a
red herring in terms of figuring out why the program won't run)
and a core dump.  The newer version of ld still knows
about the older hash-style, so old binaries work on the newer

To build a binary on the newer system that can run on the
older one use either:

 gcc -g  -o hello -Wl,--hash-style=sysv hello.c


 gcc -g  -o hello -Wl,--hash-style=both hello.c

Or upgrade every machine in your cluster to a "newer" release.  In the
long run, this might be the easiest choice.


David Mathog
mathog at caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf


More information about the Beowulf mailing list