Hello,
On Wednesday 23 November 2005 14:38, Max Manfrin wrote:
>       I have now tried to configure using the following command line:
>
> ./configure --with-mpi-param_check=always --enable-mpi-threads --
> disable-f77 | tee config.LOG
>
>       but I still got the same error at the same point!!!!
Yes, but due to a different reason, this time ,-]

configure:20663: gfortran  conftestf.f conftest.o -o conftest
ld: can't open: crt2.o (No such file or directory, errno = 2)
ld: can't locate file for: -lgcc_s

The compiler cannot link, as it doesn't find the corresponding library 
libgcc_s.so...

So, You use as gcc:
  powerpc-apple-darwin8-g++-4.0.1
and as gfortran:
configure:20145: gfortran -v </dev/null >&5
Using built-in specs.
Target: powerpc-apple-darwin8
/Build/apple/gcc/build/obj/src/configure
gcc version 4.0.0 (Apple Computer, Inc. build 5202)


I don't know OS X, but they seem to be compiled differently, did You install 
gcc/gfortran newly?
/private/var/tmp/gcc/gcc-5247.obj~4/src/configure 
gcc version 4.0.1 (Apple Computer, Inc. build 5247)


Could You do me a favor and create the two files as in the configure script:
rusraink@pcglap12:/tmp> cat conftest.c
#include <stdio.h>
#include <stdlib.h>


#ifdef __cplusplus
extern "C" {
#endif
void size_(char *a, char *b)
{
    int diff = (int) (b - a);
    FILE *f=fopen("conftestval", "w");
    if (!f) exit(1);
    fprintf(f, "%d\n", diff);
}
#ifdef __cplusplus
}
#endif


and
rusraink@pcglap12:/tmp> cat conftestf.f
       program fsize
       external SIZE
       LOGICAL x(2)
       call SIZE(x(1),x(2))
       end

Then compile the first:
rusraink@pcglap12:/tmp> gcc -c conftest.c
Then compile and link both:
rusraink@pcglap12:/tmp> gfortran conftestf.f conftest.o -o conftest

This should generate conftest, which You may execute:
rusraink@pcglap12:/tmp> ./conftest

This produces the above-mentioned conftestval file:
rusraink@pcglap12:/tmp> cat conftestval
4

Which equals the size of one LOGICAL, here 4 bytes.


-- 
---------------------------------------------------------------------
Dipl.-Inf. Rainer Keller       email: kel...@hlrs.de
  High Performance Computing     Tel: ++49 (0)711-685 5858
    Center Stuttgart (HLRS)        Fax: ++49 (0)711-678 7626
  POSTAL:Nobelstrasse 19             http://www.hlrs.de/people/keller
  ACTUAL:Allmandring 30, R. O.030
  70550 Stuttgart

Reply via email to