Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
I'm trying to compile a version of GRUB that correctly passes VBE info to the kernel via the multiboot structure. After compiling, I want to install this version in my diskimage, which I have mounted via a loopback device. The problem is, that I don't want this version installed on my Linux partition, just in some directory. I can specify the --prefix when I run the configure script, and it seems to install nicely in the directory I indicate there, but how do I install from that directory onto my diskimage (or a real floppy, for that matter)? If I run grub from the sbin directory, it segfaults. Does this mean my build is somehow corrupt, or does it segfault because it's in an unexpected location? I expect the former, as it reports a negative amount of memory, but how to compile GRUB then? I just ran configure, then make. Any help would be greatly appreciated.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Yes, I did a make install. But I used a different install directory of course, I don't want to overwrite my current GRUB I use to boot my PC. Besides, even without a "make install" I wouldn't expect segfaulting.
Mmm, downloaded another version of the GRUB source, and compiled on a different (in this case virtual) machine. Same problem there, segfaulting when starting. Has anyone compiled GRUB on Ubuntu with success? I'd like to hear what you did to make it work.
binutils wrote:check your compiler and glibc, imo, it should work.
does it works with other c sources?
I use GCC from a standard Ubuntu install. I may have installed some additional packages as well, cannot remember. And yes, GCC works without a problem, I have succesfully compiled Bochs, for example.