[cairo-bugs] [Bug 5080] Unable to build cairo 1.1.1 from cvs

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Nov 17 06:22:20 PST 2005


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=5080          
     




------- Additional Comments From cworth at cworth.org  2005-11-18 01:19 -------
Something is not working with the configure-time check for MMX support.

If you look at configure.in, you'll find a block (copied below) which attempts
to compile a small test program that includes mmintrin.h. From your report it
appears that that test is succeeding, but the actual use of mmintrin.h is failing.

So it would be helpful to look at config.log and compare the relevant portion to
the failing part of the build to find out what the difference is.

In the meantime, you should be able to workaround the problem by turning off the
MMX stuff. I mentioned hacking config.h before, but that's not enough. Instead,
you could add:

    have_mmx_intrinsics=no

Just before the "if test $have_mmx_intrinsics = yes" line in configure.in.

Good luck!

-Carl

dnl ===========================================================================
dnl Check for MMX

MMX_CFLAGS="-mmmx -Winline --param inline-unit-growth=10000 --param
large-function\-growth=10000"

have_mmx_intrinsics=no
AC_MSG_CHECKING(For MMX/SSE intrinsics in the compiler)
xserver_save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $MMX_CFLAGS"
AC_COMPILE_IFELSE([
#if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4))
#error "Need GCC >= 3.4 for MMX intrinsics"
#endif
#include <mmintrin.h>
int main () {
    __m64 v = _mm_cvtsi32_si64 (1);
    __m64 w = _mm_slli_si64 (v, 1);
    v = _mm_or_si64 (v, w);
    return _mm_cvtsi64_si32 (v);
}], have_mmx_intrinsics=yes)
CFLAGS=$xserver_save_CFLAGS
AC_MSG_RESULT($have_mmx_intrinsics)

if test $have_mmx_intrinsics = yes ; then
   AC_DEFINE(USE_MMX, 1, [use MMX compiler intrinsics])
else
   MMX_CFLAGS=
fi
AC_SUBST(MMX_CFLAGS)

AM_CONDITIONAL(USE_MMX, test $have_mmx_intrinsics = yes)

          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list