From owner-freebsd-current@FreeBSD.ORG Mon Jun 22 15:03:45 2015 Return-Path: Delivered-To: freebsd-current@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 21D19E2B for ; Mon, 22 Jun 2015 15:03:45 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com [IPv6:2a00:1450:4010:c03::22c]) (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 9F8BFC5B; Mon, 22 Jun 2015 15:03:44 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by lagi2 with SMTP id i2so22160859lag.2; Mon, 22 Jun 2015 08:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=SDU2ajwR6YLFhXGlXBIcdjkCy9PHrF9RuT+XYKTrClU=; b=EgrbZU8jphRF7sjf9gDlX9dJyvNqxBzlDsMt7IuBEPBIHf1RX+l5SNcCVC98IiN1ii dMq7dTiEJKiwN47Fr/tULygmA4umgXq8+ydVFndlEhOBk5rbJGumznhvxd9SQ1Q7gsVe vIOrnZbz8Tu8cuDkpnj8pisByhjyLVV9Xh09Nzh3Wb6dh5MspSDeSU4YfUZNQEaxr46z GW1yFnBmBE2C8qpQYa1yn48CQJJeDSxt99x1fjucZC7PgrA25iJcMYhEzOeh0Br652ki W05CpV6LKclm9qNsc25EVZDJARDyVapp5xC/HMw+2bvt3zxiO/3XkARC0uM+lg4U1JNB 2PTw== MIME-Version: 1.0 X-Received: by 10.112.90.194 with SMTP id by2mr30715955lbb.62.1434985421531; Mon, 22 Jun 2015 08:03:41 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.230.103 with HTTP; Mon, 22 Jun 2015 08:03:41 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Jun 2015 17:03:41 +0200 X-Google-Sender-Auth: SXhXwqu3rOyeXCT-N_UP6FfOSqU Message-ID: Subject: Re: PicoBSD build error after r281316 From: Luigi Rizzo To: Stefano Garzarella 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 15:03:45 -0000 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. 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) -----------------------------------------+-------------------------------