Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508838 - sys-devel/llvm-3.4-r2: 'clang -flto' outputs wrong LLVMgold.so path (with 'lib')
Summary: sys-devel/llvm-3.4-r2: 'clang -flto' outputs wrong LLVMgold.so path (with 'lib')
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Clang Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-27 08:27 UTC by Michał Górny
Modified: 2014-06-15 14:24 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-27 08:27:25 UTC
$ qlist llvm | grep LLVMgold
/usr/x86_64-pc-linux-gnu/binutils-bin/lib/bfd-plugins/LLVMgold.so
/usr/lib64/LLVMgold.so

while the linker command gets:

-plugin /usr/bin/../lib/LLVMgold.so
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-14 18:50:23 UTC
+*llvm-3.4.1-r2 (14 Jun 2014)
+
+  14 Jun 2014; Michał Górny <mgorny@gentoo.org> +llvm-3.4.1-r2.ebuild,
+  -llvm-3.4-r2.ebuild, -llvm-3.4.1-r1.ebuild,
+  files/clang-3.4-gentoo-install.patch:
+  Fix fixing LLVMgold.so plugin path for GNU linker, bug #508838.
Comment 2 smkbot 2014-06-15 14:20:02 UTC
The change that was made to clang-3.4-gentoo-install.patch now prevents =sys-devel/llvm-3.3-r3 from working:

>>> Emerging (136 of 175) sys-devel/llvm-3.3-r3                                                                                                                                               
 * llvm-3.3.src.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...              [ ok ]                                                                                                               
 * compiler-rt-3.3.src.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...       [ ok ]                                                                                                               
 * cfe-3.3.src.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...               [ ok ]                                                                                                               
 * llvm-3.3-manpages.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...        [ ok ]                                                                                                               
 * Checking for at least 1200 MiB disk space at "/var/tmp/portage/sys-devel/llvm-3.3-r3/temp" ...                                                                                             
 [ ok ]                                                                                                                                                                                       
>>> Unpacking source...                                                                                                                                                                       
>>> Unpacking llvm-3.3.src.tar.gz to /var/tmp/portage/sys-devel/llvm-3.3-r3/work                                                                                                              
>>> Unpacking compiler-rt-3.3.src.tar.gz to /var/tmp/portage/sys-devel/llvm-3.3-r3/work                                                                                                       
>>> Unpacking cfe-3.3.src.tar.gz to /var/tmp/portage/sys-devel/llvm-3.3-r3/work                                                                                                               
>>> Unpacking llvm-3.3-manpages.tar.bz2 to /var/tmp/portage/sys-devel/llvm-3.3-r3/work                                                                                                        
>>> Source unpacked in /var/tmp/portage/sys-devel/llvm-3.3-r3/work                                                                                                                            
>>> Preparing source in /var/tmp/portage/sys-devel/llvm-3.3-r3/work/llvm-3.3.src ...                                                                                                          
 * Applying llvm-3.2-nodoctargz.patch ...                                                                                                                                                     
 [ ok ]                                                                                                                                                                                       
 * Applying llvm-3.3-R600_debug.patch ...                                                                                                                                                     
 [ ok ]                                                                                                                                                                                       
 * Applying llvm-3.3-r2-gentoo-install.patch ...                                                                                                                                              
 [ ok ]                                                                                                                                                                                       
 * Applying llvm-3.3-cmake-modulepath.patch ...                                                                                                                                               
 [ ok ]                                                                                                                                                                                       
 * Applying clang-3.1-gentoo-runtime-gcc-detection-v3.patch ...                                                                                                                               
 [ ok ]                                                                                                                                                                                       
 * Applying clang-3.4-gentoo-install.patch ...                                                                                                                                                
                                                                                                                                                                                              
 * Failed Patch: clang-3.4-gentoo-install.patch !                                                                                                                                             
 *  ( /usr/portage/sys-devel/llvm/files/clang-3.4-gentoo-install.patch )
Comment 3 smkbot 2014-06-15 14:24:37 UTC
I filed bug 513346 to track this.

https://bugs.gentoo.org/show_bug.cgi?id=513346