i386#182
Conversation
|
https://travis-ci.com/ClangBuiltLinux/continuous-integration/jobs/211110274 shows that you're hitting what looks slightly similar to ClangBuiltLinux/linux#186. If the Makefile in arch/x86/entry/vsyscall/ does not have |
|
I was able to bisect the problematic commit as well: ClangBuiltLinux/linux#186 (comment) |
|
(I'll bet the sub expression |
|
Should ClangBuiltLinux/linux#186 be reopenned then? |
|
A new issue should probably be opened. |
|
The patch to revert vgtod_ts commits is huge and most of it is unnecessary, but it works. Now there is also a problem with LLD, I will try to fix it later (or at least create an issue for it as I can't find one). |
|
Tentatively seems good. I assume those two patches are going to be upstreamed at some point? Given that we just got all of our LLVM 9 targets building patch free, it's a little sad to add some back. |
|
It also looks like your percpu patch needs to be rebased? |
|
make sure to remove the WIP label when it's ready for code review |
|
The percpu patch is easy to fix so it builds, but this is not a proper fix, I'll check how similar issue was fixed with x86_64. The other patch should probably be rewritten as well. After these patches are upstreamed, i386 can be merged to master. |
2af6a05 to
caa9f23
Compare
|
Rebased with master and surprisingly it's broken. Builds fine, but doesn't boot. I will try to build 4.19 to see if it works. |
|
I recommend:
|
I was going to try this today but I cannot get the GDB scripts to load, am I doing something wrong? |
|
Exactly the same problem here. I was trying to get it working for a while, tried everything I could think of, but no luck, The only useful piece information I got with gdb is that the kernel panics with "Attempted to kill the idle task!" |
The top level Makefile disables this warning. When building an i386_defconfig with Clang, this warning is triggered a whole bunch via includes of headers from perf. Link: ClangBuiltLinux/continuous-integration#182 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
|
@nickdesaulniers which version of fix for |
https://gcc.gnu.org/onlinedocs/gcc/Machine-Constraints.html#Machine-Constraints says for
so for inputs I prefer @dwmw2's approach of casting to (unsigned char) which is truncation. I don't understand why there's a cast to (unsigned long) though, which will zero extend. I need to look more at the sources (the diff doesn't have all the info I need to make a more informed decision). We already know the size, so I think we could just cast to the unsigned integral type of the equivalent byte size. For outputs, I also prefer @dwmw2's approach of using a temporary Though @arndb is cleaner, and the Either way, we could start a thread with @arndb , @dwmw2, and Linus, since Linus emailed me about this case recently, and understands the point @dwmw2 makes in his commit message. |
|
Building with no LLD: Build #1397. All should be fine. Should I rename the ARCH from |
|
yes please. Originally, I had the images as i386, but the kernel image gets produced in arch/x86/boot/, so it was simpler to just use x86 everywhere. |
05796f6 to
391a214
Compare
|
Boot failures on -next look like: hmmm Also, patches aren't applying cleanly to mainline. |
Fixed by ClangBuiltLinux/boot-utils#12. |
|
I've rekicked the tests. |
46aae82 to
7dcdba7
Compare
0a02044 to
3e01229
Compare
nathanchance
left a comment
There was a problem hiding this comment.
Aside from the one comment, LGTM.
|
Nice work @tpimh ! Thanks |
|
I plan to land https://reviews.llvm.org/D79804 which is an improvement to Clang, but will make the patches we're carrying no longer work. |
The top level Makefile disables this warning. When building an i386_defconfig with Clang, this warning is triggered a whole bunch via includes of headers from perf. Link: ClangBuiltLinux/continuous-integration#182 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20200426214215.139435-1-ndesaulniers@google.com Signed-off-by: Albert I <kras@raphielgang.org>
This is WIP. Currently, lacking buildroot image (will add it when the kernel is able to boot), probably shouldn't be merged until ClangBuiltLinux/linux#3 is fixed.
UPD: rootfs added, booting fine with GNU ld, but not LLD (UPD2: fixed). After these issues are fixed, we can proceed with this PR:
undefined reference to `__udivdi3' in vsyscall_gtod.c linux#578