pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43237: pkgsrc/lang/clang: clang++ can't find <iostream>



>Number:         43237
>Category:       pkg
>Synopsis:       pkgsrc/lang/clang: clang++ can't find <iostream>
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 02 15:25:00 +0000 2010
>Originator:     NAKAJIMA Yoshihiro
>Release:        NetBSD 5.99.28
>Organization:
>Environment:
System: NetBSD vajra 5.99.28 NetBSD 5.99.28 (VAJRA) #0: Fri Apr 30 20:54:10 JST 
2010 nakayosh@vajra:/usr/src/sys/arch/i386/compile/VAJRA i386
Architecture: i386
Machine: i386
>Description:
        NetBSD has C++ header files in ``/usr/include/g++''.
        But clang++ can't find them.

>How-To-Repeat:

> % clang++ -v hello.C
> clang version 1.1 (branches/release_27)
> Target: i386--netbsdelf
> Thread model: posix
>  "/usr/local/pkg/bin/clang" -cc1 -triple i386--netbsdelf -S -disable-free 
> -main-file-name hello.C -mrelocation-model static -mdisable-fp-elim 
> -mconstructor-aliases -target-cpu pentium4 -v -resource-dir 
> /usr/local/pkg/lib/clang/1.1 -fmessage-length 80 -fexceptions -fgnu-runtime 
> -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-02187a.s -x c++ 
> hello.C
> clang -cc1 version 1.1 based upon llvm 2.7 hosted on i386--netbsdelf
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/local/pkg/lib/clang/1.1/include
>  /usr/local/include
>  /usr/include
> End of search list.
> hello.C:1:10: fatal error: 'iostream' file not found
> #include <iostream>
>          ^
> 1 diagnostic generated.
> %

Off course, g++ works fine.

> % g++ -v hello.C
<snip>
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/include/g++
>  /usr/include/g++/backward
>  /usr/include
> End of search list.
<snip>
> %

>Fix:
        none



Home | Main Index | Thread Index | Old Index