我正在尝试为Python构建scikit-learn库,它的构建文件是Windows32位系统中的c++文件。在构建过程中,我得到了以下错误。
undefined reference to `__sync_fetch_and_add_4'
c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: build\temp
.win32-2.7\Release\sklearn\ensemble\_gradient_boosting.o: bad reloc address 0x0
in section `.data'
collect2.exe: error: ld returned 1 exit status
error: Command "g++ -shared build\temp.win32-2.7\Release\sklearn\ensemble\_gradi
ent_boosting.o -LC:\Python27\libs -LC:\Python27\PCbuild -Lbuild\temp.win32-2.7 -
lpython27 -lmsvcr90 -o build\lib.win32-2.7\sklearn\ensemble\_gradient_boosting.p
yd" failed with exit status 1这是什么原因呢?关于未定义的引用,第一行是什么意思?我该如何解决这个问题?
发布于 2013-07-13 03:51:20
你的问题缺少相当多的基本信息,比如你正在使用的Python版本,但我猜它是2.7版本的错误消息。你有没有尝试过在其他平台上构建它?我听说Fedora对这类东西很有帮助。
https://stackoverflow.com/questions/17621541
复制相似问题