From: Rene M. <re...@li...> - 2000-11-03 21:29:40
|
Hi everyone I have been tying to get a kernel working on my Dreamcast but unfortunatly so far no luck. I have bean running from troble into trouble. But finaly I started to question my GCC. First I used the 2.97 debian package found at ftp://ftp.m17n.org/super-h/debian. This gcc could compile the CVS kernel, but only after I comented out all of the FOOBAR and HD64xxxx stuff from the Makefiles. I belive that there are some files missing. Q1: shouldn't it be possible to compile a kernel from CVS with the GCC 2.97 from the .deb files? the error I got was: make[1]: Entering directory `/usr/src/sh/kernel/arch/sh/kernel' sh-linux-gcc -D__KERNEL__ -I/usr/src/sh/kernel/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -ml -m4 -pipe -c -o mach_fooba r.o mach_foobar.c mach_foobar.c:34: `hd64465_inb' undeclared here (not in a function) mach_foobar.c:34: initializer element is not constant mach_foobar.c:34: (near initialization for `mv_foobar.mv_inb') mach_foobar.c:35: `hd64465_inw' undeclared here (not in a function) . . . mach_foobar.c:62: initializer element is not constant mach_foobar.c:62: (near initialization for `mv_foobar.mv_irq_demux') mach_foobar.c:65: initializer element is not constant mach_foobar.c:65: (near initialization for `mv_foobar') make[1]: *** [mach_foobar.o] Error 1 make[1]: Leaving directory `/usr/src/sh/kernel/arch/sh/kernel' make: *** [_dir_arch/sh/kernel] Error 2 the kernel was configured without GDB stub support (kernel-hacker menu) and without IDE sufpport. the processortype selected was "GENERIC". To me it looks like there is atleast some files missing. Now comenting out the "FOOBAR" card (is this a card?) and the hd64461 witch caused a simelar problem made the kernel compilation come throu. Unfortunatly I haven't bean able to get the kernel to boot on my Dreamcast and since ther is no FB support installed. I have no way of knowing how it fails. Q2: Does anyone have a Dreamcast kernel (preferbly in SREC format) that I could use to verify my system? So I tried compiling the GCC. Unfortunatly again I ran into problems. I got the GCC from ftp://ftp.m17n.org/super-h/original the file called egcs-core-20001002. then I made mkdir sh-linux-gnu-gcc cd sh-linux-gnu-gcc ../egcs-20001002/configure --prefix=/usr/local/sh --target=sh-linux-gnu make Unfortunatly I get . . . make[1]: Entering directory `/usr/src/sh/gcc-sh-linux-gnu/sh-linux-gnu/zlib' /bin/sh ./libtool --mode=compile /usr/src/sh/gcc-sh-linux-gnu/gcc/xgcc -B/usr/src/sh/gcc-sh-linux-gnu/gcc/ -B/usr/local/sh/sh-linux-gnu/bin/ -B/usr/local/sh/sh-linux-gnu/lib/ -isystem /usr/local/sh/sh-linux-gnu/include -DPACKAGE=\"zlib\" -DVERSION=\"1.1.3\" -DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -I. -I../../../egcs-20001002/zlib -g -O2 -c ../../../egcs-20001002/zlib/deflate.c /usr/src/sh/gcc-sh-linux-gnu/gcc/xgcc -B/usr/src/sh/gcc-sh-linux-gnu/gcc/ -B/usr/local/sh/sh-linux-gnu/bin/ -B/usr/local/sh/sh-linux-gnu/lib/ -isystem /usr/local/sh/sh-linux-gnu/include -DPACKAGE=\"zlib\" -DVERSION=\"1.1.3\" -DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -I. -I../../../egcs-20001002/zlib -g -O2 -c ../../../egcs-20001002/zlib/deflate.c -fPIC -DPIC -o .libs/deflate.o In file included from ../../../egcs-20001002/zlib/deflate.h:16, from ../../../egcs-20001002/zlib/deflate.c:52: ../../../egcs-20001002/zlib/zutil.h:20:22: string.h: No such file or directory ../../../egcs-20001002/zlib/zutil.h:21:22: stdlib.h: No such file or directory ../../../egcs-20001002/zlib/zutil.h:26:22: errno.h: No such file or directory make[1]: *** [deflate.lo] Error 1 make[1]: Leaving directory `/usr/src/sh/gcc-sh-linux-gnu/sh-linux-gnu/zlib' make: *** [all-target-zlib] Error 2 Q3: does anybody know what could be the problem? Or perhaps how the gcc should be compiled, where you finde the rigt files and so on? Tnaks for all your help /Rene |