在 Windows7 64 位中使用 MinGW 编译 Botan 时出现问题
我正在尝试将非 MSVC 版本的 Botan 安装到我的环境中。我下载了 tarball,提取了文件,然后运行了configure.py
运行configure.py后,我运行了make,make失败并出现“抱歉,未实现:64位模式未编译”错误。
这个错误是由什么引起的以及如何修复它?
configure.py 的输出:
INFO: Guessing target OS is windows (use --os to set)
INFO: Guessing to use compiler gcc (use --cc to set)
INFO: Guessing target processor is a x86_64/x86_64 (use --cpu to set)
INFO: Target is gcc-windows-x86_64-x86_64
INFO: Detected gcc version 4.6.1
INFO: Assuming gcc has TR1 (use --with-tr1=none to disable)
INFO: Skipping, by request only - bzip2 cms cvc gnump openssl qt_mutex zlib
INFO: Skipping, dependency failure - sha1_x86_64
INFO: Skipping, incompatible CPU - aes_ni aes_ssse3 md4_x86_32 md5_x86_32 mp_asm64 mp_x86_32 serpent_x86_32 sha1_x86_32 simd_altivec
INFO: Skipping, incompatible OS - alloc_mmap asm_x86_32 asm_x86_64 beos_stats dev_random egd fd_unix proc_walk pthreads unix_procs
INFO: Skipping, incompatible compiler - mp_msvc64 mp_x86_32_msvc
INFO: Skipping, loaded only if needed by dependency - aes_isa_eng mp_generic simd_scalar
INFO: Using MP module mp_x86_64
INFO: Using SIMD module simd_sse2
INFO: ssl: The SSL/TLS code is complex, new, and not yet reviewed, there may be serious bugs or security issues.
INFO: Assuming CPU is little endian
INFO: Assuming unaligned memory access works
INFO: Using copy to link files into build directory
INFO: Botan 1.10.1 build setup is complete
make 的输出:
g++ -m64 -Ibuild\include -O3 -finline-functions -D_REENTRANT -Wno-long-long -W -Wall -fPIC -fvisibility=hidden -c C:\Users\ben.zweber.IPHASE3\Downloads\Botan-1.10.1\src\algo_base\symkey.cpp -o build\lib\symkey.obj
C:\Users\ben.zweber.IPHASE3\Downloads\Botan-1.10.1\src\algo_base\symkey.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
C:\Users\ben.zweber.IPHASE3\Downloads\Botan-1.10.1\src\algo_base\symkey.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
make: *** [build\lib\symkey.obj] Error 1
I am trying to install the non-MSVC version of Botan to my environment. I downloaded the tarball, extracted the files, and ran configure.py
After running configure.py, I run make, make fails with a "sorry, unimplemented: 64-bit mode not compiled in" error.
What is this error caused by and how do I fix it?
Output from configure.py:
INFO: Guessing target OS is windows (use --os to set)
INFO: Guessing to use compiler gcc (use --cc to set)
INFO: Guessing target processor is a x86_64/x86_64 (use --cpu to set)
INFO: Target is gcc-windows-x86_64-x86_64
INFO: Detected gcc version 4.6.1
INFO: Assuming gcc has TR1 (use --with-tr1=none to disable)
INFO: Skipping, by request only - bzip2 cms cvc gnump openssl qt_mutex zlib
INFO: Skipping, dependency failure - sha1_x86_64
INFO: Skipping, incompatible CPU - aes_ni aes_ssse3 md4_x86_32 md5_x86_32 mp_asm64 mp_x86_32 serpent_x86_32 sha1_x86_32 simd_altivec
INFO: Skipping, incompatible OS - alloc_mmap asm_x86_32 asm_x86_64 beos_stats dev_random egd fd_unix proc_walk pthreads unix_procs
INFO: Skipping, incompatible compiler - mp_msvc64 mp_x86_32_msvc
INFO: Skipping, loaded only if needed by dependency - aes_isa_eng mp_generic simd_scalar
INFO: Using MP module mp_x86_64
INFO: Using SIMD module simd_sse2
INFO: ssl: The SSL/TLS code is complex, new, and not yet reviewed, there may be serious bugs or security issues.
INFO: Assuming CPU is little endian
INFO: Assuming unaligned memory access works
INFO: Using copy to link files into build directory
INFO: Botan 1.10.1 build setup is complete
Output from make:
g++ -m64 -Ibuild\include -O3 -finline-functions -D_REENTRANT -Wno-long-long -W -Wall -fPIC -fvisibility=hidden -c C:\Users\ben.zweber.IPHASE3\Downloads\Botan-1.10.1\src\algo_base\symkey.cpp -o build\lib\symkey.obj
C:\Users\ben.zweber.IPHASE3\Downloads\Botan-1.10.1\src\algo_base\symkey.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
C:\Users\ben.zweber.IPHASE3\Downloads\Botan-1.10.1\src\algo_base\symkey.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
make: *** [build\lib\symkey.obj] Error 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我似乎通过强制 configure.py 假定 32 位处理器解决了这个问题。
Ok, I seem to have resolved the issue by forcing configure.py to assume a 32bit processor.