Skip to contentSkip to conversation

x86_64 builds

DISCUSSION Florian Bomers 2 participants 2 messages Jun 7, 2004 – Jun 8, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

when trying to compile ALSA drivers 1.0.5a on SLES 8.1 with kernel 2.4.19, the configure script always detected "k8" so gcc was called with "-march=athlon". This resulted in module binding problems, and I could not find a way to explicitly compile for x86_64. I hacked configure.in so the check

    #elif defined(CONFIG_X86_64)
        fprintf(file, "x86_64");

comes right at the beginning of the long list of #elif's. On AMD64, both CONFIG_MK8 and CONFIG_X86_64 are defined, so without the hack the configure script would always assume k8.

I think it makes sense to modify configure.in so that it compiles for 64-bit by default, or, at least, add a configure parameter to explicitly choose 64-bit.

Florian

Signature · 14 lines
Florian Bomers
----------------------------------------------
Java Sound              Sun Microsystems, Inc.
http://java.sun.com/products/java-media/sound/
----------------------------------------------
Please quote this email in your reply. Thanks!



-------------------------------------------------------
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
#1 lore raw

At Mon, 07 Jun 2004 14:26:19 -0700,

Quoted 12 lines · Florian Bomers

Hi,

when trying to compile ALSA drivers 1.0.5a on SLES 8.1 with kernel 2.4.19, the configure script always detected "k8" so gcc was called with "-march=athlon". This resulted in module binding problems, and I could not find a way to explicitly compile for x86_64. I hacked configure.in so the check

     #elif defined(CONFIG_X86_64)
         fprintf(file, "x86_64");
Quoted 7 lines

comes right at the beginning of the long list of #elif's. On AMD64, both CONFIG_MK8 and CONFIG_X86_64 are defined, so without the hack the configure script would always assume k8.

I think it makes sense to modify configure.in so that it compiles for 64-bit by default, or, at least, add a configure parameter to explicitly choose 64-bit.

Right. I'll fix this on CVS.

thanks,

Takashi

-------------------------------------------------------
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