Summary: | sys-devel/clang-2.9 only checks for certain full GCC versions (and does not depend on them properly) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Amir Aupov <fads93> |
Component: | [OLD] Development | Assignee: | Bernard Cafarelli <voyageur> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | b.brachaczek, fads93, flameeyes, keeperofdakeys, shiningarcanine |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
patch from Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Updates the GCC version list for all GCC releases since Clang 2.9 was tagged as of August 8, 2011 modifed patch to fix clang's search path |
Description
Amir Aupov
2011-08-06 08:08:07 UTC
The same bug on official llvm bugzilla http://llvm.org/bugs/show_bug.cgi?id=9798 Created attachment 282355 [details, diff] patch from Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Clang works as expected after applying this patch, and modifying clang-2.9.ebuild: src_prepare() { mv "${WORKDIR}"/clang-${PV} "${S}"/tools/clang || die "clang source directory not found" + # Fix bug #377949, troubles with GCC 4.6 + epatch "${FILESDIR}"/${PN}-2.9-gcc-4.6.patch While you're at it you can also at "4.5.3" to this list. Man, this is broken … Created attachment 282867 [details, diff]
Updates the GCC version list for all GCC releases since Clang 2.9 was tagged as of August 8, 2011
Here is a patch that covers GCC 4.4.6, GCC 4.5.3, GCC 4.6.0, GCC 4.6.1 and GCC 4.6.2.
I can verify that this fixes Clang linker issues with GCC 4.4.6. I have no reason to think that it won't fix equivalent issues with GCC 4.5.3, GCC 4.6.0, GCC 4.6.1 and GCC 4.6.2.
Other people can/should test this, but I think this patch is ready for inclusion into portage. It isn't a big change and anyone with GCC 4.5.3 could verify that this patch fixes the problem. I don't have commit privileges, so I can't commit it myself. It only takes 3 commands to apply this patch to an affected system: ebuild $(equery which sys-devel/clang-2.9) unpack wget -O - "http://bugs.gentoo.org/attachment.cgi?id=282867" | patch -d/var/tmp/portage/sys-devel/clang-2.9/work -p1 ebuild $(equery which sys-devel/clang-2.9) merge Created attachment 283263 [details, diff]
modifed patch to fix clang's search path
I had the same crtbegin.o error in clang and I have gcc version 4.5.3. After applying the patch, clang now works correctly. The patch didn't seem to match the clang directory structure I saw however, so I modified it to match; the modifed patch is attached.
Thanks guys, this is now fixed in 2.9-r1. Let's hope upstream will fix this properly at some point. GCC 4.5.4 is unmasked on x64, maybe we should add it to the list. I had to change the patch manually. |