This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Not compiling code


Please respond with 'Reply to All'.  Sending
a response only to me limits your available
help especially since I do not use Windows.

On Mon, Aug 20, 2012 at 06:26:15PM -0400, Johannes Kühn wrote:
> On 20.08.2012 18:05, Steve Kargl wrote:
> >On Mon, Aug 20, 2012 at 05:56:13PM -0400, Johannes Kühn wrote:
> >>Dear experts,
> >>
> >>I'm a little frustrated because I urgently struggle to compile
> >>an old FORTRAN code on my Windows machine using gfortran.
> >>
> >>But every time I try to do so, I get the same error (about 50 of them):
> >>
> >>"Error: invalid instruction suffix for `push'"
> >>
> >>Does anyone of you have an idea what this could mean and how I can fix it?
> >>
> >What does 'gfortran -v' generated and what hardware do you have?
> >Also, what command line options are you using?
> >
> 
> Hello Steve,
> 
> thanks for the quick reply. This is what I get when typing in "gfortran -v":
> 
> "gfortran -v
> Using built-in specs.
> COLLECT_GCC=C:\Program Files (x86)\gfortran\bin\gfortran.exe
> COLLECT_LTO_WRAPPER=c:/program files 
> (x86)/gfortran/bin/../libexec/gcc/i586-pc-mingw32/4.8.0/lto-wrapper.exe
> Target: i586-pc-mingw32

Is your processor an X86_64 class processor and are you
running a 64-bit version of window?  If the answer is
yes and yes, then you need a different version of gfortran.

> I suspect it has something to do with win32/64..?
> 
> Regarding the command line options, I just use it as it comes with 
> Windows and honestly I don't know what else I could tell you there.

Well, this is a problem as I don't use Windows, so I have
no idea how you invoke the gfortran command.

-- 
Steve


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