Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem about building krcore kernel module #2

Open
HandsomeBoy-gitch opened this issue Dec 4, 2022 · 2 comments
Open

A problem about building krcore kernel module #2

HandsomeBoy-gitch opened this issue Dec 4, 2022 · 2 comments

Comments

@HandsomeBoy-gitch
Copy link

HandsomeBoy-gitch commented Dec 4, 2022

Dear author, I had a problem compiling the krcore kernel module. I'm sorry that this may disturb your study and life. I am interested in your project and hope to reproduce it.Thank you for your checking of this question.
————————————————————————————————
[root@localhost KRdmaKit-syscall]# make
cp -f /usr/src/ofa_kernel/default/Module*.symvers /home/Lichenxiang/krdmakit/KRdmaKit-syscall/Module.symvers
make -C /lib/modules/4.19.37/build M=/home/Lichenxiang/krdmakit/KRdmaKit-syscall CC=clang-9 CONFIG_CC_IS_CLANG=y
make[1]: Entering directory `/usr/src/linux-4.19.37'
cd /home/Lichenxiang/krdmakit/KRdmaKit-syscall; cargo build -Z build-std=core,alloc --target=x86_64-unknown-none-linuxkernel
Updating crates.io index
warning: spurious network error (2 tries remaining): failed to connect to github.com: Connection timed out; class=Os (2)
Compiling linux-kernel-module v0.1.0 (/home/Lichenxiang/krdmakit/rust-kernel-rdma/deps/rust-kernel-module)
Compiling rust-kernel-linux-util v0.1.0 (/home/Lichenxiang/krdmakit/rust-kernel-rdma/rust-kernel-linux-util)
Compiling rust-kernel-rdma-base v0.1.0 (/home/Lichenxiang/krdmakit/rust-kernel-rdma/rust-kernel-rdma-base)
Compiling KRdmaKitSyscall v0.1.0 (/home/Lichenxiang/krdmakit/KRdmaKit-syscall)
The following warnings were emitted during compilation:

warning: In file included from :2:
warning: /usr/src/ofa_kernel/default/include/generated/autoconf.h:2:2: warning: #include_next in file found relative to primary source file or found by absolute path; will search from start of include path [-Winclude-next-absolute-path]
warning: #include_next <generated/autoconf.h>
warning: ^
warning: In file included from src/native/kernel_helper.c:1:
warning: In file included from src/native/kernel_helper.h:1:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/moduleparam.h:7:
warning: In file included from //usr/src/ofa_kernel/default/include/linux/kernel.h:6:
warning: /lib/modules/4.19.37/build/./include/linux/kernel.h:6:10: error: 'stdarg.h' file not found with include; use "quotes" instead
warning: #include <stdarg.h>
warning: ^~~~~~~~~~
warning: "stdarg.h"
warning: In file included from src/native/kernel_helper.c:1:
warning: In file included from src/native/kernel_helper.h:1:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/moduleparam.h:7:
warning: In file included from //usr/src/ofa_kernel/default/include/linux/kernel.h:6:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/kernel.h:6:
warning: /lib/modules/4.19.37/build/./include/linux/stdarg.h:26:5: warning: 'STDC_VERSION' is not defined, evaluates to 0 [-Wundef]
warning: #if STDC_VERSION >= 199901L || __cplusplus >= 201103L || !defined(STRICT_ANSI)
warning: ^
warning: /lib/modules/4.19.37/build/./include/linux/stdarg.h:26:36: warning: '__cplusplus' is not defined, evaluates to 0 [-Wundef]
warning: #if STDC_VERSION >= 199901L || __cplusplus >= 201103L || !defined(STRICT_ANSI)
warning: ^
warning: In file included from src/native/kernel_helper.c:1:
warning: In file included from src/native/kernel_helper.h:1:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/moduleparam.h:7:
warning: In file included from //usr/src/ofa_kernel/default/include/linux/kernel.h:6:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/kernel.h:14:
warning: In file included from //usr/src/ofa_kernel/default/include/linux/printk.h:8:
warning: /lib/modules/4.19.37/build/./include/linux/printk.h:5:10: error: 'stdarg.h' file not found with include; use "quotes" instead
warning: #include <stdarg.h>
warning: ^~~~~~~~~~
warning: "stdarg.h"
warning: In file included from src/native/kernel_helper.c:1:
warning: In file included from src/native/kernel_helper.h:1:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/moduleparam.h:7:
warning: In file included from //usr/src/ofa_kernel/default/include/linux/kernel.h:6:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/kernel.h:14:
warning: In file included from //usr/src/ofa_kernel/default/include/linux/printk.h:8:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/printk.h:336:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/dynamic_debug.h:6:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/jump_label.h:121:
warning: /lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:36:2: error: implicit declaration of function 'asm_volatile_goto' [-Werror,-Wimplicit-function-declaration]
warning: asm_volatile_goto("1:"
warning: ^
warning: /lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:42:3: error: expected ')'
warning: : : "i" (key), "i" (branch) : : l_yes);
warning: ^
warning: /lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:36:19: note: to match this '('
warning: asm_volatile_goto("1:"
warning: ^
warning: /lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:51:2: error: implicit declaration of function 'asm_volatile_goto' [-Werror,-Wimplicit-function-declaration]
warning: asm_volatile_goto("1:"
warning: ^
warning: /lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:58:3: error: expected ')'
warning: : : "i" (key), "i" (branch) : : l_yes);
warning: ^
warning: /lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:51:19: note: to match this '('
warning: asm_volatile_goto("1:"
warning: ^
warning: In file included from src/native/kernel_helper.c:1:
warning: In file included from src/native/kernel_helper.h:2:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/stat.h:19:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/time.h:6:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/seqlock.h:36:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/spinlock.h:51:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/preempt.h:81:
warning: In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/preempt.h:7:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/thread_info.h:38:
warning: In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/thread_info.h:53:
warning: In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/cpufeature.h:5:
warning: In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/processor.h:21:
warning: In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/msr.h:11:
warning: In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/cpumask.h:5:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/cpumask.h:12:
warning: In file included from //usr/src/ofa_kernel/default/include/linux/bitmap.h:6:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/bitmap.h:9:
warning: In file included from //usr/src/ofa_kernel/default/include/linux/string.h:6:
warning: /lib/modules/4.19.37/build/./include/linux/string.h:9:10: error: 'stdarg.h' file not found with include; use "quotes" instead
warning: #include <stdarg.h>
warning: ^~~~~~~~~~
warning: "stdarg.h"
warning: In file included from src/native/kernel_helper.c:1:
warning: In file included from src/native/kernel_helper.h:2:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/stat.h:19:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/time.h:6:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/seqlock.h:36:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/spinlock.h:51:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/preempt.h:81:
warning: In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/preempt.h:7:
warning: In file included from /lib/modules/4.19.37/build/./include/linux/thread_info.h:38:
warning: In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/thread_info.h:53:
warning: /lib/modules/4.19.37/build/./arch/x86/include/asm/cpufeature.h:164:2: error: implicit declaration of function 'asm_volatile_goto' [-Werror,-Wimplicit-function-declaration]
warning: asm_volatile_goto("1: jmp 6f\n"
warning: ^
warning: /lib/modules/4.19.37/build/./arch/x86/include/asm/cpufeature.h:195:4: error: expected ')'
warning: : : [feature] "i" (bit),
warning: ^
warning: /lib/modules/4.19.37/build/./arch/x86/include/asm/cpufeature.h:164:19: note: to match this '('
warning: asm_volatile_goto("1: jmp 6f\n"
warning: ^
warning: 3 warnings and 9 errors generated.

error: failed to run custom build command for KRdmaKitSyscall v0.1.0 (/home/Lichenxiang/krdmakit/KRdmaKit-syscall)

Caused by:
process didn't exit successfully: /home/Lichenxiang/krdmakit/KRdmaKit-syscall/target/debug/build/KRdmaKitSyscall-33d4d8acb94183c0/build-script-build (exit status: 1)
--- stdout
cargo:rust-cfg=out
cargo:rerun-if-env-changed=CC
cargo:rerun-if-env-changed=KDIR
cargo:rerun-if-env-changed=c_flags
cargo:rerun-if-env-changed=ofa_flags
cargo:rustc-cfg=BASE_MLNX_OFED_LINUX_5_1_2_3_7_1
cargo:rerun-if-changed=../include/common.h
cargo:rerun-if-changed=src/native/kernel_helper.h
cargo:rerun-if-changed=src/native/kernel_helper.c
OPT_LEVEL = Some("2")
HOST = Some("x86_64-unknown-linux-gnu")
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-none-linuxkernel
CFLAGS_x86_64-unknown-none-linuxkernel = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_none_linuxkernel
CFLAGS_x86_64_unknown_none_linuxkernel = None
cargo:rerun-if-env-changed=TARGET_CFLAGS
TARGET_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
running: "clang-9" "-O2" "-ffunction-sections" "-fdata-sections" "-gdwarf-4" "-fno-omit-frame-pointer" "--target=x86_64-unknown-none-linuxkernel" "-include" "/lib/modules/4.19.37/build/include/generated/autoconf.h" "-include" "/usr/src/ofa_kernel/default/include/generated/autoconf.h" "-I//usr/src/ofa_kernel/default/include" "-Wp,-MD,/home/Lichenxiang/krdmakit/KRdmaKit-syscall/target/x86_64-unknown-none-linuxkernel/debug/.libKRdmaKitSyscall.a.d" "-nostdinc" "-isystem" "/usr/local/bin/../include" "-I/lib/modules/4.19.37/build/./arch/x86/include" "-I/lib/modules/4.19.37/build/./arch/x86/include/generated" "-I/lib/modules/4.19.37/build/./include" "-I/lib/modules/4.19.37/build/./arch/x86/include/uapi" "-I/lib/modules/4.19.37/build/./arch/x86/include/generated/uapi" "-I/lib/modules/4.19.37/build/./include/uapi" "-I/lib/modules/4.19.37/build/./include/generated/uapi" "-include" "/lib/modules/4.19.37/build/./include/linux/kconfig.h" "-include" "/lib/modules/4.19.37/build/./include/linux/compiler_types.h" "-D__KERNEL__" "-Qunused-arguments" "-Wall" "-Wundef" "-Wstrict-prototypes" "-Wno-trigraphs" "-fno-strict-aliasing" "-fno-common" "-fshort-wchar" "-Werror-implicit-function-declaration" "-Wno-format-security" "-std=gnu89" "-no-integrated-as" "-fno-PIE" "-DCC_HAVE_ASM_GOTO" "-mno-sse" "-mno-mmx" "-mno-sse2" "-mno-3dnow" "-mno-avx" "-m64" "-mno-80387" "-mstack-alignment=8" "-mtune=generic" "-mno-red-zone" "-mcmodel=kernel" "-funit-at-a-time" "-DCONFIG_AS_CFI=1" "-DCONFIG_AS_CFI_SIGNAL_FRAME=1" "-DCONFIG_AS_CFI_SECTIONS=1" "-DCONFIG_AS_FXSAVEQ=1" "-DCONFIG_AS_SSSE3=1" "-DCONFIG_AS_CRC32=1" "-DCONFIG_AS_AVX=1" "-DCONFIG_AS_AVX2=1" "-DCONFIG_AS_AVX512=1" "-DCONFIG_AS_SHA1_NI=1" "-DCONFIG_AS_SHA256_NI=1" "-pipe" "-Wno-sign-compare" "-fno-asynchronous-unwind-tables" "-mretpoline-external-thunk" "-fno-delete-null-pointer-checks" "-O2" "-Wframe-larger-than=2048" "-fstack-protector-strong" "-Wno-format-invalid-specifier" "-Wno-gnu" "-Wno-address-of-packed-member" "-Wno-tautological-compare" "-mno-global-merge" "-Wno-unused-const-variable" "-g" "-pg" "-mfentry" "-DCC_USING_FENTRY" "-Wdeclaration-after-statement" "-Wno-pointer-sign" "-fno-strict-overflow" "-fno-merge-all-constants" "-fno-stack-check" "-Werror=implicit-int" "-Werror=strict-prototypes" "-Werror=date-time" "-Werror=incompatible-pointer-types" "-Wno-initializer-overrides" "-Wno-unused-value" "-Wno-format" "-Wno-sign-compare" "-Wno-format-zero-length" "-Wno-uninitialized" "-DMODULE" "-DKBUILD_BASENAME="libKRdmaKitSyscall"" "-DKBUILD_MODNAME="libKRdmaKitSyscall"" "-DMODULE" "-o" "/home/Lichenxiang/krdmakit/KRdmaKit-syscall/target/x86_64-unknown-none-linuxkernel/debug/build/KRdmaKitSyscall-3de05ecf81326dec/out/src/native/kernel_helper.o" "-c" "src/native/kernel_helper.c"
cargo:warning=In file included from :2:
cargo:warning=/usr/src/ofa_kernel/default/include/generated/autoconf.h:2:2: warning: #include_next in file found relative to primary source file or found by absolute path; will search from start of include path [-Winclude-next-absolute-path]
cargo:warning=#include_next <generated/autoconf.h>
cargo:warning= ^
cargo:warning=In file included from src/native/kernel_helper.c:1:
cargo:warning=In file included from src/native/kernel_helper.h:1:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/moduleparam.h:7:
cargo:warning=In file included from //usr/src/ofa_kernel/default/include/linux/kernel.h:6:
cargo:warning=/lib/modules/4.19.37/build/./include/linux/kernel.h:6:10: error: 'stdarg.h' file not found with include; use "quotes" instead
cargo:warning=#include <stdarg.h>
cargo:warning= ^~~~~~~~~~
cargo:warning= "stdarg.h"
cargo:warning=In file included from src/native/kernel_helper.c:1:
cargo:warning=In file included from src/native/kernel_helper.h:1:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/moduleparam.h:7:
cargo:warning=In file included from //usr/src/ofa_kernel/default/include/linux/kernel.h:6:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/kernel.h:6:
cargo:warning=/lib/modules/4.19.37/build/./include/linux/stdarg.h:26:5: warning: 'STDC_VERSION' is not defined, evaluates to 0 [-Wundef]
cargo:warning=#if STDC_VERSION >= 199901L || __cplusplus >= 201103L || !defined(STRICT_ANSI)
cargo:warning= ^
cargo:warning=/lib/modules/4.19.37/build/./include/linux/stdarg.h:26:36: warning: '__cplusplus' is not defined, evaluates to 0 [-Wundef]
cargo:warning=#if STDC_VERSION >= 199901L || __cplusplus >= 201103L || !defined(STRICT_ANSI)
cargo:warning= ^
cargo:warning=In file included from src/native/kernel_helper.c:1:
cargo:warning=In file included from src/native/kernel_helper.h:1:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/moduleparam.h:7:
cargo:warning=In file included from //usr/src/ofa_kernel/default/include/linux/kernel.h:6:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/kernel.h:14:
cargo:warning=In file included from //usr/src/ofa_kernel/default/include/linux/printk.h:8:
cargo:warning=/lib/modules/4.19.37/build/./include/linux/printk.h:5:10: error: 'stdarg.h' file not found with include; use "quotes" instead
cargo:warning=#include <stdarg.h>
cargo:warning= ^~~~~~~~~~
cargo:warning= "stdarg.h"
cargo:warning=In file included from src/native/kernel_helper.c:1:
cargo:warning=In file included from src/native/kernel_helper.h:1:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/moduleparam.h:7:
cargo:warning=In file included from //usr/src/ofa_kernel/default/include/linux/kernel.h:6:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/kernel.h:14:
cargo:warning=In file included from //usr/src/ofa_kernel/default/include/linux/printk.h:8:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/printk.h:336:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/dynamic_debug.h:6:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/jump_label.h:121:
cargo:warning=/lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:36:2: error: implicit declaration of function 'asm_volatile_goto' [-Werror,-Wimplicit-function-declaration]
cargo:warning= asm_volatile_goto("1:"
cargo:warning= ^
cargo:warning=/lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:42:3: error: expected ')'
cargo:warning= : : "i" (key), "i" (branch) : : l_yes);
cargo:warning= ^
cargo:warning=/lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:36:19: note: to match this '('
cargo:warning= asm_volatile_goto("1:"
cargo:warning= ^
cargo:warning=/lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:51:2: error: implicit declaration of function 'asm_volatile_goto' [-Werror,-Wimplicit-function-declaration]
cargo:warning= asm_volatile_goto("1:"
cargo:warning= ^
cargo:warning=/lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:58:3: error: expected ')'
cargo:warning= : : "i" (key), "i" (branch) : : l_yes);
cargo:warning= ^
cargo:warning=/lib/modules/4.19.37/build/./arch/x86/include/asm/jump_label.h:51:19: note: to match this '('
cargo:warning= asm_volatile_goto("1:"
cargo:warning= ^
cargo:warning=In file included from src/native/kernel_helper.c:1:
cargo:warning=In file included from src/native/kernel_helper.h:2:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/stat.h:19:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/time.h:6:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/seqlock.h:36:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/spinlock.h:51:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/preempt.h:81:
cargo:warning=In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/preempt.h:7:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/thread_info.h:38:
cargo:warning=In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/thread_info.h:53:
cargo:warning=In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/cpufeature.h:5:
cargo:warning=In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/processor.h:21:
cargo:warning=In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/msr.h:11:
cargo:warning=In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/cpumask.h:5:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/cpumask.h:12:
cargo:warning=In file included from //usr/src/ofa_kernel/default/include/linux/bitmap.h:6:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/bitmap.h:9:
cargo:warning=In file included from //usr/src/ofa_kernel/default/include/linux/string.h:6:
cargo:warning=/lib/modules/4.19.37/build/./include/linux/string.h:9:10: error: 'stdarg.h' file not found with include; use "quotes" instead
cargo:warning=#include <stdarg.h>
cargo:warning= ^~~~~~~~~~
cargo:warning= "stdarg.h"
cargo:warning=In file included from src/native/kernel_helper.c:1:
cargo:warning=In file included from src/native/kernel_helper.h:2:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/stat.h:19:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/time.h:6:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/seqlock.h:36:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/spinlock.h:51:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/preempt.h:81:
cargo:warning=In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/preempt.h:7:
cargo:warning=In file included from /lib/modules/4.19.37/build/./include/linux/thread_info.h:38:
cargo:warning=In file included from /lib/modules/4.19.37/build/./arch/x86/include/asm/thread_info.h:53:
cargo:warning=/lib/modules/4.19.37/build/./arch/x86/include/asm/cpufeature.h:164:2: error: implicit declaration of function 'asm_volatile_goto' [-Werror,-Wimplicit-function-declaration]
cargo:warning= asm_volatile_goto("1: jmp 6f\n"
cargo:warning= ^
cargo:warning=/lib/modules/4.19.37/build/./arch/x86/include/asm/cpufeature.h:195:4: error: expected ')'
cargo:warning= : : [feature] "i" (bit),
cargo:warning= ^
cargo:warning=/lib/modules/4.19.37/build/./arch/x86/include/asm/cpufeature.h:164:19: note: to match this '('
cargo:warning= asm_volatile_goto("1: jmp 6f\n"
cargo:warning= ^
cargo:warning=3 warnings and 9 errors generated.
exit status: 1

--- stderr

error occurred: Command "clang-9" "-O2" "-ffunction-sections" "-fdata-sections" "-gdwarf-4" "-fno-omit-frame-pointer" "--target=x86_64-unknown-none-linuxkernel" "-include" "/lib/modules/4.19.37/build/include/generated/autoconf.h" "-include" "/usr/src/ofa_kernel/default/include/generated/autoconf.h" "-I//usr/src/ofa_kernel/default/include" "-Wp,-MD,/home/Lichenxiang/krdmakit/KRdmaKit-syscall/target/x86_64-unknown-none-linuxkernel/debug/.libKRdmaKitSyscall.a.d" "-nostdinc" "-isystem" "/usr/local/bin/../include" "-I/lib/modules/4.19.37/build/./arch/x86/include" "-I/lib/modules/4.19.37/build/./arch/x86/include/generated" "-I/lib/modules/4.19.37/build/./include" "-I/lib/modules/4.19.37/build/./arch/x86/include/uapi" "-I/lib/modules/4.19.37/build/./arch/x86/include/generated/uapi" "-I/lib/modules/4.19.37/build/./include/uapi" "-I/lib/modules/4.19.37/build/./include/generated/uapi" "-include" "/lib/modules/4.19.37/build/./include/linux/kconfig.h" "-include" "/lib/modules/4.19.37/build/./include/linux/compiler_types.h" "-D__KERNEL__" "-Qunused-arguments" "-Wall" "-Wundef" "-Wstrict-prototypes" "-Wno-trigraphs" "-fno-strict-aliasing" "-fno-common" "-fshort-wchar" "-Werror-implicit-function-declaration" "-Wno-format-security" "-std=gnu89" "-no-integrated-as" "-fno-PIE" "-DCC_HAVE_ASM_GOTO" "-mno-sse" "-mno-mmx" "-mno-sse2" "-mno-3dnow" "-mno-avx" "-m64" "-mno-80387" "-mstack-alignment=8" "-mtune=generic" "-mno-red-zone" "-mcmodel=kernel" "-funit-at-a-time" "-DCONFIG_AS_CFI=1" "-DCONFIG_AS_CFI_SIGNAL_FRAME=1" "-DCONFIG_AS_CFI_SECTIONS=1" "-DCONFIG_AS_FXSAVEQ=1" "-DCONFIG_AS_SSSE3=1" "-DCONFIG_AS_CRC32=1" "-DCONFIG_AS_AVX=1" "-DCONFIG_AS_AVX2=1" "-DCONFIG_AS_AVX512=1" "-DCONFIG_AS_SHA1_NI=1" "-DCONFIG_AS_SHA256_NI=1" "-pipe" "-Wno-sign-compare" "-fno-asynchronous-unwind-tables" "-mretpoline-external-thunk" "-fno-delete-null-pointer-checks" "-O2" "-Wframe-larger-than=2048" "-fstack-protector-strong" "-Wno-format-invalid-specifier" "-Wno-gnu" "-Wno-address-of-packed-member" "-Wno-tautological-compare" "-mno-global-merge" "-Wno-unused-const-variable" "-g" "-pg" "-mfentry" "-DCC_USING_FENTRY" "-Wdeclaration-after-statement" "-Wno-pointer-sign" "-fno-strict-overflow" "-fno-merge-all-constants" "-fno-stack-check" "-Werror=implicit-int" "-Werror=strict-prototypes" "-Werror=date-time" "-Werror=incompatible-pointer-types" "-Wno-initializer-overrides" "-Wno-unused-value" "-Wno-format" "-Wno-sign-compare" "-Wno-format-zero-length" "-Wno-uninitialized" "-DMODULE" "-DKBUILD_BASENAME="libKRdmaKitSyscall"" "-DKBUILD_MODNAME="libKRdmaKitSyscall"" "-DMODULE" "-o" "/home/Lichenxiang/krdmakit/KRdmaKit-syscall/target/x86_64-unknown-none-linuxkernel/debug/build/KRdmaKitSyscall-3de05ecf81326dec/out/src/native/kernel_helper.o" "-c" "src/native/kernel_helper.c" with args "clang-9" did not execute successfully (status code exit status: 1).
————————————————————————————————
When I enter the make command, it prompts the above error. My server is CentOS7, which is different from your server Ubuntu 18. Therefore, I speculate that it may be an operating system type problem. I don't know whether this speculation is correct. I hope you can provide an answer. Thank you again.

@CaribouW
Copy link
Collaborator

CaribouW commented Dec 4, 2022

Hi. Thanks for your feedback. The error message seems to be related with native code's compiling, thus it has noting to do with rustup toolchain. So I believe your speculation is correct since we now only provide the modification version of OFED driver under ubuntu 4.9 (see in install-our-modified-version-of--mellanox-ofed-driver).

Please first check out into branch atc22-artifacts (i.e. git checkout atc22-artifacts) and then check if all the essential denpencies are fullfilled (see in install.md). I recommend you to use ubuntu 16.04 with kernel version 4.15.0-46-generic.

@HandsomeBoy-gitch
Copy link
Author

Thank you for your reply. I will try to find an available ubuntu system machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants