关于编译lemur的问题,不知道在这里问是否合适。

wanght99 2008-05-11 09:48:04
我是一个初学者,下载了lemur的源码包,编译通过不了,烦劳哪位高手指点一下问题出在哪里,非常感谢。
以下是configure的提示:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ar... ar
checking for log in -lm... yes
checking for pthread_create in -lpthread... yes
checking for deflate in -lz... yes
checking for mkstemps in -liberty... no
checking whether C++ namespaces are supported... yes
checking whether isnan is in namespace std... yes
checking whether isnan is in namespace __gnu_cxx... no
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... yes
checking for mkstemp... yes
checking for mkstemps... no
checking if atomic integer available... no
configure: creating ./config.status
config.status: creating MakeDefns
config.status: creating Makefile
config.status: creating Makefile.app
config.status: creating site-search/build.param
config.status: creating site-search/crawl-index
config.status: creating site-search/seeds.txt
config.status: creating site-search/excluded_hosts



以下是make输出的提示的最后一部分。



在包含自 ../../utility/include/indri/ref_ptr.hpp:21 的文件中,
从 ../include/indri/QuerySpec.hpp:30,
从 ../include/indri/ListCache.hpp:27,
从 ../include/indri/CachedFrequencyBeliefNode.hpp:26,
从 ../src/CachedFrequencyBeliefNode.cpp:12:
../../utility/include/indri/atomic.hpp:22:28: 错误: bits/atomicity.h:没有该文件或目录
In file included from ../../utility/include/indri/ref_ptr.hpp:21,
from ../include/indri/QuerySpec.hpp:30,
from ../include/indri/ListCache.hpp:27,
from ../include/indri/CachedFrequencyBeliefNode.hpp:26,
from ../src/CachedFrequencyBeliefNode.cpp:12:
../../utility/include/indri/atomic.hpp: In function ‘void indri::atomic::increment(indri::atomic::value_type&)’:
../../utility/include/indri/atomic.hpp:49: 错误: ‘__atomic_add’在此作用域中尚未声明
../../utility/include/indri/atomic.hpp: In function ‘void indri::atomic::decrement(indri::atomic::value_type&)’:
../../utility/include/indri/atomic.hpp:53: 错误: ‘__atomic_add’在此作用域中尚未声明
make[1]: *** [CachedFrequencyBeliefNode.o] 错误 1
make[1]: Leaving directory `/home/wanght/Lab/lemur/lemur-4.6/retrieval/obj'


再次谢谢了!!!
...全文
119 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
flyingduck1 2008-07-09
  • 打赏
  • 举报
回复
错误: bits/atomicity.h:没有该文件或目录
估计是gcc的版本有问题
wanght99 2008-05-11
  • 打赏
  • 举报
回复
谢谢!
air_snake 2008-05-11
  • 打赏
  • 举报
回复
源码包里面的代码有问题是很正常的,要自己改的,或者不编译。有时候关系到你的编译环境。

23,120

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧