RE: Compiling on 64-bit AMD

"Michael Levine" <[email protected]> Mon, 3 Nov 2003 23:49:45 -0500
Newsgroups gmane.linux.redhat.taroon
Message-ID <[email protected]>
in my gcc line the only include path
is -I/lib/modules/`uname -r`/build/include
which kernel-smp-2.4.21-3.EL.x86_64
 symlinked to the content of kernel-source-2.4.21-3.EL.x86_64
If i remove the include it breaks much earlier
  with lots of undeclareds

/usr/src/linux/include contains asm -> asm-x86_64


rpm -qa --qf "%{name}-%{version}-%{release}.%{arch}\n" | grep glibc
produces
glibc-profile-2.3.2-90.x86_64
glibc-headers-2.3.2-90.x86_64
glibc-common-2.3.2-90.x86_64
glibc-devel-2.3.2-90.x86_64
glibc-utils-2.3.2-90.x86_64
glibc-kernheaders-2.4-8.33.x86_64
glibc-2.3.2-90.x86_64

I can't find any 32-bit stuff anywhere

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Arjan van de Ven
Sent: Monday, November 03, 2003 7:33 AM
To: [email protected]
Subject: Re: Compiling on 64-bit AMD


On Mon, 2003-11-03 at 02:30, Michael Levine wrote:
> Hello,
> 	I am having trouble building a kernel module on AMD64 version of beta2,
> I keep getting:
> {standard input}:242035: Error: Incorrect register `%edx' used with `q'
> suffix
> {standard input}:245938: Error: Incorrect register `%eax' used with `q'
> suffix
> {standard input}:246454: Error: Incorrect register `%eax' used with `q'
> suffix
> {standard input}:246568: Error: Incorrect register `%edx' used with `q'
> suffix


this looks like you're using 32 bit headers...

are you sure you are compiling the module against the kernel headers and
not something else like the glibc headers ?


--
Taroon-beta-list mailing list
[email protected]
http://www.redhat.com/mailman/listinfo/taroon-beta-list