make error on AMD64

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

make error on AMD64

Ronan McGlue
Hi i have a dual opteron box running slamd64 and am trying to compile

openssl-engine-0.9.6m$./config

./config
Operating system: x86_64-whatever-linux2
Configuring for linux-elf
Configuring for linux-elf
IsWindows=0
CC            =gcc
CFLAG         =-fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H
-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -DSHA1_ASM
-DMD5_ASM -DRMD160_ASM
EX_LIBS       =-ldl
BN_ASM        =asm/bn86-elf.o asm/co86-elf.o
DES_ENC       =asm/dx86-elf.o asm/yx86-elf.o
BF_ENC        =asm/bx86-elf.o
CAST_ENC      =asm/cx86-elf.o
RC4_ENC       =asm/rx86-elf.o
RC5_ENC       =asm/r586-elf.o
MD5_OBJ_ASM   =asm/mx86-elf.o
SHA1_OBJ_ASM  =asm/sx86-elf.o
RMD160_OBJ_ASM=asm/rm86-elf.o
PROCESSOR     =
RANLIB        =/usr/bin/ranlib
PERL          =/usr/bin/perl
THIRTY_TWO_BIT mode
DES_PTR used
DES_RISC1 used
DES_UNROLL used
BN_LLONG mode
RC4_INDEX mode
RC4_CHUNK is undefined

[snip]

generating dummy tests (if needed)...
make[1]: Entering directory `/home/exim/openssl-engine-0.9.6m/test'
make[1]: Nothing to be done for `generate'.
make[1]: Leaving directory `/home/exim/openssl-engine-0.9.6m/test'

Configured for linux-elf

~/openssl-engine-0.9.6m$make
+ rm -f libcrypto.so.0
+ rm -f libcrypto.so
+ rm -f libcrypto.so.0.9.6
+ rm -f libssl.so.0
+ rm -f libssl.so
+ rm -f libssl.so.0.9.6
making all in crypto...
make[1]: Entering directory `/home/exim/openssl-engine-0.9.6m/crypto'
( echo "#ifndef MK1MF_BUILD"; \
echo '  /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c
*/'; \
echo '  #define CFLAGS "gcc -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM"'; \
echo '  #define PLATFORM "linux-elf"'; \
echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
echo '#endif' ) >buildinf.h
gcc -I. -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o cryptlib.o cryptlib.c
gcc -I. -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o mem.o mem.c
gcc -I. -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o mem_clr.o mem_clr.c
mem_clr.c: In function `OPENSSL_cleanse':
mem_clr.c:71: warning: cast from pointer to integer of different size
gcc -I. -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o mem_dbg.o mem_dbg.c
gcc -I. -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o cversion.o cversion.c
gcc -I. -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o ex_data.o ex_data.c
gcc -I. -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o tmdiff.o tmdiff.c
gcc -I. -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o cpt_err.o cpt_err.c
gcc -I. -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o ebcdic.o ebcdic.c
gcc -I. -I../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall
-DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o uid.o uid.c
ar r ../libcrypto.a cryptlib.o mem.o mem_clr.o mem_dbg.o cversion.o
ex_data.o tmdiff.o cpt_err.o ebcdic.o uid.o
ar: creating ../libcrypto.a
You may get an error following this line. Please ignore.
/usr/bin/ranlib ../libcrypto.a
making all in crypto/md2...
make[2]: Entering directory `/home/exim/openssl-engine-0.9.6m/crypto/md2'
gcc -I.. -I../.. -I../../include -fPIC -DTHREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
-m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o md2_dgst.o md2_dgst.c
gcc -I.. -I../.. -I../../include -fPIC -DTHREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
-m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o md2_one.o md2_one.c
ar r ../../libcrypto.a md2_dgst.o md2_one.o
You may get an error following this line. Please ignore.
/usr/bin/ranlib ../../libcrypto.a
make[2]: Leaving directory `/home/exim/openssl-engine-0.9.6m/crypto/md2'
making all in crypto/md4...
make[2]: Entering directory `/home/exim/openssl-engine-0.9.6m/crypto/md4'
gcc -I.. -I../.. -I../../include -fPIC -DTHREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
-m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o md4_dgst.o md4_dgst.c
gcc -I.. -I../.. -I../../include -fPIC -DTHREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
-m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o md4_one.o md4_one.c
ar r ../../libcrypto.a md4_dgst.o md4_one.o
You may get an error following this line. Please ignore.
/usr/bin/ranlib ../../libcrypto.a
make[2]: Leaving directory `/home/exim/openssl-engine-0.9.6m/crypto/md4'
making all in crypto/md5...
make[2]: Entering directory `/home/exim/openssl-engine-0.9.6m/crypto/md5'
gcc -I.. -I../.. -I../../include -fPIC -DTHREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
-m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o md5_dgst.o md5_dgst.c
gcc -I.. -I../.. -I../../include -fPIC -DTHREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
-m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM   -c -o md5_one.o md5_one.c
(cd asm; /usr/bin/perl md5-586.pl cpp >mx86unix.cpp)
gcc -E -DELF -x c asm/mx86unix.cpp | as -o asm/mx86-elf.o
md5-586.s: Assembler messages:
md5-586.s:58: Error: suffix or operands invalid for `push'
md5-586.s:59: Error: suffix or operands invalid for `push'
md5-586.s:63: Error: suffix or operands invalid for `push'
md5-586.s:65: Error: suffix or operands invalid for `push'
md5-586.s:69: Error: suffix or operands invalid for `push'
md5-586.s:723: Error: suffix or operands invalid for `pop'
md5-586.s:724: Error: suffix or operands invalid for `pop'
md5-586.s:725: Error: suffix or operands invalid for `pop'
md5-586.s:726: Error: suffix or operands invalid for `pop'
md5-586.s:727: Error: suffix or operands invalid for `pop'
make[2]: *** [asm/mx86-elf.o] Error 1
make[2]: Leaving directory `/home/exim/openssl-engine-0.9.6m/crypto/md5'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/exim/openssl-engine-0.9.6m/crypto'
make: *** [sub_all] Error 1
exim@scarab:~/openssl-engine-0.9.6m$


it doesnt appear to be compiling a 64 bit version ( CFLAGS = -m486 )

./Configure

[snip]

linux-alpha+bwx-ccc linux-alpha+bwx-gcc linux-alpha-ccc linux-alpha-gcc
linux-aout linux-elf linux-elf-arm linux-ia64 linux-m68k linux-mips
linux-mipsel linux-parisc linux-ppc linux-s390 linux-s390x linux-sparcv7
linux-sparcv8 linux-sparcv9

[snip]

is the ia64 INTEL isnt it... is there no AMD64 vrsion??


exim@scarab:~/openssl-engine-0.9.6m$ gcc -v
Reading specs from /usr/lib/gcc/x86_64-slackware-linux/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --target=x86_64-slackware-linux
--host=x86_64-slackware-linux
Thread model: posix
gcc version 3.4.3

make -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.



also can see any reference to this error on web...

thanks




--
========

Regards

Ronan McGlue
Info. Services
QUB
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]