public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* sun 0s -> gcc ERROR question
@ 2002-01-31 14:16 Jim M.
  2002-01-31 23:59 ` Alexandre Oliva
  0 siblings, 1 reply; 3+ messages in thread
From: Jim M. @ 2002-01-31 14:16 UTC (permalink / raw)
  To: gcc

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sun 0s -> gcc ERROR question
  2002-01-31 14:16 sun 0s -> gcc ERROR question Jim M.
@ 2002-01-31 23:59 ` Alexandre Oliva
  2002-02-01  5:42   ` Manfred Hollstein
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Oliva @ 2002-01-31 23:59 UTC (permalink / raw)
  To: Jim M.; +Cc: gcc

On Jan 31, 2002, "Jim M." <msg124@hotmail.com> wrote:

> How can i compile myapp using gcc.

First off, convert command-line options that only work with Sun cc to
the gcc equivalent ones.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sun 0s -> gcc ERROR question
  2002-01-31 23:59 ` Alexandre Oliva
@ 2002-02-01  5:42   ` Manfred Hollstein
  0 siblings, 0 replies; 3+ messages in thread
From: Manfred Hollstein @ 2002-02-01  5:42 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: Jim M., gcc

[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]

On Fri, 2002-02-01 at 00:29, Alexandre Oliva wrote:
> On Jan 31, 2002, "Jim M." <msg124@hotmail.com> wrote:
> 
> > How can i compile myapp using gcc.
> 
> First off, convert command-line options that only work with Sun cc to
> the gcc equivalent ones.

You may want to look at the following URL where you find a good
description of how gcc's options compare with Sun cc's:

<http://www.redhat.com/devnet/whitepapers/solaris_port/book1.html>

> 
> -- 
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist                Professional serial bug killer

-- 
Manfred Hollstein			  <mailto:manfredh@redhat.com>
Red Hat GmbH				     phone: +49-(0)7044-910079
Hindenburgstr. 13/1			    mobile: +49-(0)170-3436257
75446 Wiernsheim, Germany		       fax: +49-(0)7044-910049
GPG fingerprint:    1D1F 0F5A 32C1 9E2A B8BA  561A E372 AF4C 0581 D831

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 240 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-01 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-31 14:16 sun 0s -> gcc ERROR question Jim M.
2002-01-31 23:59 ` Alexandre Oliva
2002-02-01  5:42   ` Manfred Hollstein

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).