#33293 closed defect (fixed)
llvm-gcc42: can't find bits/c++config.h on Leopard/PPC
Reported by: | mklein-de (Michael Klein) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | erickt@…, jeremyhu (Jeremy Huddleston Sequoia) | |
Port: | llvm-gcc42 |
Description
My llvm-g++-4.2 isn't able to compile anything using STL:
$ echo "#include <vector>" | /opt/local/bin/llvm-g++-4.2 -xc++ - 2>&1 | head -10 In file included from /usr/include/c++/4.0.0/vector:66, from <stdin>:1: /usr/include/c++/4.0.0/bits/stl_algobase.h:64:28: error: bits/c++config.h: No such file or directory In file included from /usr/include/c++/4.0.0/bits/stl_algobase.h:69, from /usr/include/c++/4.0.0/vector:66, from <stdin>:1: /usr/include/c++/4.0.0/iosfwd:45:29: error: bits/c++locale.h: No such file or directory /usr/include/c++/4.0.0/iosfwd:46:25: error: bits/c++io.h: No such file or directory In file included from /usr/include/c++/4.0.0/vector:67, from <stdin>:1:
llvm-gcc42 and the headers in /usr/include/c++/4.0.0 seem to disagree on the platform name:
$ /opt/local/bin/llvm-g++-4.2 -dumpmachine ppc-apple-darwin9
but:
$ ls -d /usr/include/c++/4.0.0/*apple-darwin9 | cat /usr/include/c++/4.0.0/i686-apple-darwin9 /usr/include/c++/4.0.0/powerpc-apple-darwin9 /usr/include/c++/4.0.0/powerpc64-apple-darwin9 /usr/include/c++/4.0.0/x86_64-apple-darwin9
As a workaround I created symlink ppc-apple-darwin9 pointing to powerpc-apple-darwin9, which seems to make llvm-gcc42 work flawlessly.
$ ln -s powerpc-apple-darwin9 /usr/include/c++/4.0.0/ppc-apple-darwin9
Change History (4)
comment:1 Changed 12 years ago by jmroot (Joshua Root)
Cc: | jeremyhu@… added |
---|
comment:2 Changed 12 years ago by mfeiri
Cc: | mfeiri@… removed |
---|
comment:3 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)
(ie, llvm-gcc42 doesn't support ppc)
Note: See
TracTickets for help on using
tickets.
This was fixed in r101497