public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Jim M." <msg124@hotmail.com>
To: gcc@gcc.gnu.org
Subject: sun 0s -> gcc ERROR question
Date: Thu, 31 Jan 2002 14:16:00 -0000	[thread overview]
Message-ID: <F35lwPqzreucnfpdSCU0000988f@hotmail.com> (raw)

HI,
How can i compile myapp using gcc. How can modify the makefile
to compile and run with gcc instead of sun compiler.
it gives me the following error.
Jim


myserver% make
/usr/local/bin/gcc  -D_KERNEL -xarch=v9 -xcode=abs32 -xregs=no%appl -xO3  -c 
ast
ropci.c
gcc: language O3 not recognized         <------ERROR
gcc: myapp.c: linker input file unused since linking not done
ld -r myapp.o -o myapp
ld: fatal: file myapp.o: open failed: No such file or directory
make: *** [myapp] Error 1

******************************888
myserver% cat Makefile
CC = /usr/local/bin/gcc
#DEFS = -D_KERNEL -DSOLARIS2_7

CFLAGS = -D_KERNEL -xarch=v9 -xcode=abs32 -xregs=no%appl -xO3

LD = ld
LDFLAGS = -r

SRCS = myapp.c myapp_impl.h myapp_io.h
DOCS =

%.o : %.c
        $(CC) $(CFLAGS) $(DEFS) -c $<

myapp: myapp.o
        $(LD) $(LDFLAGS) myapp.o -o myapp

install: myapp
        echo "You must be superuser to install"
        cp -p myapp /kernel/drv/sparcv9/
        cp -p myapp.conf /kernel/drv/
        add_drv -i '"pci1057,1801"' -m '* 0666 bin bin' myapp

reinstall: myapp
        echo "You must be superuser to re-install"
        rem_drv myapp
        cp myapp /kernel/drv/sparcv9/
        add_drv -i '"pci1057,1801"' -m '* 0666 bin bin' myapp

clean:
        $(RM) myapp.o myapp .myapp*

pack: myapp clean
        tar cvf myapp.tar  myapp $(SRCS) Makefile $(DOCS)
        compress myapp.tar

myapp.o : myapp.c




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

             reply	other threads:[~2002-01-31 20:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-31 14:16 Jim M. [this message]
2002-01-31 23:59 ` Alexandre Oliva
2002-02-01  5:42   ` Manfred Hollstein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F35lwPqzreucnfpdSCU0000988f@hotmail.com \
    --to=msg124@hotmail.com \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).