Closed zyz-2333-huaiqian closed 1 year ago
I did a fresh clone and tried to reproduce but I didn't run into the same issue.
for me it also looks like this:
-- Build files have been written to: /home/jkl/Developer/kasper/build
for you there is kasper
twice in there so it looks like the path could be incorrect there.
Did you make some local changes?
No, I didn't. I just named the folder outside with the name 'kasper'. There are 7 under the folder 'build', is it all right? Maybe it lacks something.
build.ninja
CMakeFiles
compile_commands.json
static
CMakeCache.txt
cmake_install.cmake
passes
there should be a Makefile
in there.
This is the output I get from task build
for the first two commands:
task: [build] mkdir -p ${ROOT}/build
task: [build] cd ${ROOT}/build && cmake ..
-- The C compiler identification is Clang 11.1.0
-- The CXX compiler identification is Clang 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/jkl/Developer/kasper/kdfsan-llvm-project/build/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/jkl/Developer/kasper/kdfsan-llvm-project/build/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /home/jkl/Developer/kasper/kdfsan-llvm-project/build/bin/clang
-- Linker detection: GNU ld
-- Using LLVM version 11.1.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jkl/Developer/kasper/build
Looks like there is quite a bit missing for you. Looks like it might be a cmake
issue. Are you sure you installed all the dependencies? I only tried installing it on ubuntu.
maybe I am not. I tried to reproduce it to check all the dependencies and when I run the command "sudo sh -c "$(curl -ssL https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin" I got
go-task/task info checking GitHub for latest tag
go-task/task debug http_download https://github.com/go-task/task/releases/latest
go-task/task crit unable to find '' - use 'latest' or see https://github.com/go-task/task/releases for details
Can I install those dependencies by other way?
Did you run:
sudo apt install build-essential clang-11 lld-11 libelf-dev qemu-system-x86 bison flex golang libssl-dev cmake debootstrap python3-pexpect socat ninja-build ccache
?
I don't think it has anything to do with task
you can also just try to run those commands from within the root directory of the repo:
rm -rf build
mkdir -p build
cd build && cmake ..
and see if it makes a difference.
the output of those commands:
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at static/CMakeLists.txt:7 (message):
$LLVMPREFIX is not defined
-- Configuring incomplete, errors occurred!
See also "/home/zyz/secure/kasper/kasper/build/CMakeFiles/CMakeOutput.log".
I think I lack the LLVM?
Did you run:
task update
task llvm:config llvm:build
already?
Ah sorry but the missing LLVMPREFIX
needs to be set before running the commands I send you:
export LLVMPREFIX=$PWD/kdfsan-llvm-project/build
rm -rf build
mkdir -p build
cd build && cmake ..
Oh, it works. I got 'makefile' under the folder 'build'. Thank you!
Failed to run task "build", maybe the command "make" go wrong here is the output: