Bug#731711: [kfreebsd?] Fails to find C++ include paths

Sylvestre Ledru sylvestre at debian.org
Mon Dec 9 22:19:26 UTC 2013


On 09/12/2013 22:56, Christoph Egger wrote:
> Sylvestre Ledru <sylvestre at debian.org> writes:
>
>> On 08/12/2013 21:52, Christoph Egger wrote:
>>> Package: clang-3.4
>>> Version: 1:3.4~+rc2-3
>>> Severity: important
>>>
>>>> fatal error: 'cassert' file not found
>>>> #include <cassert>
>>>>          ^
>>>> 1 error generated.
>>> Adding a `-I/usr/include/c++/4.8/ -I/usr/include/x86_64-kfreebsd-gnu/c++/4.8` 
>>> fixes the symptoms
>>>
>> What is the result with  -v ?
> % cat test.cxx 
> #include <cassert>
>
> int main() {
>
> }
>
> % clang++ -v test.cxx
> Debian clang version 3.4-3 (tags/RELEASE_34/rc2) (based on LLVM 3.4)
> Target: x86_64-pc-kfreebsd-gnu
> Thread model: posix
> Selected GCC installation: 
>  "/usr/bin/clang" -cc1 -triple x86_64-pc-kfreebsd-gnu -S -disable-free
>  -disable-llvm-verifier -main-file-name test.cxx -mrelocation-model
>  static -mdisable-fp-elim -fmath-errno -mconstructor-aliases
>  -munwind-tables -target-cpu x86-64 -target-linker-version 2.24 -v
>  -resource-dir /usr/bin/../lib/clang/3.4 -internal-isystem
>  /usr/include/clang/3.4/include/ -fdeprecated-macro
>  -fno-dwarf-directory-asm -fdebug-compilation-dir /tmp -ferror-limit 19
>  -fmessage-length 222 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
>  -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
>  -vectorize-slp -o /tmp/test-35ab54.s -x c++ test.cxx
> clang -cc1 version 3.4 based upon LLVM 3.4 default target
> x86_64-pc-kfreebsd-gnu
> ignoring duplicate directory "/usr/include/clang/3.4/include"
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/include/clang/3.4/include
>  /usr/local/include
>  /usr/include
> End of search list.
> test.cxx:1:10: fatal error: 'cassert' file not found
> #include <cassert>
>          ^
> 1 error generated.
OK. Thanks. I think I know how to fix that.

Sylvestre



More information about the Pkg-llvm-team mailing list