public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Solaris Cross Compiler
@ 2001-12-14 13:12 Schwartz Jr., William H.
  0 siblings, 0 replies; only message in thread
From: Schwartz Jr., William H. @ 2001-12-14 13:12 UTC (permalink / raw)
  To: Gcchelp (E-mail); +Cc: 'william.schwartz@network.com'

I'm trying to make a cross compiler so that I can build Solaris 2.5.1 code
on a Solaris 8 system


I got the binutils to compile fine but I'm stuck on gcc 3.0.2

From my build directory I'm using the followinf configure line.

../gcc-3.0.2/configure --prefix=/nspdev/sol251_crosscompiler
--with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
--host=sparc-sun-solaris2.8 --target=sparc-sun-solaris2.5.1

If I run the configure without the "host" and "target" flags then I can do a
make all successfully.

Here's where the compile falls apart.

/home/anubis70/schwawh/SOLARIS_STUFF/build-gcc/gcc/xgcc
-B/home/anubis70/schwawh/SOLARIS_STUFF/build-gcc/gcc/
-B/nspdev/sol251_crosscompiler/sparc-sun-solaris2.6/bin/
-B/nspdev/sol251_crosscompiler/sparc-sun-solaris2.6/lib/ -isystem
/nspdev/sol251_crosscompiler/sparc-sun-solaris2.6/include -DCROSS_COMPILE
-DIN_GCC -DSVR4  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include  -I. -I. -I../../gcc-3.0.2/gcc
-I../../gcc-3.0.2/gcc/.  -I../../gcc-3.0.2/gcc/config
-I../../gcc-3.0.2/gcc/../include  \
        -c ../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c -o gmon.o
In file included from ../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:36:
../../gcc-3.0.2/gcc/system.h:50:19: stdio.h: No such file or directory
In file included from ../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:36:
../../gcc-3.0.2/gcc/system.h:92:23: sys/types.h: No such file or directory
../../gcc-3.0.2/gcc/system.h:94:19: errno.h: No such file or directory
../../gcc-3.0.2/gcc/system.h:101:21: string.h: No such file or
directory../../gcc-3.0.2/gcc/system.h:102:22: strings.h: No such file or
directory../../gcc-3.0.2/gcc/system.h:114:21: stdlib.h: No such file or
directory
../../gcc-3.0.2/gcc/system.h:123:21: unistd.h: No such file or directory
../../gcc-3.0.2/gcc/system.h:127:24: sys/param.h: No such file or directory
In file included from ../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:36:
../../gcc-3.0.2/gcc/system.h:179:23: sys/time.h: No such file or directory
../../gcc-3.0.2/gcc/system.h:180:19: time.h: No such file or directory
../../gcc-3.0.2/gcc/system.h:192:20: fcntl.h: No such file or directory
../../gcc-3.0.2/gcc/system.h:230:22: sys/wait.h: No such file or directory
../../gcc-3.0.2/gcc/system.h:301:20: malloc.h: No such file or directory
../../gcc-3.0.2/gcc/system.h:385:23: sys/stat.h: No such file or directory
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c: In function `monstartup':
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:112: warning: implicit
declaration of function `sbrk'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:112: warning: assignment makes
pointer from integer without a cast
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:114: warning: implicit
declaration of function `write'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:136: warning: assignment makes
pointer from integer without a cast
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c: In function `_mcleanup':
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:181: `PATH_MAX' undeclared
(first use in this function)
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:181: (Each undeclared
identifier is reported only once
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:181: for each function it
appears in.)
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:186: warning: implicit
declaration of function `getenv'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:186: warning: assignment makes
pointer from integer without a cast
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:192: warning: implicit
declaration of function `strrchr'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:198: warning: implicit
declaration of function `sprintf'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:198: warning: implicit
declaration of function `getpid'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:204: warning: implicit
declaration of function `creat'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:206: warning: implicit
declaration of function `perror'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:231: warning: implicit
declaration of function `close'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:181: warning: unused variable
`buf'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c: In function `internal_mcount':
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:299: warning: implicit
declaration of function `atexit'
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c: In function `moncontrol':
../../gcc-3.0.2/gcc/config/sparc/gmon-sol2.c:413: warning: implicit
declaration of function `profil'
*** Error code 1
make: Fatal error: Command failed for target `gmon.o'
Current working directory /home/anubis70/schwawh/SOLARIS_STUFF/build-gcc/gcc
*** Error code 1
make: Fatal error: Command failed for target `all-gcc'




any tips greatly apreciated,
thanks,
Bill

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-12-14 21:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-14 13:12 Solaris Cross Compiler Schwartz Jr., William H.

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