---------- Forwarded message ----------
From: Barry Kauler <[email protected]>
Date: Sat, 29 Nov 2014 10:11:44 +0800
Subject: [t2] Cannot compile lame: fixed, kind of
To: René Rebe <[email protected]>

On 11/29/14, Barry Kauler <[email protected]> wrote:
> Rene,
> Would you mind checking on your local T2, that audio/lame compiles?
>
> I have never had any trouble with it before, that I can recall, but
> this time I get a compile error, that I have not yet been able to
> understand.
>
> I have always had lame in the package-list, always thought of it as
> one of the essentials. So, don't want to have to remove it.
>
> There are a lot of errors like this, about "inlining failed":
>
> In file included from xmm_quantize_sub.c:37:0:
> /usr/lib/gcc/i686-t2-linux-gnu/4.9.2/include/xmmintrin.h:929:1: error:
> inlining failed in call to always_inline '_mm_loadu_ps': target
> specific option mismatch
>  _mm_loadu_ps (float const *__P)
>  ^
> xmm_quantize_sub.c:65:18: error: called from here
>      const __m128 vec_fabs_mask = _mm_loadu_ps(&fabs_mask._float[0]);
>                   ^
>
> I tried an older version of lame, even tried patches from ubuntu, no go.
>

Rene,
I googled, this is a known problem. LFS have a fix:

http://www.linuxfromscratch.org/blfs/view/svn/multimedia/lame.html

Yes, I am doing a i686 build!

...can you implement that fix in T2?

I have confirmed that lame.conf with this in it, does compile:

lame_fix_i686()
{
 sed -i -e '/xmmintrin\.h/d' configure
}
hook_add preconf 5 "lame_fix_i686"

However, the LFS page states:

Do not use this on other versions of gcc, or on x86_64.

...so, how to add test for gcc version and i686 target?

Regards,
Barry

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to