FreeBSD 8 i386 gptboot corrupt - SOLVED

Andriy Gapon avg at FreeBSD.org
Thu May 10 07:19:07 UTC 2012


on 10/05/2012 10:12 Alfred Bartsch said the following:
> I got this stupid idea of a "16k limit" during testing. It was unobvious to
> me that the build process in a standard environment (i386) simply produces
> invalid code. In i386 (32-bit) hardware, we don't use zfs at all, so I
> can't tell anything about gptzfsboot. For now, modifying
> /sys/boot/i386/gptboot/Makefile completely solves this actual build
> problem.
> 
> IMHO the compiler should always know perfectly well in which hardware 
> environment it runs and for which target environment it produces code. So
> the build environment should be modified to fix this. I would certainly
> give it a try, but unfortunately this is far beyond my knowledge. :-(

That's an interesting theory.
What kind of hardware do you have?  Is it something non-mainstream or
sufficiently old?
As far as I can tell, our base GCC uses i686 target arch if none is explicitly
requested.

-- 
Andriy Gapon


More information about the freebsd-stable mailing list