From owner-freebsd-current@FreeBSD.ORG Mon Jun 22 17:06:48 2015 Return-Path: Delivered-To: freebsd-current@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 27DED763 for ; Mon, 22 Jun 2015 17:06:48 +0000 (UTC) (envelope-from stefanogarzarella@gmail.com) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A4EFA1AC; Mon, 22 Jun 2015 17:06:47 +0000 (UTC) (envelope-from stefanogarzarella@gmail.com) Received: by wibdq8 with SMTP id dq8so81688426wib.1; Mon, 22 Jun 2015 10:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=IobFIUdrFb1fPK28FGv6ghQnbNbRoOA7CB59TtvaWyo=; b=kj4kyy9X5j3ZRtGvMycblZ2bQeS1Oh63PWPeDrF+lYU5+MA0ZhoC1NHjHavR4UU268 KUS1djdy6/MJ+fsJ05ky74svvpPJT9qsdKxEVP04MEiZ2BRYM/C3XmvfplUCB+P+FQxz JQU53CnC71xt4XWO0Sae6yfkjgX/SWL9iDpgulHu4G8cFb1vb1W17ONhIX1NJobxZsxy spJLMEdsXmE3wdpVLYgXslXoOfS0FhkMxbSLY0HLakQGEGj+M9zXZ1g45ublYd6VsX5Z yybYlPayizasmUIwMc3Bh+uzW4WDeBliIGVxqv552bPsCFrDAYGoMGRtxfzYmdiOfSXR 60nw== X-Received: by 10.194.157.168 with SMTP id wn8mr52127406wjb.79.1434992805120; Mon, 22 Jun 2015 10:06:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.27.39.135 with HTTP; Mon, 22 Jun 2015 10:06:25 -0700 (PDT) In-Reply-To: References: From: Stefano Garzarella Date: Mon, 22 Jun 2015 19:06:25 +0200 Message-ID: Subject: Re: PicoBSD build error after r281316 To: Luigi Rizzo Cc: freebsd-current , "delphij@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2015 17:06:48 -0000 2015-06-22 17:03 GMT+02:00 Luigi Rizzo : > > > On Monday, June 22, 2015, Stefano Garzarella > wrote: > >> Hi all, >> I'm using picobsd on FreeBSD-head (r284697) to build a picobsd image with >> gcc, but I have the following errors during the init phase >> (release/picobsd/build/picobsd --init): >> >> In file included from >> /usr/home/stefano/repos/freebsd/lib/liblzma/../../contrib/xz/src/liblzma/lz/lz_encoder.c:23: >> /usr/home/stefano/repos/freebsd/lib/liblzma/../../contrib/xz/src/liblzma/common/memcmplen.h:19:24: >> error: immintrin.h: No such file or directory >> >> >> I found that the r281316 commit introduces these lines that maybe cause >> these errors: >> lib/liblzma/config.h:152 >> /* Define to 1 if you have the header file. */ >> #if defined(__FreeBSD__) && defined(__amd64__) >> #define HAVE_IMMINTRIN_H 1 >> #endif >> >> Before r281316 all work fine. >> >> > This seems a clang vs our-old-GCC issue. > Picobsd is compiled with GCC. > > > Wonder if we should consider the compiler in the conditions to check for > immintrin.h availability. > I think the same. Commenting those lines the picobsd script works fine. Thanks, Stefano > > Cheers > Luigi > > Thanks, >> Stefano Garzarella >> >> -- >> *Stefano Garzarella* >> Software Engineer >> >> e-mail: stefano.garzarella@gmail.com >> github: http://github.com/stefano-garzarella >> linkedin: http://it.linkedin.com/pub/stefano-garzarella >> > > > -- > -----------------------------------------+------------------------------- > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > TEL +39-050-2217533 . via Diotisalvi 2 > Mobile +39-338-6809875 . 56122 PISA (Italy) > -----------------------------------------+------------------------------- > > -- *Stefano Garzarella* Software Engineer e-mail: stefano.garzarella@gmail.com github: http://github.com/stefano-garzarella linkedin: http://it.linkedin.com/pub/stefano-garzarella