home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.help
- Path: sparky!uunet!elroy.jpl.nasa.gov!wvus!grian!liz
- From: liz@grian.cps.altadena.ca.us (Liz Allen)
- Subject: building cross-compiler from sparc -> sco
- Message-ID: <1992Jul31.071343.3692@grian.cps.altadena.ca.us>
- Organization: College Park Software, Altadena, CA
- Date: Fri, 31 Jul 1992 07:13:43 GMT
- Lines: 60
-
- I'm trying to build a cross-compiler for sparc to sco xenix using gcc
- 2.1. I created a regular gcc first and that went fine. I then tried
- to create the cross-compiler following the directions about doing a
- stage1 and a stage2 even though that didn't really make sense to me.
- When I tried to build stage2, I got the following (I've added a couple
- new lines):
-
- make CC=stage1/gcc CFLAGS="-g -O -Bstage1/"
- stage1/gcc -DCROSS_COMPILE -g -O -Bstage1/ -I. -I. -I./config \
- -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/i386-sco/`awk '{printf "%s",
- substr ($4, 2, length ($4) - 3); }' ./version.c`/include\" \
- -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \
- -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
- -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/i386-sco/`awk '{printf "%s",
- substr ($4, 2, length ($4) - 3); }' ./version.c`/sys-include\" \
- -c `echo ./cccp.c | sed 's,^\./,,'`
- cccp.c:61: sys/types.h: No such file or directory
- cccp.c:62: sys/stat.h: No such file or directory
- cccp.c:63: ctype.h: No such file or directory
- cccp.c:64: stdio.h: No such file or directory
- cccp.c:65: signal.h: No such file or directory
- cccp.c:68: sys/file.h: No such file or directory
- cccp.c:70: sys/time.h: No such file or directory
- cccp.c:71: sys/resource.h: No such file or directory
- *** Error code 1
- make: Fatal error: Command failed for target `cccp.o'
-
-
- Next I tried to do the following makes:
-
- make CC=/local/bin/gcc all
- make CC=/local/bin/gcc install-cross
-
- The install-cross failed with "install: crtbegin.o: No such file or
- directory". So, I then tried:
-
- make CC=/local/bin/gcc crtbegin.o crtend.o
-
- This gave me:
-
- ./gcc -DCROSS_COMPILE -g -B./ -I. -I. -I./config -DCRT_BEGIN \
- -finhibit-size-directive -g0 -c ./crtstuff.c -o crtbegin.o
-
- And then *lots* of assembler error messages.
-
-
- Obviously, I'm not doing the Right Thing, but I can't figure out what
- the Right Thing is. I also don't have an SCO box here handy. What I
- need to do is create a cross-compiler without SCO which I can use to
- cross-compile a program for a customer and then take the resultant
- object file over to the customer's machine. Is that possible?
-
- Please email me as I can't keep up with as many newsgroups as I'd like
- to! ;-)
-
- Thanks.
- --
- - Liz Allen liz@grian.cps.altadena.ca.us
- ames!elroy!grian!liz
- "God is light; in him there is no darkness at all." -- 1 John 1:5b
-