From 14039d059791714d88797f404a9e7c4ffde5af68 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Sun, 3 Mar 2019 12:58:47 +0000 Subject: [PATCH] pkg/bpftrace: Disable the package The compile fails with: [ 30%] Building CXX object src/ast/CMakeFiles/ast.dir/codegen_llvm.cpp.o [ 30%] Building CXX object src/ast/CMakeFiles/ast.dir/irbuilderbpf.cpp.o [ 31%] Building CXX object src/ast/CMakeFiles/ast.dir/printer.cpp.o [ 31%] Building CXX object src/ast/CMakeFiles/ast.dir/semantic_analyser.cpp.o /bpftrace/src/ast/irbuilderbpf.cpp: In member function 'llvm::CallInst* bpftrace::ast::IRBuilderBPF::CreateProbeReadStr(llvm::AllocaInst*, size_t, llvm::Value*)': /bpftrace/src/ast/irbuilderbpf.cpp:279:16: error: 'BPF_FUNC_probe_read_str' was not declared in this scope getInt64(BPF_FUNC_probe_read_str), ^~~~~~~~~~~~~~~~~~~~~~~ /bpftrace/src/ast/irbuilderbpf.cpp: In member function 'llvm::CallInst* bpftrace::ast::IRBuilderBPF::CreateProbeReadStr(llvm::Value*, size_t, llvm::Value*)': /bpftrace/src/ast/irbuilderbpf.cpp:294:16: error: 'BPF_FUNC_probe_read_str' was not declared in this scope getInt64(BPF_FUNC_probe_read_str), ^~~~~~~~~~~~~~~~~~~~~~~ /bpftrace/src/ast/irbuilderbpf.cpp: In member function 'llvm::CallInst* bpftrace::ast::IRBuilderBPF::CreateGetCurrentCgroupId()': /bpftrace/src/ast/irbuilderbpf.cpp:422:16: error: 'BPF_FUNC_get_current_cgroup_id' was not declared in this scope getInt64(BPF_FUNC_get_current_cgroup_id), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /bpftrace/src/ast/irbuilderbpf.cpp: In member function 'llvm::CallInst* bpftrace::ast::IRBuilderBPF::CreateGetCurrentTask()': /bpftrace/src/ast/irbuilderbpf.cpp:461:16: error: 'BPF_FUNC_get_current_task' was not declared in this scope getInt64(BPF_FUNC_get_current_task), ^~~~~~~~~~~~~~~~~~~~~~~~~ /bpftrace/src/ast/irbuilderbpf.cpp: In member function 'llvm::CallInst* bpftrace::ast::IRBuilderBPF::CreateGetStackId(llvm::Value*, bool)': /bpftrace/src/ast/irbuilderbpf.cpp:497:16: error: 'BPF_FUNC_get_stackid' was not declared in this scope getInt64(BPF_FUNC_get_stackid), ^~~~~~~~~~~~~~~~~~~~ /bpftrace/src/ast/semantic_analyser.cpp: In member function 'int bpftrace::ast::SemanticAnalyser::create_maps(bool)': /bpftrace/src/ast/semantic_analyser.cpp:871:68: error: 'BPF_MAP_TYPE_STACK_TRACE' was not declared in this scope bpftrace_.stackid_map_ = std::make_unique(BPF_MAP_TYPE_STACK_TRACE); ^~~~~~~~~~~~~~~~~~~~~~~~ /bpftrace/src/ast/semantic_analyser.cpp:885:64: error: 'BPF_MAP_TYPE_STACK_TRACE' was not declared in this scope bpftrace_.stackid_map_ = std::make_unique(BPF_MAP_TYPE_STACK_TRACE); ^~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [src/ast/CMakeFiles/ast.dir/build.make:89: src/ast/CMakeFiles/ast.dir/irbuilderbpf.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [src/ast/CMakeFiles/ast.dir/build.make:115: src/ast/CMakeFiles/ast.dir/semantic_analyser.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:276: src/ast/CMakeFiles/ast.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 Signed-off-by: Rolf Neugebauer --- pkg/bpftrace/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bpftrace/build.yml b/pkg/bpftrace/build.yml index fc714787a..2c203041d 100644 --- a/pkg/bpftrace/build.yml +++ b/pkg/bpftrace/build.yml @@ -1,4 +1,4 @@ image: bpftrace network: true arches: - - amd64 +