Re: Compiling on 64-bit AMD
Jakub Jelinek <[email protected]> Mon, 3 Nov 2003 04:36:31 -0500
| Newsgroups | gmane.linux.redhat.taroon |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 03, 2003 at 02:30:13AM -0500, 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
>
> I have kernel source installed.
> I am trying to compile this modules
> (http://sourceforge.net/projects/slicoss/).
> I have tried with two different up2date versions of the kernel.
> Could someone please try to compile it and tell me if it fails for them too.
> I am reluctant to get RH3 if beta2 doesn't work.
Before glibc-devel was split into glibc-devel and glibc-headers, it was
possible if glibc-devel*.i386.rpm was installed after glibc-devel*.x86_64.rpm
that you had the IA-32 /usr/include headers which support only -m32
(unlike x86_64 /usr/include headers which support both -m32 and -m64).
The change was done on Sep, 2nd in glibc 2.3.2-79.
Uninstalling both glibc-devel's (with --nodeps) and then installing
them again in the right order (rpm -i glibc-devel*.i386.rpm glibc-devel*.x86_64.rpm)
should cure it.
I don't claim this must be this problem (the preprocessed source which
results in this incorrect assembly would tell exactly where the problem is),
but the errors which were caused by this looked exactly the same.
Jakub
--
Taroon-beta-list mailing list
[email protected]
http://www.redhat.com/mailman/listinfo/taroon-beta-list