Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390923 - sys-devel/clang-9999 fails to find 'limits.h' due to missing 'include-fixed' in includepath
Summary: sys-devel/clang-9999 fails to find 'limits.h' due to missing 'include-fixed' ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 14:53 UTC by Michał Górny
Modified: 2012-04-06 12:12 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 2011-11-18 14:53:58 UTC
clang version 3.1 (trunk)
Target: x86_64-pc-linux-gnu
Thread model: posix
 "/usr/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name a.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/3.1 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.1/include -internal-externc-isystem /usr/include -internal-externc-isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 97 -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/a-xdEu5u.o -x c a.c
clang -cc1 version 3.1 based upon llvm 3.1svn default target x86_64-pc-linux-gnu
ignoring nonexistent directory "/usr/bin/../lib/clang/3.1/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include
End of search list.
In file included from a.c:1:
/usr/include/limits.h:125:16: fatal error: 'limits.h' file not found
# include_next <limits.h>
               ^
1 error generated.

Adding '-I/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include-fixed' fixes this.
Comment 1 Bernard Cafarelli gentoo-dev 2011-11-30 10:41:14 UTC
> ignoring nonexistent directory "/usr/bin/../lib/clang/3.1/include"

With the pending 3.0 release, there may have been some mixup in versions and paths :) 

On 3.0_rc*, I have limits.h in /usr/lib64/clang/3.0/include, and clang finds it
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-11-30 16:03:17 UTC
(In reply to comment #1)
> > ignoring nonexistent directory "/usr/bin/../lib/clang/3.1/include"
> 
> With the pending 3.0 release, there may have been some mixup in versions and
> paths :) 
> 
> On 3.0_rc*, I have limits.h in /usr/lib64/clang/3.0/include, and clang finds it

Ah, then it's regular lib/lib64 mixup. If it installs it in lib64, it should look in lib64. Otherwise it looks up the wrong libdir.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-11-30 16:09:21 UTC
Or, looking at it closer -- those headers could just be installed into /usr/lib.
Comment 4 Bernard Cafarelli gentoo-dev 2011-12-02 22:34:26 UTC
Now that 3.0 is out and in CVS, I've tried a fresh -9999. 

Test program compiled fine, and limits.h is in 3.1/include, so I hope it should work for you too after update :)

Now to check that "../lib" and all the $(get_libdir) tweaks in the ebuild
Comment 5 Bernard Cafarelli gentoo-dev 2012-04-06 12:12:44 UTC
Just retested while working on #406163, it works fine. Feel free to reopen if you still have the problem!