*BSD News Article 66379


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!newsxfer2.itd.umich.edu!agate!howland.reston.ans.net!EU.net!ieunet!web3.tcd.ie!maths.tcd.ie!not-for-mail
From: dwmalone@maths.tcd.ie (David Malone)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD and GNU gcc
Date: 21 Apr 1996 16:05:24 +0100
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
Lines: 17
Message-ID: <4ldirk$og7@hamilton.maths.tcd.ie>
References: <sjqiRAAuaUexEwKO@ruthless.demon.co.uk>
NNTP-Posting-Host: hamilton.maths.tcd.ie

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.