[MacPorts] #34545: Can't install kdevplatform

MacPorts noreply at macports.org
Mon Jun 4 09:53:20 PDT 2012


#34545: Can't install kdevplatform
-------------------------------+--------------------------------------------
 Reporter:  dave@…             |       Owner:  nicos@…           
     Type:  defect             |      Status:  new               
 Priority:  Normal             |   Milestone:                    
Component:  ports              |     Version:  2.1.1             
 Keywords:                     |        Port:  kdevplatform      
-------------------------------+--------------------------------------------

Comment(by dragan.glumac@…):

 There's definitely an issue with CXX compiler for this if you're using OS
 X Lion and Xcode 4.3 (latest and "greatest" version 4.3.2 :-S).

 If I use clang to build kdevplatform I can get past this problem, but then
 I get tripped up further down the line by a #include of unordered_map
 which for some reason clang cannot see since it's an early-style STL
 header (on my system it lives in /usr/include/c++/v1/).

 If I use llvm-g++-4.2 then I get the same problem that is listed in this
 ticket (and a few earlier ones).

 This is what I did to build with clang:

 1) sudo port clean kdevplatform
 2) sudo port fetch kdevplatform
 3) sudo port extract kdevplatform
 4) cd
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/kde/kdevplatform/work/build
 5) sudo cmake ../kdevplatform-1.3.1/    --> this at least on my system
 forces clang to be the CXX compiler. I guess you can explicitly set it to
 clang by passing -D CMAKE_CXX_COMPILER=clang as an argument to cmake
 6) sudo make

 And then I get tripped up by the #include <unordered_map>.


 {{{
 ''[  7%] Building CXX object
 language/CMakeFiles/kdevplatformlanguage.dir/editor/modificationrevision.o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdevplatform/kdevplatform/work/kdevplatform-1.3.1/language/editor/modificationrevision.cpp:36:10:
 fatal error:
       'unordered_map' file not found
 #include <unordered_map>
          ^
 1 error generated.
 ''
 }}}

 Clang doesn't seem to see it by default and I haven't got round to
 figuring out how to add a library import to CMakeCXXCompiler.cmake file.

 I hope this helps.

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


More information about the macports-tickets mailing list