Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628902 - sys-devel/clang-9999: fails to build, patching errors
Summary: sys-devel/clang-9999: fails to build, patching errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-25 10:57 UTC by CT
Modified: 2017-08-26 20:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch rejection file (print-libgcc-file-name-clangrt.c.rej,738 bytes, text/x-reject)
2017-08-25 11:00 UTC, CT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CT 2017-08-25 10:57:41 UTC
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
Comment 1 CT 2017-08-25 11:00:01 UTC
Created attachment 490528 [details]
patch rejection file
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-26 20:04:33 UTC
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