Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Kraig Winters (kraig_at_[hidden])
Date: 2006-01-26 11:35:51


I believe that
> ld: Undefined symbols:
> _fprintf$LDBLStub
can be fixed by adding -L/usr/lib -lSystemStubs to your link statement.
For xlf, this can be done once and for all in the compiler configuration
file. I don't know if something similar can be done for g95. This
problem
seems to have started w/ 10.4.
Kraig

On Jan 26, 2006, at 4:57 AM, Jeff Squyres wrote:

> It looks like your g95 may not be installed correctly. Here's the
> relevant information from the config.log:
>
> configure:32697: gcc -O3 -DNDEBUG -fno-strict-aliasing -I. -c
> conftest.c
> configure:32704: $? = 0
> configure:32714: g95 conftestf.f90 conftest.o -o conftest
> ld: Undefined symbols:
> _fprintf$LDBLStub
>
> That is, configure tried to compile a .f90 file and link it with a C-
> compiled .o file (normally, this should work just fine). In
> performing the final link, however, it did not find the symbol fprintf
> ().
>
> This seems to indicate that the g95 compiler was not able to find the
> C libraries properly.
>
> Can you verify that everything is installed properly, and that g95 is
> able to link to C libraries?
>
>
>
> On Jan 24, 2006, at 3:11 PM, Michael Kluskens wrote:
>
>> Building Open MPI 1.0.1 on a PowerMac running OS X 10.4.4 using
>> 1) Apple gnu compilers from Xcode 2.2.1
>> 2) fink-installed g77
>> 3) latest g95 "G95 (GCC 4.0.1 (g95!) Jan 23 2006)"
>> (the binary from G95 Home)
>>
>> setenv F77 g77
>> setenv FC g95
>> ./configure
>>
>> In the G95 section of the configure I get
>>
>> checking size of FORTRAN integer(selected_int_kind(2))... unknown
>> configure: WARNING: *** Problem running configure test!
>>
>> Gzipped config.log attached.
>>
>> If I change to the older Fink g95 "G95 (GCC 4.0.2 (g95!) Dec 19
>> 2005)" I don't see this problem
>>
>> System info:
>> uname -a
>> Darwin 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan 3 18:22:10 PST
>> 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power Macintosh
>> powerpcgcc --version
>> powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 (Apple Computer, Inc.
>> build 5026)
>>
>> g++ --version
>> powerpc-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
>> build 5250)
>>
>> g77 --version
>> GNU Fortran (GCC) 3.4.3
>>
>> Details on latest G95 build:
>> g95 -v
>> Using built-in specs.
>> Target:
>> Configured with: /Users/andy/g95/osx/gcc.osx/configure --enable-
>> languages=c
>> Thread model: posix
>> gcc version 4.0.1 (g95!) Jan 23 2006
>>
>> Details on older Fink g95 build:
>> g95 -v
>> Using built-in specs.
>> Target:
>> Configured with: ../configure --prefix=/sw/lib/gcc-lib/powerpc-
>> apple-darwin8/4.0.2 --with-gmp=/sw --enable-languages=c --disable-
>> checking --with-included-gettext
>> Thread model: posix
>> gcc version 4.0.2 (g95!) Dec 19 2005
>>
>>
>> <config.log.gz>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> --
> {+} Jeff Squyres
> {+} The Open MPI Project
> {+} http://www.open-mpi.org/
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users