Re: PicoBSD build error after r281316

2015-06-22 Thread Stefano Garzarella
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.garzare...@gmail.com
>> github: http://github.com/stefano-garzarella
>> linkedin: http://it.linkedin.com/pub/stefano-garzarella
>>
>
>
> --
> -+---
>  Prof. Luigi RIZZO, ri...@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.garzare...@gmail.com
github: http://github.com/stefano-garzarella
linkedin: http://it.linkedin.com/pub/stefano-garzarella
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: PicoBSD build error after r281316

2015-06-22 Thread 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.

Cheers
Luigi

Thanks,
> Stefano Garzarella
>
> --
> *Stefano Garzarella*
> Software Engineer
>
> e-mail: stefano.garzare...@gmail.com
> 
> github: http://github.com/stefano-garzarella
> linkedin: http://it.linkedin.com/pub/stefano-garzarella
>


-- 
-+---
 Prof. Luigi RIZZO, ri...@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)
-+---
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


PicoBSD build error after r281316

2015-06-22 Thread Stefano Garzarella
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
In file included from
/usr/home/stefano/repos/freebsd/lib/liblzma/../../contrib/xz/src/liblzma/lz/lz_encoder_mf.c:16:
/usr/home/stefano/repos/freebsd/lib/liblzma/../../contrib/xz/src/liblzma/common/memcmplen.h:19:24:
error: immintrin.h: No such file or directory
In file included from
/usr/home/stefano/repos/freebsd/lib/liblzma/../../contrib/xz/src/liblzma/lzma/lzma_encoder_optimum_fast.c:13:
/usr/home/stefano/repos/freebsd/lib/liblzma/../../contrib/xz/src/liblzma/common/memcmplen.h:19:24:
error: immintrin.h: No such file or directory
In file included from
/usr/home/stefano/repos/freebsd/lib/liblzma/../../contrib/xz/src/liblzma/lzma/lzma_encoder_optimum_normal.c:14:
/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.

Thanks,
Stefano Garzarella

-- 
*Stefano Garzarella*
Software Engineer

e-mail: stefano.garzare...@gmail.com
github: http://github.com/stefano-garzarella
linkedin: http://it.linkedin.com/pub/stefano-garzarella
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"