This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Unsuccessful build of 3.1 on AIX 5.1
- From: Walter Landry <wlandry at ucsd dot edu>
- To: gcc-help at gnu dot org
- Date: Sat, 18 May 2002 10:50:09 -0700 (PDT)
- Subject: Unsuccessful build of 3.1 on AIX 5.1
Greetings,
I'm having some problems getting gcc 3.1 to install on my AIX 5.1
machine (uname -a gives AIX b80n01 1 5 00043C7F4C00). It actually
compiles everything OK, I think. The only errors I could find were
things like
gmake[2]: [stage1-start] Error 1 (ignored)
There were no stage3 errors. However, when I gmake install, at the
end of output I get
gmake[2]: Entering directory `/rmount/work/ux450362/gcc-3.1_build/powerpc-ibm-aix5.0.0.0/libf2c/libU77'
gmake[2]: *** No rule to make target `all'. Stop.
gmake[2]: Leaving directory `/rmount/work/ux450362/gcc-3.1_build/powerpc-ibm-aix5.0.0.0/libf2c/libU77'
gmake[1]: *** [u77] Error 2
gmake[1]: Leaving directory `/rmount/work/ux450362/gcc-3.1_build/powerpc-ibm-aix5.0.0.0/libf2c'
gmake: *** [install-target-libf2c] Error 2
This doesn't really bother me, since the C++ stuff seems to install
fine. I can create executables and run them, so I'm happy enough.
However, when I try to run MPI programs, there seem to be problems.
For example, with the simple program
#include <iostream>
#include "mpi.h"
using namespace std;
int main(int argc, char *argv[])
{
MPI_Init(&argc,&argv);
cout << "Hello" << endl;
MPI_Finalize();
return 0;
}
I compile it with the command
/work/ux450362/gcc-3.1_bin/bin/g++ simple.C -o simple -L/usr/lpp/ppe.poe/lib -I/usr/lpp/ppe.poe/include -lmpi
and then run it
poe ./simple -procs 1 -hfile $HOME/host.list -resd no
I get the output
ATTENTION: 0031-379 Pool setting ignored when hostfile used
Hello
ERROR: 0031-250 task 0: Segmentation fault
The ATTENTION line is, I think, of no concern. The basic problem is
that the MPI_Finalize() command is segfaulting. This doesn't happen
with the IBM compiler. Investigating further, I find that a lot of
the MPI commands return garbage (i.e. the number of nodes is
-124234234 or something like that). Does anyone know if gcc is
compatible with IBM's MPI implementation?
I've also tried using the -mpe option, but it complains that
collect2: /usr/lpp/ppe.poe/lib/crt0.o: cannot open as COFF file
That file doesn't exit. Should it?
Thanks,
Walter Landry
wlandry@ucsd.edu