开发者社区> 问答> 正文

error: implicit declaration of function `__sync_fetch_and_or'

用codeviz来生成linux内核的函数调用图
首先是编译内核,这里我们的目的是查看函数调用关系,并非安装新内核,所以直接
进行配置编译:

make menuconfig
make CC=/usr/local/gcc-graph/bin/gcc bzImage
make CC=/usr/local/gcc-graph/bin/gcc modules
在进行到make CC=/usr/local/gcc-graph/bin/gcc modules这一步的时候出现如下错误提示:
opened dep file drivers/staging/line6/pcm.c.cdepn
drivers/staging/line6/pcm.c: In function line6_pcm_start':
drivers/staging/line6/pcm.c:92: error: implicit declaration of function__sync_fetch_and_or'
drivers/staging/line6/pcm.c:137: error: implicit declaration of function `__sync_fetch_and_and'
make[3]: *** [drivers/staging/line6/pcm.o] Error 1
make[2]: *** [drivers/staging/line6] Error 2
make[1]: *** [drivers/staging] Error 2
make: *** [drivers] Error 2

这种情况有没有遇到过啊,如何解决的呢,急急急!

展开
收起
云栖技术 2016-06-03 00:13:33 2816 0
1 条回答
写回答
取消 提交回答
  • 社区爱好者,专为云栖社区服务!

    __sync_fetch_and_and这个函数没有引用他的头文件,或者在定义的地方没有EXPORT_SYMBOL出来
    如果你想尽快编译完内核的话,make menuconfig的时候把这个模块给去掉,只编译你需要查看调用关系的那支驱动

    2019-07-17 19:25:42
    赞同 展开评论 打赏
问答分类:
问答地址:
相关产品:
问答排行榜
最热
最新

相关电子书

更多
Dynamic DDL Adding Structure to Streaming Data on the Fly 立即下载
Froma single droplet toafull b 立即下载
Semantic Search--Fast Results from Large,Foreign Language Corpora 立即下载