[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-user
Subject:    Re: [xine-user] Problems Compiling for 64bit (SuSE 9.1)
From:       Mark Arrasmith <arrasmith () math ! wichita ! edu>
Date:       2004-06-08 14:07:13
Message-ID: 200406080907.13791.arrasmith () math ! wichita ! edu
[Download RAW message or body]

On Tuesday 08 June 2004 04:07 am, David Haggett wrote:
> I'm having difficulties compiling xine-lib on SUSE 9.1 on an Athlon64.  I'm
> compiling as a user in my home directory.
>
> ./configure exits normally, so I assume I've got all the necessary
> libraries installed (config.log is attached).  However `make` fails with
> the following error:
>
> /tmp/ccnxWI4C.s:702: Error: Incorrect register `%rax' used with `l' suffix
> I'm not a programmer, and unfortunately am not able to interpret what these
> messages mean.  Anyone have any suggestions on what the problem might be?

I had the same problem with RH Enterprise 3.0 U2 on a dual opteron.  The 
problem is in the choice of fixed point arithmetic implementation.  Basically 
configure sets it to FPM_INTEL when it should be FPM_64BIT.

In the configure script you should have from lines 29484 to 29497 ...

  x86_64-*)
    CFLAGS=" -fomit-frame-pointer $m_wm $m_psb -fexpensive-optimizations $f_si 
$f_nsa -ffast-math -funroll-loops -finline-functions $CFLAGS"
    DEBUG_CFLAGS="-O0 -g $DEBUG_CFLAGS"

cat >>confdefs.h <<_ACEOF
#define ARCH_X86_64
_ACEOF


cat >>confdefs.h <<\_ACEOF
#define FPM_INTEL 1
_ACEOF

    ;;


The problem is line 29494 ...

	#define FPM_INTEL 1

it should be ...

	#define FPM_64BIT 1


The only problem you might have with the above is that the line numbers are 
wrong.  My configure script is probably a little different from yours.

If anyone else is interested I'm attaching a patch to configure.ac so autoconf 
will generate the correct configure script.

I found this solution from http://bugs.gentoo.org/show_bug.cgi?id=49569 

- mark

-- 
Professor Gorden Newell threw another shutout in last week's Chem Eng. 130
midterm.  Once again a student did not receive a single point on his exam.
Newell has now tossed 5 shutouts this quarter.  Newell's earned exam average
has now dropped to a phenomenal 30%.

["xine-lib-1rc4-amd64.patch" (text/x-diff)]

--- configure.ac.orig   2004-06-05 00:57:36.000000000 +0000
+++ configure.ac        2004-06-05 00:57:48.000000000 +0000
@@ -1734,7 +1734,7 @@
     CFLAGS="-O3 -fomit-frame-pointer $m_wm $m_psb -fexpensive-optimizations $f_si \
$f_nsa -ffast-math -funroll-loops -finline-functions $CFLAGS"  DEBUG_CFLAGS="-O0 -g \
                $DEBUG_CFLAGS"
     AC_DEFINE_UNQUOTED(ARCH_X86_64,,[Define this if you're running x86 \
                architecture])
-    AC_DEFINE(FPM_INTEL,1,[Define to select libmad fixed point arithmetic \
implementation]) +    AC_DEFINE(FPM_64BIT,1,[Define to select libmad fixed point \
arithmetic implementation])  ;;

   s390-*)


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
xine-user mailing list
xine-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic