Summary: | clang++ failed to include standard header files if '-stdlib=libstdc++' option is specified | ||
---|---|---|---|
Product: | Base System | Reporter: | Yasuhiro Kimura <yasu> |
Component: | bin | Assignee: | freebsd-toolchain (Nobody) <toolchain> |
Status: | Open --- | ||
Severity: | Affects Some People | CC: | dim, marklmi26-fbsd, thanos17997 |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any | ||
Bug Depends on: | |||
Bug Blocks: | 230185 |
Description
Yasuhiro Kimura
2018-07-30 09:18:02 UTC
So far as I know FreeBSD does not provide a modern libstdc++ source code and the old code goes away when gcc 4.2.1 goes away. libc++ use is for licensing reasons as I understand. Does FreeBSD intend on supplying a libstdc++? Is some port supposed to be used to provide the source code for -std=libstdc++ to find and use? By default, FreeBSD doesn't include libstdc++ headers and libraries. To get those, set WITH_GNUCXX in your src.conf, then rebuild world and install it. (In reply to Dimitry Andric from comment #2) OK, I understand clang++ works as intended. But anyway it is different from the one described in clang(1) man page. So man page should be fixed so it reflects intended behavior. MARKED AS SPAM |