home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / mailinglist-archive / 1993-11 / text0168.txt < prev    next >
Encoding:
Text File  |  1993-06-25  |  1.5 KB  |  32 lines

  1. > 6.  To compile the kernel, you need the libc stuff from a site that
  2. > has the source for the NetBSD-current distribution (libc has bcmp.s,
  3. > bzero.s, and a whole mess of other little files that are insisted
  4. > upon (I got the libc stuff from agate.berkeley.edu)).  A question
  5. > here: When making the kernel, "cpp -E -Iwhatever foo.s | as -o foo.o"
  6. > grumbles about "_ somelabel" being invalid.  The problem is this space
  7. > here ------------^.  From what I can tell, "ENTRY(foo)" is being
  8. > converted to "_ foo:" by cpp instead of "_foo:".  Does anyone know why
  9. > this space is being (incorrectly?) generated by cpp, and/or how to
  10. > solve the problem.  I ended up compiling all those little .s files
  11. > myself using "cpp -traditional foo.s | as -o foo.o" (and 
  12. > "cpp -traditional -DPROF foo.s | as -o foo.po" when it came time for
  13. > the profiling stuff), but it would be kind of nice to get this
  14. > somewhat automated... 
  15.  
  16. Replace the /**/ in DEFS.h and SYS.h with ##.
  17.  
  18. The difference is in traditional and ANSI preprocessors.  The "default"
  19. version of GCC used in the NetBSD distribution is not set up the same way
  20. as the GNU version is.  Many files are in a different place, and some things
  21. are done a different way.
  22.  
  23. Markus has elected to use the GNU file placement (IMHO a good choice).
  24.  
  25. Although a source tree would be nice.  Even with the stuff from sun-lamp I
  26. had to write my own strcat.s :-)
  27.  
  28. -- 
  29. David Jones, M.A.Sc student, Electronics Group (VLSI), University of Toronto
  30. email: dej@eecg.utoronto.ca, finger for more info
  31.  
  32.