Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592964 - sys-devel/llvm-3.8.1-r2 - ../lib/linux/libclang_rt.builtins-i686.a: No such file or directory
Summary: sys-devel/llvm-3.8.1-r2 - ../lib/linux/libclang_rt.builtins-i686.a: No such f...
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: 2016-09-05 20:47 UTC by Bertrand Jacquin
Modified: 2018-03-29 08:19 UTC (History)
2 users (show)

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


Attachments
emerge --info (info.log,17.73 KB, text/x-log)
2016-09-15 22:19 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2016-09-05 20:47:38 UTC
sys-devel/llvm-3.8.1-r2 on x86 failed to compile source code as per the following error:

$ cat > conftest.c << EOF
/* confdefs.h */
#define PACKAGE_NAME "terminology"
#define PACKAGE_TARNAME "terminology"
#define PACKAGE_VERSION "0.9.99"
#define PACKAGE_STRING "terminology 0.9.99"
#define PACKAGE_BUGREPORT "enlightenment-devel@lists.sourceforge.net"
#define PACKAGE_URL ""
#define PACKAGE "terminology"
#define VERSION "0.9.99"
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
EOF

$ clang ./conftest.c 
/usr/bin/i686-pc-linux-gnu-ld: cannot find /usr/bin/../lib/clang/3.8.1/lib/linux/libclang_rt.builtins-i686.a: No such file or directory
i686-pc-linux-gnu-clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)

clang is looking for libclang_rt.builtins-i686.a but only libclang_rt.builtins-i386.a exist:

$ qlist llvm | fgrep libclang_rt.builtins
/usr/lib/clang/3.8.1/lib/linux/libclang_rt.builtins-i386.a


Reproducible: Always
Comment 1 Alex Xu (Hello71) 2016-09-14 17:09:40 UTC
please paste or attach output of emerge --info.
Comment 2 Bertrand Jacquin 2016-09-15 22:19:48 UTC
Created attachment 445872 [details]
emerge --info
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-11-11 20:31:31 UTC
I think it's unhappy with our i686- CHOST. The code for finding clangrt is kinda poor in the driver. Could you paste 'clang --version' to confirm? I will try to find some solution upstream when I have time for it but can't promise that'd happen anytime soon.
Comment 4 Bertrand Jacquin 2016-11-13 16:23:52 UTC
(In reply to Michał Górny from comment #3)
> I think it's unhappy with our i686- CHOST. The code for finding clangrt is
> kinda poor in the driver. Could you paste 'clang --version' to confirm? I
> will try to find some solution upstream when I have time for it but can't
> promise that'd happen anytime soon.

$ clang --version
clang version 3.8.1 (tags/RELEASE_381/final)
Target: i686-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-03-29 08:19:05 UTC
This is fixed in 5.0.1+.