Home > Archive > Fortran > September 2005 > Problems with NAG f95
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problems with NAG f95
|
|
|
| Hi,
I just installed NAG f95. Usually there are no problems, but this time
(on a new computer) I get the following error message when I try to
compile e.g. f90_util:
/usr/local/lib/NAGWare> f95 -o f90_util f90_util.f90
/usr/local/lib/NAGWare/libf95.so: could not read symbols: File in wrong
format
collect2: ld returned 1 exit status
What does that mean?
This is the version of f95:
~/NAGWare_f95-glibc21> f95 -V
NAGWare Fortran 95 compiler Release 4.0a(304)
Copyright 1990-1999 The Numerical Algorithms Group Ltd., Oxford, U.K.
Thanks a lot,
Markus
| |
| Jan Vorbrüggen 2005-09-13, 3:57 am |
| > /usr/local/lib/NAGWare/libf95.so: could not read symbols: File in wrong
> format
> collect2: ld returned 1 exit status
Most compilers use the OS's linker/loader, the "ld" mentioned in the last
line above. There are several different formats for object files and dynamic
libraries (the .so file mentioned in the first line) around for the various
Unix versions. It appears you have installed the compiler on a system that
doesn't support the .so format supplied by NAG. However, given that all the
rest of the compiler actually worked, that is quite strange, as I would
expect, for instance, the compiler itself to be using .so files as well.
Jan
| |
| Bart Vandewoestyne 2005-09-13, 3:57 am |
| On 2005-09-13, Venni <Vennebusch@uni-bonn.de> wrote:
>
> This is the version of f95:
> ~/NAGWare_f95-glibc21> f95 -V
> NAGWare Fortran 95 compiler Release 4.0a(304)
> Copyright 1990-1999 The Numerical Algorithms Group Ltd., Oxford, U.K.
Not that it's really a solution to your problem, but i just
wanted to mention that the current version of the NAGWare
compiler for Intel and compatible (x86) 32-bit Linux systems is
bartv@vonneumann:~$ f95 -V
NAGWare Fortran 95 compiler Release 5.0(361)
Copyright 1990-2004 The Numerical Algorithms Group Ltd., Oxford, U.K.
Yours is quite `old'... I don't know if you have a license for the
newer version, but if you do, you might want to consider upgrading
your compiler... and maybe that will also automagically solve
your problem...
Regards,
Bart
--
"Share what you know. Learn what you don't."
| |
| Richard E Maine 2005-09-13, 6:59 pm |
| In article <1126598601.103035.215040@g47g2000cwa.googlegroups.com>,
"Venni" <Vennebusch@uni-bonn.de> wrote:
> I just installed NAG f95.
....
> /usr/local/lib/NAGWare> f95 -o f90_util f90_util.f90
> /usr/local/lib/NAGWare/libf95.so: could not read symbols: File in wrong
> format
My first suggestion would be to contact NAG. This isn't a question about
the Fortran language. It is a vendor support question about a particular
product. Furthermore, it is a product that is actively maintained and
has current vendor support. People on this newsgroup have been known to
be able to answer such questions, but it is still the wrong place to ask
first.
If I had to make a random guess, I might wonder whether the particular
version of the compiler installed was not compatible with the particular
version of the OS on that system. But that's a pretty random guess
without a lot of data to support it. NAG would be where to get a real
answer, assuming that you have a valid license.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
| |
|
| Thanks a lot for your help! I still didn't fix the problem. I will try
to get a newer version.
Nevertheless, perhaps some other hints will be useful:
I am using Suse Linux 9.3. Could it be that another library (e.g. glibc
(my version is 2.3.4-23)) is too new for that compiler?
I can't compile any fortran program. The error message occurs even with
the easiest code...
But, I can compile code (-c), but I can't link (-o) the .o-files...
Regards, Markus
| |
| Bart Vandewoestyne 2005-09-14, 7:00 pm |
| On 2005-09-14, Venni <Vennebusch@uni-bonn.de> wrote:
> Thanks a lot for your help! I still didn't fix the problem. I will try
> to get a newer version.
Just in case you didn't know and want to save yourself some money:
there are now also freely available and Open Source Fortran 90/95 compilers:
http://g95.sourceforge.net/
http://gcc.gnu.org/fortran/
Regards,
Bart
--
"Share what you know. Learn what you don't."
| |
|
| > Just in case you didn't know and want to save yourself some money:
> there are now also freely available and Open Source Fortran 90/95 compilers:
>
> http://g95.sourceforge.net/
> http://gcc.gnu.org/fortran/
Thanks! I found the solution:
I am working on an AMD-64-PC and I had the wrong NAG-compiler (for
32-bit). After installing the new version everything is fine!
|
|
|
|
|