Seems to go well so far: I have shut down qemu and loopback mounted the root partition: mount /mnt/VM/Mandrake10/mandrake.hdd /media/bind -o loop,offset=32256 Bound the mounted CD inside: dualpc:/media/bind/usr/src/TEST # mkdir -p /media/bind/media/dvd dualpc:/media/bind/usr/src/TEST # mount -o bind /media/tmp/ /media/bind/media/dvd/ Installed the required packages: [root@dualpc RPMS]# rpm -Uvh gcc2.96-* libstdc++2.10* Forbereder... ########################################### [100%] 1:libstdc++2.10 ########################################### [ 20%] 2:gcc2.96-cpp ########################################### [ 40%] 3:gcc2.96 ########################################### [ 60%] 4:libstdc++2.10-devel ########################################### [ 80%] 5:gcc2.96-c++ ########################################### [100%] Symlinked them in a local dir: [root@dualpc bin]# ln -s /usr/bin/gcc-2.96 gcc [root@dualpc bin]# ln -s /usr/bin/g++-2.96 g++ [root@dualpc bin]# ln -s /usr/bin/cpp-2.96 cpp [root@dualpc bin]# . /etc/profile bash: TMOUT: readonly variable [root@dualpc bin]# export PATH=/usr/src/TEST/bin/:$PATH [root@dualpc linux-2.5.37]# gcc --version 2.96 <Problems with finding stdarg.h... Tried to solve it with:> [root@dualpc include]# cd /usr/include/ ; ln -s /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/include/*h . <Didn't seem to work. Tried putting it in include/linux.. Didn't work. copied stdarg.h to the kernels include dir and set it to "stdarg.h" in stead of <stdarg.h> in kernel.h .. That seemed to do it...> Maybe someone here will now what I did wrong since I had to resort to changing the code, albeit very little... Wha-hey! A 2.5 kernel.. : make[1]: Entering directory `/usr/src/TEST/linux-2.5.37/init' Generating /usr/src/TEST/linux-2.5.37/include/linux/compile.hdnsdomainname: Host name lookup failure (updated) gcc -Wp,-MD,./.version.o.d -D__KERNEL__ -I/usr/src/TEST/linux-2.5.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -I/usr/src/TEST/linux-2.5.37/arch/i386/mach-generic -nostdinc -iwithprefix include -DKBUILD_BASENAME=version -c -o version.o version.c ld -m elf_i386 -r -o built-in.o main.o version.o do_mounts.o make[1]: Leaving directory `/usr/src/TEST/linux-2.5.37/init' ld -m elf_i386 -e stext -T arch/i386/vmlinux.lds.s arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/built-in.o --start-group arch/i386/kernel/built-in.o arch/i386/mm/built-in.o arch/i386/mach-generic/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o lib/lib.a arch/i386/lib/lib.a drivers/built-in.o sound/built-in.o arch/i386/pci/built-in.o net/built-in.o --end-group -o vmlinux echo 'cmd_vmlinux := ld -m elf_i386 -e stext -T arch/i386/vmlinux.lds.s arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/built-in.o --start-group arch/i386/kernel/built-in.o arch/i386/mm/built-in.o arch/i386/mach-generic/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o lib/lib.a arch/i386/lib/lib.a drivers/built-in.o sound/built-in.o arch/i386/pci/built-in.o net/built-in.o --end-group -o vmlinux' > ./.vmlinux.cmd nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map make[1]: Entering directory `/usr/src/TEST/linux-2.5.37/arch/i386/boot' gcc -Wp,-MD,./.bootsect.o.d -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/TEST/linux-2.5.37/include -I/usr/src/TEST/linux-2.5.37/arch/i386/mach-generic -nostdinc -iwithprefix include -traditional -DSVGA_MODE=NORMAL_VGA -D__BIG_KERNEL__ -c -o bootsect.o bootsect.S ld -m elf_i386 -Ttext 0x0 -s --oformat binary bootsect.o -o bootsect gcc -Wp,-MD,./.setup.o.d -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/TEST/linux-2.5.37/include -I/usr/src/TEST/linux-2.5.37/arch/i386/mach-generic -nostdinc -iwithprefix include -traditional -DSVGA_MODE=NORMAL_VGA -D__BIG_KERNEL__ -c -o setup.o setup.S setup.S: Assembler messages: setup.S:160: Warning: value 0x37ffffff truncated to 0x37ffffff ld -m elf_i386 -Ttext 0x0 -s --oformat binary -e begtext setup.o -o setup make[2]: Entering directory `/usr/src/TEST/linux-2.5.37/arch/i386/boot/compressed' gcc -Wp,-MD,./.head.o.d -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/TEST/linux-2.5.37/include -I/usr/src/TEST/linux-2.5.37/arch/i386/mach-generic -nostdinc -iwithprefix include -traditional -c -o head.o head.S gcc -Wp,-MD,./.misc.o.d -D__KERNEL__ -I/usr/src/TEST/linux-2.5.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -I/usr/src/TEST/linux-2.5.37/arch/i386/mach-generic -nostdinc -iwithprefix include -DKBUILD_BASENAME=misc -c -o misc.o misc.c objcopy -O binary -R .note -R .comment -S /usr/src/TEST/linux-2.5.37/vmlinux vmlinux.bin gzip -f -9 < vmlinux.bin > vmlinux.bin.gz ld -m elf_i386 -r --format binary --oformat elf32-i386 -T vmlinux.scr vmlinux.bin.gz -o piggy.o ld -m elf_i386 -Ttext 0x100000 -e startup_32 head.o misc.o piggy.o -o vmlinux make[2]: Leaving directory `/usr/src/TEST/linux-2.5.37/arch/i386/boot/compressed' objcopy -O binary -R .note -R .comment -S compressed/vmlinux vmlinux.bin gcc-2.96 -Wp,-MD,tools/.build.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o tools/build tools/build.c tools/build -b bootsect setup vmlinux.bin CURRENT > bzImage Root device is (7, 0) Boot sector 512 bytes. Setup is 2598 bytes. System is 1304 kB warning: kernel is too big for standalone boot from floppy make[1]: Leaving directory `/usr/src/TEST/linux-2.5.37/arch/i386/boot' Will attempt a test with this soon, probably in the morning... Regards, /Martin. ----- "Martin Møller" <martin@mail.martinm-76.dk> wrote:
I think I may have found a good working environment. Linux Magazine DVD for issue 42 has Mandrake Linux 10.0 on it which uses a 2.6.3 kernel *and* come with a 2.96.3 compiler as an option. Installing it in qemu now...
/Martin.
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org