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

O. Hartmann ohartmann at walstatt.org
Tue Jan 9 20:20:02 UTC 2018


Am Tue, 9 Jan 2018 15:06:23 -0500
Jung-uk Kim <jkim at FreeBSD.org> schrieb:

> 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

Thank you very much. Didn't receive any answere, too, so far.

Indeed, CPUTYPE is set and compilation breaks on all >= Haswell CPUs, while C2D and
IvyBridge do ...

Regards,
Oliver

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 313 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20180109/f4e0d7d7/attachment.sig>


More information about the svn-src-head mailing list