*BSD News Article 66471


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!qns3.qns.com!imci4!newsfeed.internetmci.com!iol!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!ruthless.demon.co.uk!ravi
From: Ravi Cheema <ravi@ruthless.demon.co.uk>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD and GNU gcc
Date: Mon, 22 Apr 1996 22:53:42 +0100
Organization: Runsoft Corp.
Lines: 41
Distribution: world
Message-ID: <ZV4b7AAm$$exEwfe@ruthless.demon.co.uk>
References: <sjqiRAAuaUexEwKO@ruthless.demon.co.uk>
 <4ldirk$og7@hamilton.maths.tcd.ie>
NNTP-Posting-Host: ruthless.demon.co.uk
X-NNTP-Posting-Host: ruthless.demon.co.uk
MIME-Version: 1.0
X-Newsreader: Turnpike Version 1.12 <RgQ9LxdC7CwdhlQNRYqQ0ig1yt>

In article <4ldirk$og7@hamilton.maths.tcd.ie>, David Malone
<dwmalone@maths.tcd.ie> writes
>Ravi Cheema <ravi@ruthless.demon.co.uk> writes:
>
>>The application is written in standard 'C' and was originally developed
>>on a SYS5 system. The application compiles without any errors using gcc
>>v2.6. However when I try to run the program, the program exits and the
>>system immediately repors the following error:
>
>>'Exec format error. Wrong Architecture.'
>
>My first guess would be that something with the same name as your
>program has eneded up in your path. Make sure you are running the
>correct program with "which progname". You could also try "gcc -v"
>which makes gcc a bit more verbose.
>
>It sounds either like something silly, or a weird compiler problem.
>
>       David.

David,

Thanks for your reply. You could be right, I'm not actually running
'gcc' but 'cc', when I type 'man cc' it displays the man page for 'gcc'
so I assume I'm actually using 'gcc' when I run 'cc', is this correct?

Certain programs within the application compile using 'cc' and run OK,
but a particular program which is quite large compiles OK but fails with
the error 'Exec format error. Wrong Architecture.'

Could this be a resource problem? i.e. the system reporting a lack of
memory in a stange way?

Any help on this would be most appreciated.

____________________________________________________________________________
Ravi Cheema                        "We take a handful of sand from the
<ravi@ruthless.demon.co.uk>        endless landscape of awareness around us
<ravi@osm.co.uk>                   and call that handful of sand the world."
____________________________________________________________________________