LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Joseph Hope (Joseph.Hope_at_[hidden])
Date: 2004-10-16 00:01:39


Jeff,

No worries. I tried an example with -I/usr/local/include as suggested,
and it compiled fine. Another good theory is that the real problem is
some sort of conflict with something else in /usr/local, but I tried
installing lam before anything else, and even now /usr/local is
practically empty. I've seen this bug appear elsewhere on this list, so
they may have other ideas.

Given my recent experiences with my own cross-platform package
(www.xmds.org), for which I wanted LAM-MPI in the first place, my first
guess is that this is an autoconf bug. I'd look for anything that is even
slightly different if 'prefix' is set manually than if it defaults to
/usr/local.

A year a go, I typed 'I hate autoconf' into Google, and discovered that
there were T-shirts!

Joe

> Sorry for the delay in replying to your original mail, but I don't
> think that I would have guessed that /usr/local was the problem. :-)
>
> What it sounds like is happening here is that adding
> -I/usr/local/include is mucking up the xlC include path.
>
> Can you try this -- with your working mpiCC, compile your app and
> manually add -I/usr/local/include near the front. If you get the same
> error as you were getting before, then this is the error.
>
> I don't know specifically *what* would cause this to be a problem, but
> we can start narrowing from there.
>
>
> On Oct 15, 2004, at 1:49 AM, Joseph Hope wrote:
>
>> After brute force testing, I managed to get LAM 7.1.1 to compile with
>> xlc++ on MacOSX. The actual fix is rather suggestive of a bug.
>>
>> Eric's suggestion:
>>
>> ./configure --prefix="/usr/local/lam-7.1.1" --with-trillium
>> --disable-tv --disable-tv-queue --with-memory-manager=none
>> --with-rsh="/usr/bin/ssh -x" --with-fc=/opt/ibmcmp/xlf/8.1/bin/xlf
>> FFLAGS='-O3 -qextname -qstrict -qarch=auto -qtune=auto -qcache=auto'
>> CC=/opt/ibmcmp/vacpp/6.0/bin/xlc CFLAGS='-O3 -qstrict -qarch=auto
>> -qtune=auto -qcache=auto' CXX=/opt/ibmcmp/vacpp/6.0/bin/xlc++
>> CXXFLAGS='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto'
>>
>> works, but this does not:
>>
>> ./configure --with-trillium --disable-tv --disable-tv-queue
>> --with-memory-manager=none --with-rsh="/usr/bin/ssh -x"
>> --with-fc=/opt/ibmcmp/xlf/8.1/bin/xlf FFLAGS='-O3 -qextname -qstrict
>> -qarch=auto -qtune=auto -qcache=auto' CC=/opt/ibmcmp/vacpp/6.0/bin/xlc
>> CFLAGS='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto'
>> CXX=/opt/ibmcmp/vacpp/6.0/bin/xlc++ CXXFLAGS='-O3 -qstrict -qarch=auto
>> -qtune=auto -qcache=auto'
>>
>> In other words, installing into /usr/local is what caused the C++
>> problem. Very strange. As a final aside, my final choice for
>> optimisation flags was:
>>
>> ./configure --disable-tv --disable-tv-queue --with-memory-manager=none
>> --with-rsh="/usr/bin/ssh -x" --without-fc CC=xlc CFLAGS='-O5 -qnoipa'
>> CXX=xlc++ CXXFLAGS='-O5 -qnoipa'
>>
>> Joe
>>
>> _______________________________________________
>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>>
>
> --
> {+} Jeff Squyres
> {+} jsquyres_at_[hidden]
> {+} http://www.lam-mpi.org/
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>