Opened 4 years ago

Closed 4 years ago

#10415 closed defect (fixed)

lame-3.100: Tweak for i?68 does not work

Reported by: thomas Owned by: blfs-book@…
Priority: normal Milestone: 8.2
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

There is the instruction

case $(uname -m) in
   i?86) sed -i -e '/xmmintrin\.h/d' configure ;;
esac

meant to prevent from using the xmmintrin.h file which results in error on i?86 systems.

It does even with this sed:

In file included from xmm_quantize_sub.c:37:0:
/usr/lib/gcc/i686-pc-linux-gnu/7.3.0/include/xmmintrin.h:240:1: Fehler: »inline« beim Aufruf von always_inline »_mm_and_ps« gescheitert: target specific option mismatch
_mm_and_ps (__m128 __A, __m128 __B)
 ^~~~~~~~~~
xmm_quantize_sub.c:96:29: Anmerkung: von hier aufgerufen
             vec_tmp._m128 = _mm_and_ps(vec_tmp._m128, vec_fabs_mask); /* fabs */
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:423: xmm_quantize_sub.lo] Fehler 1
make[3]: Verzeichnis „/tmp/lame/build/lame-3.100/libmp3lame/vector“ wird verlassen
make[2]: *** [Makefile:613: all-recursive] Fehler 1
make[2]: Verzeichnis „/tmp/lame/build/lame-3.100/libmp3lame“ wird verlassen
make[1]: *** [Makefile:452: all-recursive] Fehler 1
make[1]: Verzeichnis „/tmp/lame/build/lame-3.100“ wird verlassen
make: *** [Makefile:381: all] Fehler 2

No issue on x86_64.

Change History (4)

comment:1 by thomas, 4 years ago

looks like that

case $(uname -m) in
    i?86) sed -i -e 's/<xmmintrin.h/&.nouse/' configure ;;
esac

brings the expected result.

Any objections?

comment:2 by bdubbs@…, 4 years ago

Just a guess, but try removing the line:

#define HAVE_XMMINTRIN_H 1

after configure instead of the sed.

comment:3 by thomas, 4 years ago

just commited the fix above, will try yours, too.

comment:4 by thomas, 4 years ago

Resolution: fixed
Status: newclosed

Yes, doing a sed -e "/HAVE_XMMINTRIN_H/d" -i config.h after configure has run does the trick, too.

Note: See TracTickets for help on using tickets.