Jump to content

problem of compilation with g77 or f77


Guest appopson
 Share

Recommended Posts

Guest appopson

hiiii

I am new in linux and I am using mandrake 10.1

When compiling fortran program with g77 the message

ld: crtbegin.o: No such file: No such file or directory

I don't how to do.

 

Thanks for your help

 

appopson@yahoo.fr

Link to comment
Share on other sites

Guest appopson

Bonjour à tous,

je suis nouveau dans le monde linux. Je disposais de la version 10.0 de mandrake, j'ai décidé de la mettre à jour avec la version 10.1.

Mais depuis lors je ne parviens plus à compiler des programmes FORTRAN avec g77.

Voici le message qui apparait

 

ld: crtbegin.o: No such file: No such file or directory

 

Quelqu'un peut il me venir en aide? Que doit je faire?

 

merci

:help:

appopson@yahoo.fr

Link to comment
Share on other sites

  • 3 weeks later...
Guest SpruceMoose

Hi,

 

I recently upgraded to 10.1 from 10.0, and am having similar problems...here

are some details:

 

f77 -v -o blah blah.f

 

Driving: f77 -v -o blah blah.f -lfrtbegin -lg2c -lm -shared-libgcc

Using built-in specs.

Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,ada,f77,objc,java,pascal --host=i586-mandrake-linux-gnu --with-system-zlib

Thread model: posix

gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)

/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/f771 blah.f -quiet -dumpbase blah.f -auxbase blah -version -o /home/sprucemoose/tmp/cceAudB0.s

GNU F77 version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) (i586-mandrake-linux-gnu)

compiled by GNU C version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk).

GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=129140

as -V -Qy -o /home/sprucemoose/tmp/ccEt8RQ2.o /home/sprucemoose/tmp/cceAudB0.s

GNU assembler version 2.15.90.0.3 (i586-mandrake-linux-gnu) using BFD version 2.15.90.0.3 20040415

ld --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o asc /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crt1.o /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crti.o crtbegin.o -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2 -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../.. /home/sprucemoose/tmp/ccEt8RQ2.o -lfrtbegin -lg2c -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc crtend.o /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crtn.o

ld: crtbegin.o: No such file: No such file or directory

 

I notice that in the line above where crtbegin.o is mentioned, there is no path given to

the file, so maybe that's why it cant be found. Any ideas how I could tell it where to look?

 

If I do a gcc -fversion, I get

 

gcc (GCC) 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)

Copyright © 2004 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

f77 -fversion produces

 

GNU Fortran (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)

Copyright © 2002 Free Software Foundation, Inc.

 

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.

You may redistribute copies of GNU Fortran

under the terms of the GNU General Public License.

For more information about these matters, see the file named COPYING

or type the command `info -f g77 Copying'.

 

 

Is it strange that the f77 version mentions Mandrake 10.0.....?

 

This worked fine on 10.0, so I guess something must have happened when

I updated. Any help much appreciated.

 

SpruceMoose.

Link to comment
Share on other sites

Guest SpruceMoose

Got the problem fixed. When we upgraded to 10.1, for some reason, gcc got

updated to 3.4.1, but g77 was still at 3.3.2. I downloaded the following two

rpms from the Mandriva site, (<local_mirror>/Mandrakelinux/official/10.1/i586/media/main/)

 

libf2c0-3.4.1-4mdk.i586.rpm

gcc-g77-3.4.1-4mdk.i586.rpm

 

and installed them in this order. Everything works fine now. (gcc-g77 is dependent

on libf2c, so install libf2c first).

 

SpruceMoose.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...