We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm getting the clang error, and failed to build from source.
bluet@Titania:~/workspace/rust.ko$ make Compiling linux-std v0.1.0 (file:///home/bluet/workspace/rust.ko/std) error: failed to run custom build command forlinux-std v0.1.0 (file:///home/bluet/workspace/rust.ko/std) Process didn't exit successfully:/home/bluet/workspace/rust.ko/target/debug/build/linux-std-b8b7ab4d3d9bbe98/build-script-build` (exit code: 101) --- stdout Working directory: /usr/src/linux-headers-3.19.0-58-generic LLVM arguments: -Wp,-MD,/home/bluet/workspace/rust.ko/build/.libhello.a.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -DKBUILD_STR(s)=#s -Werror=implicit-int -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -Werror=strict-prototypes -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -DKBUILD_BASENAME=KBUILD_STR(libhello) -pg -DMODULE -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -Dfalse=__false -Dtrue=__true -Du64=__u64 /home/bluet/workspace/rust.ko/target/x86_64-unknown-none-gnu/debug/build/linux-std-b8b7ab4d3d9bbe98/out/kernel-include.h
bluet@Titania:~/workspace/rust.ko$ make Compiling linux-std v0.1.0 (file:///home/bluet/workspace/rust.ko/std) error: failed to run custom build command for
Process didn't exit successfully:
--- stderr error: error: unknown argument: '-fno-delete-null-pointer-checks' warning: warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option] warning: include/asm-generic/int-ll64.h:25:28: warning: redefinition of typedef '__u64' is a C11 feature [-Wtypedef-redefinition] thread '
RUST_BACKTRACE=1
make[2]: *** [/home/bluet/workspace/rust.ko/build/libhello.a] Error 101 make[1]: *** [module/home/bluet/workspace/rust.ko/build] Error 2 make: *** [all] Error 2 My env bluet@Titania:/workspace/rust.ko$ uname -a Linux Titania 3.19.0-58-generic #6414.04.1-Ubuntu SMP Fri Mar 18 19:05:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux bluet@Titania:/workspace/rust.ko$ clang -v Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4) Target: x86_64-pc-linux-gnu Thread model: posix Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.8 Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.8.4 Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.9 Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.9.3 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8.4 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9.3 Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8 Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.4 Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9 Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.3 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.3 Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8 bluet@Titania:/workspace/rust.ko$ rustc -V rustc 1.9.0-nightly (b678600ac 2016-03-29) bluet@Titania:~/workspace/rust.ko$ cargo -V cargo 0.10.0-nightly (d38f03b 2016-03-29) `
My env
The text was updated successfully, but these errors were encountered:
According to #18 (comment) Adding "-fno-delete-null-pointer-checks" in CLANG_ARGS_BLACKLIST fixed this error.
Sorry, something went wrong.
Fix clang flag error tsgates#19
0635188
Merge pull request #20 from BlueT/master
fbea6b6
Fix clang flag error #19
Wow that's quick! 👍
No branches or pull requests
I'm getting the clang error, and failed to build from source.
bluet@Titania:~/workspace/rust.ko$ make Compiling linux-std v0.1.0 (file:///home/bluet/workspace/rust.ko/std) error: failed to run custom build command for
linux-std v0.1.0 (file:///home/bluet/workspace/rust.ko/std)Process didn't exit successfully:
/home/bluet/workspace/rust.ko/target/debug/build/linux-std-b8b7ab4d3d9bbe98/build-script-build` (exit code: 101)--- stdout
Working directory: /usr/src/linux-headers-3.19.0-58-generic
LLVM arguments: -Wp,-MD,/home/bluet/workspace/rust.ko/build/.libhello.a.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/include -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -DKBUILD_STR(s)=#s -Werror=implicit-int -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -Werror=strict-prototypes -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -DKBUILD_BASENAME=KBUILD_STR(libhello) -pg -DMODULE -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -Dfalse=__false -Dtrue=__true -Du64=__u64 /home/bluet/workspace/rust.ko/target/x86_64-unknown-none-gnu/debug/build/linux-std-b8b7ab4d3d9bbe98/out/kernel-include.h
--- stderr
' panicked at 'Error generating bindings!', std/build.rs:160error: error: unknown argument: '-fno-delete-null-pointer-checks'
warning: warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
warning: include/asm-generic/int-ll64.h:25:28: warning: redefinition of typedef '__u64' is a C11 feature [-Wtypedef-redefinition]
thread '
note: Run with
RUST_BACKTRACE=1
for a backtrace.make[2]: *** [/home/bluet/workspace/rust.ko/build/libhello.a] Error 101
make[1]: *** [module/home/bluet/workspace/rust.ko/build] Error 2
make: *** [all] Error 2
My env
bluet@Titania:
/workspace/rust.ko$ uname -a14.04.1-Ubuntu SMP Fri Mar 18 19:05:43 UTC 2016 x86_64 x86_64 x86_64 GNU/LinuxLinux Titania 3.19.0-58-generic #64
bluet@Titania:
/workspace/rust.ko$ clang -v/workspace/rust.ko$ rustc -VUbuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)
Target: x86_64-pc-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.8.4
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.9.3
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8.4
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9.3
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.3
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8
bluet@Titania:
rustc 1.9.0-nightly (b678600ac 2016-03-29)
bluet@Titania:~/workspace/rust.ko$ cargo -V
cargo 0.10.0-nightly (d38f03b 2016-03-29)
`
The text was updated successfully, but these errors were encountered: