When attempting to build latest checkout of clang, build process fails with the following patch errors: >>> Starting src_prepare patching file lib/Driver/ToolChain.cpp Hunk #1 succeeded at 297 with fuzz 1 (offset 14 lines). patching file test/Driver/Inputs/basic_linux_tree/usr/i686-unknown-linux/lib/.keep patching file test/Driver/Inputs/basic_linux_tree/usr/lib/gcc/i686-unknown-linux/4.6.0/crtbegin.o patching file test/Driver/linux-ld.c patching file test/Driver/nostdlib.c patching file test/Driver/print-libgcc-file-name-clangrt.c Hunk #1 FAILED at 6. 1 out of 1 hunk FAILED -- saving rejects to file test/Driver/print-libgcc-file-name-clangrt.c.rej patching file test/Driver/windows-cross.c Hunk #1 succeeded at 64 (offset 5 lines). patch -p1 -f -g0 --no-backup-if-mismatch < /usr/portage/sys-devel/clang/files/9999/0001-Driver-Use-arch-type-to-find-compiler-rt-libraries-o.patch Haven't actually looked into what's causing these patches to fail, but I'm guessing there was a change to the underlying sources. Reproducible: Always Steps to Reproduce: 1. Try to build sys-devel/clang-9999 from HEAD Actual Results: Build fails Expected Results: Build should succeed
Created attachment 490528 [details] patch rejection file
commit 9df648c8e6df688de3c2523dd817927023ba8ff7 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Sat Aug 26 22:00:51 2017 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Sat Aug 26 22:02:03 2017 sys-devel/clang: Rebase the patches for 9999, #628902