> > I recall finding a better explanation (or coming up with one myself)
> > when I originally tried this a few months ago, but I've since forgotten.
> > Considering that PIE broke it when introduced, I wouldn't be surprised
> > if some of our linking features are related.
> 
> It's testing that it can run programs built with the compiler flags.
> config.log has this:
> 
> configure:2424: cc -m32 -ftrampolines -fno-stack-protector -fno-pie -nopie   
> conftest.c  >&5
> /usr/bin/ld: warning: i386 architecture of input file `/tmp//ccNKPoep.o' is 
> incompatible with i386:x86-64 output
> 
> This (producing i386 code on amd64) is basically a cross-compile situation.
> 
> > > I'm working on grub2 on amd64, I haven't tested that yet
> > > but following works on amd64:
> 
> mmcc is right, grub 0.97 as present in the port does not build on amd64.

FYI, I just booted OpenBSD from "native OpenBSD" grub2 on amd64:

grub-install /dev/rwd0c # used qemu for testing
XX_xxxx files put into /etc/grub.d
cat >> /etc/grub.d/40_custom << EOF
menuentry "OpenBSD" {
    set root=(hd0,4)
    chainloader +1
}
EOF
grub-mkconfig -o /grub/grub.cfg
reboot

j.

Reply via email to