home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / help / 1823 < prev    next >
Encoding:
Text File  |  1992-07-31  |  2.7 KB  |  70 lines

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