in reply to Re: (OT) make: g77: Command not found
in thread (OT) make: g77: Command not found

I have installed g77. "which g77" now gives

"usr/local/bin/g77"

but when i try to "make all" again its giving error

g77 -O2 -init-local-zero -fno-automatic io.o gtop.f -o gtop /usr/local/bin/g77: /usr/local/bin/g77: cannot execute binary file make: *** [gtop] Error 126

I tried running it with sudo as well. The error was

g77 -O2 -init-local-zero -fno-automatic io.o gtop.f -o gtop f951: error: unrecognized command line option ‘-init-local-zero’ make: *** [gtop] Error 1

Can anyone please help me to sort it out please? Am just stuck at this point as am also new to opensuse/linux.

Replies are listed 'Best First'.
Re^3: (OT) make: g77: Command not found
by syphilis (Archbishop) on Oct 30, 2013 at 06:35 UTC
    I have installed g77

    Hmmm ... I would probably have gone the other way and tried to make it work with gfortran.
    I'll happily perform dreadful hacks, and the first thing I would've tried is to make a copy of "gfortran" named "g77" and seen how that went.

    Does this link help ?

    Cheers,
    Rob

      How do you make it work with gfortran? can you guide me? Btw "g77 -V" also gives the same error i.e., cannot execute binary". Does it mean I have not installed g77 correctly?

        How do you make it work with gfortran?

        I think the link I gave you should answer that question. (Though it may not get you all the way.)

        can you guide me?

        Not really ... I don't use fortran.
        If you can get to the stage where the undefined reference to fdate_ stops the build (as in the earlier link) then there's a thread here that might help.

        The gcc mailing list is probably a better place to ask about this, though it may not be on topic even there.
        Is there a pftools forum somewhere ?

        Cheers,
        Rob