如何成功编译该文件?

时间:2019-10-10 02:03:36

标签: llvm

我正在尝试从NPB编译bt。我收到了附件错误Compilation Error 。我还附加了我正在使用的Make文件。

在这种情况下我怎么了?

MakeFile:

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

1 个答案:

答案 0 :(得分:0)

似乎缺少../sys/setparams

应为可执行文件,并以bt A作为输入参数。

可能应该首先构建依赖的工具。我已经尝试在github上进行搜索,并且可以找到一些包含../sys/setparams.c的项目,也许这些正是您所需要的。

希望它对您有帮助。