[MacPorts] #33293: llvm-gcc42: can't find bits/c++config.h on Leopard/PPC

MacPorts noreply at macports.org
Sat Feb 18 14:35:22 PST 2012


#33293: llvm-gcc42: can't find bits/c++config.h on Leopard/PPC
------------------------------------------------+---------------------------
 Reporter:  michael.klein@…                     |       Owner:  macports-tickets@…                   
     Type:  defect                              |      Status:  new                                  
 Priority:  Normal                              |   Milestone:                                       
Component:  ports                               |     Version:  2.0.3                                
 Keywords:                                      |        Port:  llvm-gcc42                           
------------------------------------------------+---------------------------
 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
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/33293>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list