llvm - 如何成功编译此文件?
问题描述
我正在尝试从 NPB 编译 bt。我收到附加的错误Compilation Error。我还附上了我正在使用的make文件。
在这种情况下我做错了什么?
生成文件:
SHELL=/bin/sh
BENCHMARK=bt
BENCHMARKU=BT
include ../config/make.def
OBJS = bt.o \
${COMMON}/c_print_results.o ${COMMON}/c_timers.o ${COMMON}/c_wtime.o
include ../sys/make.common
# npbparams.h is included by header.h
# The following rule should do the trick but many make programs (not gmake)
# will do the wrong thing and rebuild the world every time (because the
# mod time on header.h is not changed. One solution would be to
# touch header.h but this might cause confusion if someone has
# accidentally deleted it. Instead, make the dependency on npbparams.h
# explicit in all the lines below (even though dependence is indirect).
# header.h: npbparams.h
${PROGRAM}: config ${OBJS}
${CLINK} ${CLINKFLAGS} -o ${PROGRAM} ${OBJS} ${C_LIB}
.c.o:
${CCOMPILE} $<
bt.o: bt.c header.h npbparams.h
clean:
- rm -f *.o *~ mputil*
- rm -f npbparams.h core
解决方案
似乎不见了../sys/setparams
这应该是一个可执行文件,并bt A
作为输入参数。
它可能是一个依赖的工具,应该首先构建。我已经尝试在 github 上搜索,并且可以找到一些包含../sys/setparams.c
,,也许,这些是你需要的项目。
希望它可以帮助你。
推荐阅读
- r - 读取受密码保护的 MS-Word 文件
- elasticsearch - 从封闭列表中搜索,并仅形成该列表
- python-3.x - 尝试导入 torchvision 时出现导入错误
- reactjs - 注册表单作为组件传递给路由时出错
- symfony - 无法刷新令牌,因为用户已更改 Syfmony 4 - EquatableInterface 问题
- package - 包限定名称。Package::<&var> 与 &Package::var 之间的差异(如果有的话)?
- android - SMS Retriever API 总是导致超时,尽管消息格式正确
- javascript - 取两个数学随机值并将它们添加到循环中
- javascript - 在应用程序的移动版本中下载 pdf
- javascript - 回调不是 Node JS 中的更新函数