[kde-freebsd] [SVN Commit] area51/PORTS/devel

Schaich Alonso alonsoschaich at fastmail.fm
Mon May 28 20:05:16 UTC 2012


On 2012-05-28 (Monday) 21:46:35 Raphael Kubo da Costa wrote:
> Schaich Alonso <alonsoschaich at fastmail.fm> writes:
> > I also was working on compiling devel/kdevelop-kde4 (ports one, not
> > area51) with clang earlier today, though I more and more get the feeling
> > the problems originated in clang's libc++ rather then a kdevelop.
> > Workaround patches are attached, both to solve issues probably only
> > libc++ users affected from where both std::list(QList::Iterator,
> > QList::Iterator) and also QList::toStdList(), which I tried first as
> > workaround seem not to work.
> > 
> > For the workaround, I rewrote the two affected functions to use array
> > index style access instead of iterator style one, as array indices
> > aren't invalidated by append calls, QList is supposed to provide O(1)
> > access with them and it also saves having to clone the list.
> 
> Do you have the build errors you were experiencing at hand? From your
> description (I haven't looked at the patches yet), either the KDevelop
> folks or/and theraven and the libc++ team should be contacted.
> _______________________________________________
> kde-freebsd mailing list
> kde-freebsd at kde.org
> https://mail.kde.org/mailman/listinfo/kde-freebsd
> See also http://freebsd.kde.org/ for latest information

Original build output (including error at the end) is attached. I used
CXXFLAGS+=-std=c++11 -stdlib=libc++
to solve missing <unordered_map> before of your patch.
-------------- next part --------------
root at harmony:/usr/ports/devel/kdevelop-kde4 # make
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for kdevelop-4.3.1
===>  Extracting for kdevelop-4.3.1
=> SHA256 Checksum OK for KDE/kdevelop-4.3.1.tar.bz2.
===>  Patching for kdevelop-4.3.1
===>  Applying FreeBSD patches for kdevelop-4.3.1
===>   kdevelop-4.3.1 depends on executable: gmake - found
===>   kdevelop-4.3.1 depends on file: /usr/local/bin/moc-qt4 - found
===>   kdevelop-4.3.1 depends on file: /usr/local/bin/qmake-qt4 - found
===>   kdevelop-4.3.1 depends on file: /usr/local/bin/rcc - found
===>   kdevelop-4.3.1 depends on file: /usr/local/bin/uic-qt4 - found
===>   kdevelop-4.3.1 depends on file: /usr/local/bin/automoc4 - found
===>   kdevelop-4.3.1 depends on file: /usr/local/kde4/lib/libkdecore.so.7 - found
===>   kdevelop-4.3.1 depends on file: /usr/local/kde4/lib/libkworkspace.so.5 - found
===>   kdevelop-4.3.1 depends on file: /usr/local/bin/cmake - found
===>   kdevelop-4.3.1 depends on shared library: kdevplatforminterfaces.5 - found
===>   kdevelop-4.3.1 depends on shared library: okteta1core - found
===>  Configuring for kdevelop-4.3.1
/bin/mkdir -p /usr/obj/usr/ports/devel/kdevelop-kde4/work/kdevelop-4.3.1
-- The C compiler identification is Clang 3.1.0
-- The CXX compiler identification is Clang 3.1.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.8.1 (using /usr/local/bin/qmake-qt4)
-- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so;/usr/local/lib/libXau.so;/usr/local/lib/libXdmcp.so;/usr/local/lib/libXpm.so
-- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so;/usr/local/lib/libXau.so;/usr/local/lib/libXdmcp.so;/usr/local/lib/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/local/lib/libX11.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Found Threads: TRUE  
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /usr/local/bin/automoc4 
-- Found Perl: /usr/bin/perl (found version "5.12.4") 
-- Found Phonon: /usr/local/kde4/include 
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Found KDE 4.8 include dir: /usr/local/kde4/include
-- Found KDE 4.8 library dir: /usr/local/kde4/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/local/kde4/bin/kconfig_compiler
-- Found automoc4: /usr/local/bin/automoc4
-- Found KDevPlatform: /usr/local/kde4/lib/cmake/kdevplatform/KDevPlatformConfig.cmake 
-- Looking for include file valgrind/valgrind.h
-- Looking for include file valgrind/valgrind.h - not found.
-- Found SharedMimeInfo: /usr/local/bin/update-mime-database  (found version "1.0", required is "0.18
-- Found KDE4Workspace: /usr/local/kde4/lib/cmake/KDE4Workspace/KDE4WorkspaceConfig.cmake 
-- Found Okteta Kasten libraries v1: /usr/local/kde4/lib/libkasten1okteta1core.so;/usr/local/kde4/lib/li/usr/local/kde4/lib/libkasten1okteta1controllers.so
-- Found Okteta libraries v1: /usr/local/kde4/lib/libokteta1core.so;/usr/local/kde4/lib/libokteta1gui.so
-- Found Kasten libraries v1: /usr/local/kde4/lib/libkasten1core.so;/usr/local/kde4/lib/libkasten1gui.so;ibkasten1controllers.so

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * KDE 4 Workspace - KDE 4 Workspace libraries
   * liboktetakasten - Okteta Kasten libraries
   * libokteta v1 - Okteta libraries
   * libkasten v1 - Kasten libraries

-----------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Looking for dgettext
-- Looking for dgettext - not found
-- Looking for dgettext in /usr/local/lib/libintl.so
-- Looking for dgettext in /usr/local/lib/libintl.so - found
-- Found Gettext: in /usr/local/lib/libintl.so
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXX_FLAGS_DEBUG
    CMAKE_C_FLAGS_DEBUG


-- Build files have been written to: /usr/obj/usr/ports/devel/kdevelop-kde4/work/kdevelop-4.3.1
===>  Building for kdevelop-4.3.1
Scanning dependencies of target kdevelop_automoc
[  0%] Built target kdevelop_automoc                                                                     
Scanning dependencies of target kdevelop
[  0%] Building CXX object app/CMakeFiles/kdevelop.dir/kdevelop_automoc.o                                
[  0%] Building CXX object app/CMakeFiles/kdevelop.dir/main.o                                            
[  0%] Building CXX object app/CMakeFiles/kdevelop.dir/kdevideextension.o                                
Linking CXX executable kdevelop                                                                          
[  0%] Built target kdevelop                                                                             
Scanning dependencies of target krunner_kdevelopsessions_automoc
Generating kdevelopsessions.moc                                                                          
[  0%] Built target krunner_kdevelopsessions_automoc                                                     
Scanning dependencies of target krunner_kdevelopsessions
[  0%] Building CXX object app/runner/CMakeFiles/krunner_kdevelopsessions.dir/krunner_kdevelopsessions_au
[  0%] Building CXX object app/runner/CMakeFiles/krunner_kdevelopsessions.dir/kdevelopsessions.o         
Linking CXX shared module ../../lib/krunner_kdevelopsessions.so                                          
[  0%] Built target krunner_kdevelopsessions                                                             
Scanning dependencies of target kdevastyle_automoc
Generating astyle_plugin.moc                                                                             
Generating astyle_preferences.moc                                                                        
[  0%] Built target kdevastyle_automoc                                                                   
[  0%] Generating ui_astyle_preferences.h
Scanning dependencies of target kdevastyle                                                               
[  0%] Building CXX object formatters/astyle/CMakeFiles/kdevastyle.dir/kdevastyle_automoc.o              
[  0%] Building CXX object formatters/astyle/CMakeFiles/kdevastyle.dir/astyle_plugin.o                   
[  0%] Building CXX object formatters/astyle/CMakeFiles/kdevastyle.dir/astyle_preferences.o              
[  0%] Building CXX object formatters/astyle/CMakeFiles/kdevastyle.dir/astyle_formatter.o                
[  1%] Building CXX object formatters/astyle/CMakeFiles/kdevastyle.dir/lib/ASBeautifier.o                
[  1%] Building CXX object formatters/astyle/CMakeFiles/kdevastyle.dir/lib/ASEnhancer.o                  
[  1%] Building CXX object formatters/astyle/CMakeFiles/kdevastyle.dir/lib/ASFormatter.o                 
[  1%] Building CXX object formatters/astyle/CMakeFiles/kdevastyle.dir/lib/ASResource.o                  
[  1%] Building CXX object formatters/astyle/CMakeFiles/kdevastyle.dir/lib/astyle_stringiterator.o       
Linking CXX shared module ../../lib/kdevastyle.so                                                        
[  1%] Built target kdevastyle                                                                           
Scanning dependencies of target astyletest_automoc
Generating astyletest.moc                                                                                
[  1%] Built target astyletest_automoc                                                                   
Scanning dependencies of target astyletest
[  1%] Building CXX object formatters/astyle/tests/CMakeFiles/astyletest.dir/astyletest_automoc.o        
[  1%] Building CXX object formatters/astyle/tests/CMakeFiles/astyletest.dir/astyletest.o                
[  1%] Building CXX object formatters/astyle/tests/CMakeFiles/astyletest.dir/__/astyle_formatter.o       
[  1%] Building CXX object formatters/astyle/tests/CMakeFiles/astyletest.dir/__/lib/ASFormatter.o        
[  1%] Building CXX object formatters/astyle/tests/CMakeFiles/astyletest.dir/__/lib/ASResource.o         
[  1%] Building CXX object formatters/astyle/tests/CMakeFiles/astyletest.dir/__/lib/ASEnhancer.o         
[  2%] Building CXX object formatters/astyle/tests/CMakeFiles/astyletest.dir/__/lib/ASBeautifier.o       
[  2%] Building CXX object formatters/astyle/tests/CMakeFiles/astyletest.dir/__/lib/astyle_stringiterator
Linking CXX executable astyletest                                                                        
[  2%] Built target astyletest                                                                           
Scanning dependencies of target kdevcustomscript_automoc
Generating customscript_plugin.moc                                                                       
[  2%] Built target kdevcustomscript_automoc                                                             
Scanning dependencies of target kdevcustomscript
[  3%] Building CXX object formatters/customscript/CMakeFiles/kdevcustomscript.dir/kdevcustomscript_autom
[  3%] Building CXX object formatters/customscript/CMakeFiles/kdevcustomscript.dir/customscript_plugin.o 
Linking CXX shared module ../../lib/kdevcustomscript.so                                                  
[  3%] Built target kdevcustomscript                                                                     
Scanning dependencies of target kdevcpplanguagesupport_automoc
Generating cppparsejob.moc                                                                               
Generating cpplanguagesupport.moc                                                                        
Generating preprocessjob.moc                                                                             
Generating codeassistant.moc                                                                             
Generating signatureassistant.moc                                                                        
Generating cpphighlighting.moc                                                                           
Generating cpputils.moc                                                                                  
Generating renameassistant.moc                                                                           
Generating worker.moc                                                                                    
Generating progressdialogs.moc                                                                           
Generating model.moc                                                                                     
Generating missingincludemodel.moc                                                                       
Generating cppnewclass.moc                                                                               
Generating moc_simplerefactoring.cpp                                                                     
Generating moc_unresolvedincludeassistant.cpp                                                            
[  3%] Built target kdevcpplanguagesupport_automoc                                                       
Scanning dependencies of target kdev4cpprpp_automoc
[  3%] Built target kdev4cpprpp_automoc                                                                  
Scanning dependencies of target kdev4cpprpp
[  3%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/kdev4cpprpp_automoc.o     
[  3%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/pp-stream.o               
[  3%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/pp-macro-expander.o       
[  4%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/pp-scanner.o              
[  4%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/pp-macro.o                
[  4%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/pp-engine.o               
[  4%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/pp-internal.o             
[  4%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/pp-environment.o          
[  4%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/pp-location.o             
[  4%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/preprocessor.o            
[  5%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/chartools.o               
[  5%] Building CXX object languages/cpp/parser/rpp/CMakeFiles/kdev4cpprpp.dir/macrorepository.o         
Linking CXX shared library ../../../../lib/libkdev4cpprpp.so                                             
[  5%] Built target kdev4cpprpp                                                                          
Scanning dependencies of target kdev4cppparser_automoc
[  5%] Built target kdev4cppparser_automoc                                                               
Scanning dependencies of target kdev4cppparser
[  5%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/kdev4cppparser_automoc.o   
[  5%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/ast.o                      
[  6%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/default_visitor.o          
[  6%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/parentvisitor.o            
[  6%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/memorypool.o               
[  6%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/name_compiler.o            
/usr/obj/usr/ports/devel/kdevelop-kde4/work/kdevelop-4.3.1/languages/cpp/parser/name_compiler.cpp:159:2: 
      "NameCompiler::visitUnqualifiedName() -- implement me" [-W#warnings]
#warning "NameCompiler::visitUnqualifiedName() -- implement me"
 ^
1 warning generated.                                                                                     
[  6%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/visitor.o
[  6%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/class_compiler.o           
[  6%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/control.o                  
[  7%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/lexer.o                    
[  7%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/parser.o                   
/usr/obj/usr/ports/devel/kdevelop-kde4/work/kdevelop-4.3.1/languages/cpp/parser/parser.cpp:1107:2: warnin
      [-W#warnings]
#warning "implement me"
 ^
/usr/obj/usr/ports/devel/kdevelop-kde4/work/kdevelop-4.3.1/languages/cpp/parser/parser.cpp:3889:2: warnin
      "mark the ast as constant" [-W#warnings]
#warning "mark the ast as constant"
 ^
2 warnings generated.                                                                                    
[  7%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/listnode.o
[  7%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/tokens.o                   
[  7%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/dumptree.o                 
[  7%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/parsesession.o             
[  7%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/type_compiler.o            
[  8%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/commentparser.o            
[  8%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/commentformatter.o         
[  8%] Building CXX object languages/cpp/parser/CMakeFiles/kdev4cppparser.dir/codegenerator.o            
Linking CXX shared library ../../../lib/libkdev4cppparser.so                                             
[  8%] Built target kdev4cppparser                                                                       
Scanning dependencies of target kdev4cppduchain_automoc
Generating navigationwidget.moc                                                                          
[  8%] Built target kdev4cppduchain_automoc                                                              
Scanning dependencies of target kdev4cppduchain
[  9%] Building CXX object languages/cpp/cppduchain/CMakeFiles/kdev4cppduchain.dir/kdev4cppduchain_automo
[  9%] Building CXX object languages/cpp/cppduchain/CMakeFiles/kdev4cppduchain.dir/adlhelper.o           
[  9%] Building CXX object languages/cpp/cppduchain/CMakeFiles/kdev4cppduchain.dir/sourcemanipulation.o  
[  9%] Building CXX object languages/cpp/cppduchain/CMakeFiles/kdev4cppduchain.dir/missingdeclarationtype
[  9%] Building CXX object languages/cpp/cppduchain/CMakeFiles/kdev4cppduchain.dir/missingdeclarationprob
[  9%] Building CXX object languages/cpp/cppduchain/CMakeFiles/kdev4cppduchain.dir/missingdeclarationassi
[ 10%] Building CXX object languages/cpp/cppduchain/CMakeFiles/kdev4cppduchain.dir/contextbuilder.o      
[ 10%] Building CXX object languages/cpp/cppduchain/CMakeFiles/kdev4cppduchain.dir/declarationbuilder.o  
/usr/obj/usr/ports/devel/kdevelop-kde4/work/kdevelop-4.3.1/languages/cpp/cppduchain/declarationbuilder.cp
      matching constructor for initialization of 'std::list<Declaration *>'
  std::list<Declaration*> worklist(decls.begin(), decls.end());
                          ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/list:810:5: note: candidate constructor not viable: no known conversion from 'QList<K
      *>::iterator' to 'size_type' (aka 'unsigned long') for 1st argument;
    list(size_type __n, const value_type& __x);
    ^
/usr/include/c++/v1/list:820:5: note: candidate constructor not viable: no known conversion from 'QList<K
      *>::iterator' to 'const std::__1::list<KDevelop::Declaration *, std::__1::allocator<KDevelop::Decla
      argument;
    list(const list& __c, const allocator_type& __a);
    ^
/usr/include/c++/v1/list:824:5: note: candidate constructor not viable: no known conversion from 'QList<KDevelop::Declaration 
      *>::iterator' to 'initializer_list<value_type>' for 1st argument;
    list(initializer_list<value_type> __il, const allocator_type& __a);
    ^
/usr/include/c++/v1/list:829:5: note: candidate constructor not viable: no known conversion from 'QList<KDevelop::Declaration
      *>::iterator' to 'std::__1::list<KDevelop::Declaration *, std::__1::allocator<KDevelop::Declaration *> >' for 1st
      argument;
    list(list&& __c, const allocator_type& __a);
    ^
/usr/include/c++/v1/list:813:9: note: candidate template ignored: substitution failure [with _InpIter =
      QList<KDevelop::Declaration *>::iterator]
        list(_InpIter __f, _InpIter __l,
        ^
/usr/include/c++/v1/list:816:9: note: candidate constructor template not viable: requires at least 3 arguments, but 2 were
      provided
        list(_InpIter __f, _InpIter __l, const allocator_type& __a,
        ^
/usr/include/c++/v1/list:795:5: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
    list()
    ^
/usr/include/c++/v1/list:803:5: note: candidate constructor not viable: requires 1 argument, but 2 were provided
    list(const allocator_type& __a) : base(__a)
    ^
/usr/include/c++/v1/list:809:5: note: candidate constructor not viable: requires 1 argument, but 2 were provided
    list(size_type __n);
    ^
/usr/include/c++/v1/list:811:5: note: candidate constructor not viable: requires 3 arguments, but 2 were provided
    list(size_type __n, const value_type& __x, const allocator_type& __a);
    ^
/usr/include/c++/v1/list:819:5: note: candidate constructor not viable: requires 1 argument, but 2 were provided
    list(const list& __c);
    ^
/usr/include/c++/v1/list:823:5: note: candidate constructor not viable: requires 1 argument, but 2 were provided
    list(initializer_list<value_type> __il);
    ^
/usr/include/c++/v1/list:827:5: note: candidate constructor not viable: requires 1 argument, but 2 were provided
    list(list&& __c)
    ^
1 error generated.
gmake[2]: *** [languages/cpp/cppduchain/CMakeFiles/kdev4cppduchain.dir/declarationbuilder.o] Error 1
gmake[1]: *** [languages/cpp/cppduchain/CMakeFiles/kdev4cppduchain.dir/all] Error 2
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/devel/kdevelop-kde4.
*** Error code 1

Stop in /usr/ports/devel/kdevelop-kde4.


More information about the kde-freebsd mailing list