I'm trying to install Gentoo, but i get stuck when installing grub.
I have 2 ext4 partitions, one for / and another for /home, and the grub from grub-static(only this one works on amd64) ebuild doesn't seem to support installing on an ext4 partition.
So i decided to compile grub myself without the use of portage. I found an ext4 patch, but then i ran into the 256 inode problem. And since ext4 needs those 256 inodes for extents i couldn't use the quick fix of changing the inodes with tune2fs.
I found some patches from fedora that offer support for 256 inodes and i applied them, but now grub won't compile.
I get this error:
Code:
pre_stage2_exec-char_io.o: In function `grub_vsprintf':
/usr/src/grub-0.97/stage2/char_io.c:309: undefined reference to `__moddi3'
/usr/src/grub-0.97/stage2/char_io.c:309: undefined reference to `__divdi3'
/usr/src/grub-0.97/stage2/char_io.c:329: undefined reference to `__umoddi3'
/usr/src/grub-0.97/stage2/char_io.c:329: undefined reference to `__udivdi3'
collect2: ld returned 1 exit status
make[2]: *** [pre_stage2.exec] Error 1
make[2]: Leaving directory `/usr/src/grub-0.97/stage2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/grub-0.97'
make: *** [all] Error 2
I also looked into the file char_io.c and at line 309 and 329 there's no refference to those symbols.
Is there any alternative, besides lilo, that i can use to boot my system up?