Bug 230185

Summary: devel/llvm60: clang++60 failed to include standard header files if '-stdlib=libstdc++' option is specified
Product: Ports & Packages Reporter: Yasuhiro Kimura <yasu>
Component: Individual Port(s)Assignee: Brooks Davis <brooks>
Status: Closed Works As Intended    
Severity: Affects Some People CC: marklmi26-fbsd
Priority: --- Flags: bugzilla: maintainer-feedback? (brooks)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 230184    
Bug Blocks:    

Description Yasuhiro Kimura freebsd_committer freebsd_triage 2018-07-30 09:28:25 UTC
Problem reported as bug #230184 also happens with devel/llvm60. And though I don't checked it is very likely this problem happens with other version of LLVM.
Comment 1 Brooks Davis freebsd_committer freebsd_triage 2018-07-30 16:27:49 UTC
I don't expect this to work.  You almost certainly need to specify the path to libstdc++'s headers manually.
Comment 2 Mark Millard 2018-07-30 23:30:53 UTC
So far as I know llvm does not provide the source to a
libstdc++. Some port would be required to supply the
source code for -stdlib=libstdc++ to find and use.

(For FreeBSD "builworld" and such there are licensing
issues for libstdc++. Thus a port likely being involved.)
Comment 3 Brooks Davis freebsd_committer freebsd_triage 2018-08-02 14:59:25 UTC
I won't be fixing this.  To fix it reliably, we'd have to provide a dependency on a gcc port to provide a libstdc++ in a known location and patch the -stdlib=libstdc++ code to match.  If want libstdc++, use gcc.