Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: Re: [hwloc-users] Patch to disable GCC __builtin_ operations
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-06-08 17:58:43

Josh Hursey, le Wed 08 Jun 2011 22:28:53 +0200, a écrit :
> I hit a problem when installing hwloc statically on a machine with a
> slightly different gcc support libraries and OSs on the head/compile
> node versus the compute nodes. The builtin functions would cause hwloc
> to segfault when run on the compute nodes. By disabling the builtin
> operations, and using the more portable techniques seemed to do the
> trick.

This is very odd. How does it segfault exactly? Unless you are (or
your distribution is) using an -march=something option, gcc is not
supposed to produce code which can not be run on another machine.