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
Building the Linux kernel yields the following error, on code that works with gcc:
clang -std=gnu89 -MD -MF fs/jbd/.transaction.o.d -nostdinc -isystem include -Iinclude -I/spare/tmp/linux-2.6.29/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -fno-dwarf2-cfi-asm -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(transaction)" -D"KBUILD_MODNAME=KBUILD_STR(jbd)" -c -o fs/jbd/transaction.o fs/jbd/transaction.c clang: warning: the clang compiler does not yet support '-pg' warning: unknown warning option: -Wframe-larger-than=2048 fs/jbd/transaction.c:1429:16: error: cannot compile this l-value expression yet trans_time = ktime_to_ns(ktime_sub(ktime_get(), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/jbd/transaction.c:1429:28: note: instantiated from: trans_time = ktime_to_ns(ktime_sub(ktime_get(), ^~~~~~~~~ 1 diagnostic generated.
The text was updated successfully, but these errors were encountered:
Fixed: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090420/016259.html
Sorry, something went wrong.
mentioned in issue llvm/llvm-bugzilla-archive#4068
No branches or pull requests
Extended Description
Building the Linux kernel yields the following error, on code that works with gcc:
clang -std=gnu89 -MD -MF fs/jbd/.transaction.o.d -nostdinc -isystem include -Iinclude -I/spare/tmp/linux-2.6.29/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -fno-dwarf2-cfi-asm -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(transaction)" -D"KBUILD_MODNAME=KBUILD_STR(jbd)" -c -o fs/jbd/transaction.o fs/jbd/transaction.c
clang: warning: the clang compiler does not yet support '-pg'
warning: unknown warning option: -Wframe-larger-than=2048
fs/jbd/transaction.c:1429:16: error: cannot compile this l-value expression yet
trans_time = ktime_to_ns(ktime_sub(ktime_get(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/jbd/transaction.c:1429:28: note: instantiated from:
trans_time = ktime_to_ns(ktime_sub(ktime_get(),
^~~~~~~~~
1 diagnostic generated.
The text was updated successfully, but these errors were encountered: