svn commit: r327706 - in head/sys: conf contrib/zstd/lib/freebsd

Jung-uk Kim jkim at FreeBSD.org
Tue Jan 9 20:06:30 UTC 2018


On 01/09/2018 04:47, O. Hartmann wrote:
> On Mon, 8 Jan 2018 20:14:16 +0000 (UTC)
> Conrad Meyer <cem at FreeBSD.org> wrote:
> 
>> Author: cem
>> Date: Mon Jan  8 20:14:16 2018
>> New Revision: 327706
>> URL: https://svnweb.freebsd.org/changeset/base/327706
>>
>> Log:
>>   Integrate zstd into the kernel
>>   
>>   Mock userspace headers and include mocked headers first in compilation
>>   command to inject kernel headers and override e.g., malloc(3) with
>>   malloc(9).
>>   
>>   Submitted by:	allanjude
>>   Reviewed by:	imp (earlier version), bapt (earlier version)
>>   Differential Revision:	https://reviews.freebsd.org/D10407
>>
>> Added:
>>   head/sys/contrib/zstd/lib/freebsd/
>>   head/sys/contrib/zstd/lib/freebsd/stddef.h   (contents, props changed)
>>   head/sys/contrib/zstd/lib/freebsd/stdint.h   (contents, props changed)
>>   head/sys/contrib/zstd/lib/freebsd/stdio.h   (contents, props changed)
>>   head/sys/contrib/zstd/lib/freebsd/stdlib.h   (contents, props changed)
>>   head/sys/contrib/zstd/lib/freebsd/string.h   (contents, props changed)
>>   head/sys/contrib/zstd/lib/freebsd/zstd_kfreebsd.h   (contents, props
>> changed) head/sys/contrib/zstd/lib/freebsd/zstd_kmalloc.c   (contents, props
>> changed) Modified:
>>   head/sys/conf/files
>>   head/sys/conf/kern.pre.mk

...

> It seems that CURRENT is unwilling to build due to the error shown below:
> 
> [...]
> --- fse_decompress.o ---
> In file included from /usr/src/sys/contrib/zstd/lib/common/fse_decompress.c:41:
> /usr/src/sys/contrib/zstd/lib/common/bitstream.h:71:12: fatal error:
> 'immintrin.h' file not found #  include <immintrin.h>   /* support for bextr
> (experimental) */ ^~~~~~~~~~~~~
> --- modules-all ---

I reported the same problem yesterday but I didn't get any reply yet.
Basically, if CPUTYPE is set in /etc/make.conf and the CPU supports BMI
instructions, it breaks.  You can use the attached patch as a stopgap.
Please note the patch was updated after r327715.

Jung-uk Kim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zstd.diff
Type: text/x-patch
Size: 1212 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20180109/5f62207e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20180109/5f62207e/attachment.sig>


More information about the svn-src-head mailing list