|
系统:dell 1400 T5470 gcc 4.3.2 archlinux i686
在
#./configure.pl
后生成的Makefile有错误,把我的系统认成64位的了
#make
后的错误:
- g++ -m64 -Ibuild/include -O2 -finline-functions -march=nocona \
- -momit-leaf-frame-pointer -D_REENTRANT -ansi \
- -Wno-long-long -fpermissive -W -Wall -fPIC -c src/adler32.cpp -o build/lib/adler32.o
- src/adler32.cpp:1: sorry, unimplemented: 64-bit mode not compiled in
- make: *** [build/lib/adler32.o] Error 1
复制代码
是-m64和nocona参数错误,改为-m32和prescott后,再次make后的错误是:
- build/include/botan/mp_asm.h:35: error: impossible register constraint in ‘asm’
- src/mp_asm.cpp:154: error: impossible register constraint in ‘asm’
复制代码
不知道还有什么参数有问题,下面是Makefile的参数:
- CXX = g++ -m32
- LIB_OPT = -O2 -finline-functions
- CHECK_OPT = -O2
- MACH_OPT = -march=prescott -momit-leaf-frame-pointer
- LANG_FLAGS = -D_REENTRANT -ansi -Wno-long-long -fpermissive
- WARN_FLAGS = -W -Wall
- SO_OBJ_FLAGS = -fPIC
- SO_LINK_CMD = $(CXX) -shared -fPIC -Wl,-soname,$(SONAME)
- LINK_TO = -lm -lpthread -lrt
复制代码
谢谢! |
|