Hey all,
I have been trying to build latest loop-aes from source today on my
AMD64 (Athlon 64 3000+) machine today and ran into these errors:
$ make AMD64_ASM=y X86_ASM=n
rm -r -f *.ko tmp-d-kbuild
mkdir tmp-d-kbuild
echo 'obj-m:=' >>tmp-d-kbuild/Makefile
cd tmp-d-kbuild && ln -s ../loop.c-2.6.patched patched-loop.c && ln -s
../glue.c ../aes.h ../md5.h .
echo 'obj-m += loop.o' >>tmp-d-kbuild/Makefile
cd tmp-d-kbuild && ln -s ../aes-amd64.S ../md5-amd64.S .
echo 'loop-y:=patched-loop.o glue.o aes-amd64.o md5-amd64.o'
>>tmp-d-kbuild/Makefile
echo 'EXTRA_CFLAGS:= -DAMD64_ASM' >>tmp-d-kbuild/Makefile
cd /usr/src/linux-2.6.23.1 && make
SUBDIRS=/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild modules
make[1]: Entering directory `/usr/src/linux-2.6.23.1'
CC [M] /usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/patched-loop.o
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/patched-loop.c: In function
'loop_thread':
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/patched-loop.c:1019: warning:
'x' may be used uninitialized in this function
CC [M] /usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/glue.o
AS [M] /usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.o
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S: Assembler messages:
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:201: Error: bad
register name `%rsi)'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:202: Error: bad
register name `%rsi)'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:203: Error: bad
register name `%rsi)'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:204: Error: bad
register name `%rsi)'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:206: Error: bad
register name `%rbp'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:207: Error: bad
register name `%rdi)'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:208: Error: bad
register name `%rdx'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:209: Error: bad
register name `%rdi)'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:210: Error: bad
register name `%rbx'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:211: Error: bad
register name `%r13'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:212: Error: bad
register name `%r14'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:213: Error: bad
register name `%r15'
/usr/src/work/loop-AES-v3.2b/tmp-d-kbuild/aes-amd64.S:215: Error: bad
register name `%rbp)'
.
.
.
Build was started using:
make X86_ASM=n AMD64_ASM=y
Without giving those command line parameters build uses the X86 config,
though my kernel (2.6.23.1) is configured for Athlon K8 in Processor
Type and Features.
Anyone here using loop-aes with those AMD64 optimizations?
thanks for any help.
Thorsten
-
Linux-crypto: cryptography in and on the Linux system
Archive: http://mail.nl.linux.org/linux-crypto/