This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem building Fortran program with g77


libg2c.a is certainly required, and a normal g77 installation would be
looking for it in the same way as if you had specified 'gcc *.o -lm'.  so it
is expected to be in the gcc library path.  It should be provided in any
binary installation of g77; the source is included in the gcc/g77 source
distributions and will install automatically when you build and install g77.
It is non unheard of for linux distros to omit libg2c.a, and there the most
straightforward way out is to build and install from source.
----- Original Message -----
From: <icaplan@planalytics.com>
To: <gcc-bugs@gcc.gnu.org>
Cc: <twalsky@planalytics.com>; <tboberg@planalytics.com>;
<smarusic@planalytics.com>
Sent: Friday, October 27, 2000 5:37 AM
Subject: Problem building Fortran program with g77


>
>
>
>
> Hello,
>       We are having difficulty building programs using g77. This is
probably not
>  a bug,
> but we are hoping you might be able to point us to the right place to make
our
> inquiry,
> if not tell us the cause of the problem. The version we are using, as
shown by
> 'g77 -v',
> is "GNU F77 version 2.95.2 19991024 (release) (sparc-sun-solaris2.7)".
>
>       We seem to be missing components which are needed by the g77
compiler.
> If we try to build the following very simple program, we get these error
> messages:
>
> Program (test.f):
>       program fcwords
>       print*,'Hello World!'
>       stop
>       end
>
> Command line:
>   g77 test.f
>
> Resulting output:
>   ld: fatal: file values-Xa.o: cannot open file: No such file or directory
>   ld: fatal: File processing errors. No output written to a.out
>   collect2: ld returned 1 exit status
>
>      We have been advised that the missing component may be library
libg2c.a,
> but
> we're not sure where this library is located or how to obtain it.
>
>      Thanks very much for your help.
>
> --   Ira Caplan
>       Planalytics
>       610-407-2937 (voice)
>       610-640-0147 (fax)
>       icaplan@planalytics.com
>
>
>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]