failing to link custom kernel on 10.0-release

Benjamin Kaduk kaduk at MIT.EDU
Thu Feb 13 20:31:12 UTC 2014


On Thu, 13 Feb 2014, Ian Lepore wrote:

> On Thu, 2014-02-13 at 15:18 -0500, Benjamin Kaduk wrote:
>> Hi all,
>>
>> I'm trying to build this kernel config (amd64) on a 10-release machine:
>> http://web.mit.edu/kaduk/freebsd/tmp/PALAVER
>>
>> It gets to "linking kernel.debug" and then spews a pile of errors about
>> "undefined reference to '__mtx_assert'" for (presumably) every object
>> file.
>>
>> I suspect that this is related to DEBUG_LOCKS, but what am I missing?
>>
>> Thanks,
>>
>> Ben Kaduk
>
> Quick guess without a lot of digging: You might need to add option
> INVARIANT_SUPPORT.

Oh, that's probably it.
I got an error from INVARIANTS_SUPPORT (extra 'S') and then failed to 
check in sys/conf/NOTES, did not find it in sys/amd64/conf/NOTES, and 
assumed that the support had been set to "always-enabled" due to some 
vague memory of what hit head.

Thanks for the prompt cluebat.

-Ben


More information about the freebsd-stable mailing list