SRI-CSL / whole-program-llvm

A toolkit for building whole-program LLVM bitcode files
MIT License
72 stars 11 forks source link

endless loop with include/config/auto.conf.cmd #31

Closed janemba closed 1 year ago

janemba commented 1 year ago

Hi,

I have an issue while compiling the linux kernel with wllvm, I got the following endless loop at make step:

make LLVM_COMPILER=clang HOSTCC=wllvm CC=wllvm
SYNC    include/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
SYNC    include/config/auto.conf.cmd
SYNC    include/config/auto.conf.cmd
SYNC    include/config/auto.conf.cmd
SYNC    include/config/auto.conf.cmd
...

Is there any workaround for this issue ?

ianamason commented 1 year ago

What happens when you just use clang?

janemba commented 1 year ago

It works fine with clang. I found the issue, it was related to LLVM* variable environment. It is better to export them than using them in command-line.

ianamason commented 1 year ago

Hmmmm. That’s surprising.