Results 1 to 5 of 5

Thread: WebKit compilation error with GCC

  1. #1
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default WebKit compilation error with GCC

    Compiling Qt 4.5.2 with GCC 4.3.0 (MinGW) on Windows Vista I got an error which I show at the end of the post.
    Has someone managed to fix this error?

    Qt Code:
    1. g++ -c -include tmp\obj\debug_shared\WebKit_pch.h -Wreturn-type -fno-strict-alia
    2. sing -frtti -fexceptions -mthreads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DQ
    3. T_LARGEFILE_SUPPORT -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_MAKEDLL
    4. -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -D_USE_MATH_DEFIN
    5. ES -DBUILD_WEBKIT -D_HAS_TR1=0 -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_
    6. STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT
    7. =0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_
    8. SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SV
    9. G_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=0 -DENABLE_NETSCAPE_PLUGIN_API=1
    10. -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DSQLITE_COR
    11. E -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -DQT_DLL -DQT_GUI_LIB -DQT
    12. _NETWORK_LIB -DQT_CORE_LIB -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include
    13. \QtNetwork" -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include" -I"storage" -I
    14. "..\WebKit\qt\Api" -I"..\..\..\..\include\QtWebKit" -I"tmp\rcc\debug_shared" -I"
    15. tmp" -I"." -I"..\JavaScriptCore" -I"..\JavaScriptCore\ForwardingHeaders" -I"..\J
    16. avaScriptCore\interpreter" -I"..\JavaScriptCore\bytecode" -I"..\JavaScriptCore\d
    17. ebugger" -I"..\JavaScriptCore\parser" -I"..\JavaScriptCore\runtime" -I"z:\qt-src
    18. \src\3rdparty\webkit\WebCore\..\JavaScriptCore\bindings" -I"..\JavaScriptCore\wr
    19. ec" -I"..\JavaScriptCore\jit" -I"..\JavaScriptCore\wtf" -I"tmp" -I"..\JavaScript
    20. Core" -I"..\JavaScriptCore\parser" -I"..\JavaScriptCore\bytecompiler" -I"..\Java
    21. ScriptCore\debugger" -I"..\JavaScriptCore\runtime" -I"..\JavaScriptCore\wtf" -I"
    22. ..\JavaScriptCore\wtf\unicode" -I"..\JavaScriptCore\interpreter" -I"..\JavaScrip
    23. tCore\jit" -I"..\JavaScriptCore\profiler" -I"..\JavaScriptCore\wrec" -I"..\JavaS
    24. criptCore\API" -I"..\..\webkit" -I"..\JavaScriptCore\ForwardingHeaders" -I"..\Ja
    25. vaScriptCore\bytecode" -I"..\JavaScriptCore\assembler" -I"..\JavaScriptCore\pcre
    26. " -I"z:\qt-src\src\3rdparty\webkit\WebKitBuild\Debug\JavaScriptCore\tmp" -I"plat
    27. form\qt" -I"platform\network\qt" -I"platform\graphics\filters" -I"platform\graph
    28. ics\transforms" -I"platform\graphics\qt" -I"svg\graphics\qt" -I"loader" -I"page\
    29. qt" -I"..\WebKit\qt\WebCoreSupport" -I"..\WebKit\qt\Api" -I"bridge\qt" -I"." -I"
    30. ForwardingHeaders" -I"..\..\webkit" -I"platform" -I"platform\animation" -I"platf
    31. orm\network" -I"platform\graphics" -I"svg\animation" -I"svg\graphics" -I"svg\gra
    32. phics\filters" -I"platform\sql" -I"platform\text" -I"loader" -I"loader\appcache"
    33. -I"loader\archive" -I"loader\icon" -I"css" -I"dom" -I"page" -I"page\animation"
    34. -I"bridge" -I"editing" -I"rendering" -I"rendering\style" -I"history" -I"inspecto
    35. r" -I"xml" -I"html" -I"wml" -I"bindings\js" -I"svg" -I"platform\image-decoders"
    36. -I"plugins" -I"bridge" -I"bridge\c" -I"bridge\qt" -I"generated" -I"plugins\win"
    37. -I"..\..\sqlite" -I"..\..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"."
    38. -I"..\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\Timer.o platform\Time
    39. r.cpp
    40. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    41. k.h: In member function 'void __gnu_cxx::_ComparableConcept<_Tp>::__constraints(
    42. ) [with _Tp = WebCore::TimerHeapIterator]':
    43. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    44. k.h:62: instantiated from 'void __gnu_cxx::__function_requires() [with _Concep
    45. t = __gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>]'
    46. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    47. k.h:529: instantiated from 'void __gnu_cxx::_RandomAccessIteratorConcept<_Tp>:
    48. :__constraints() [with _Tp = WebCore::TimerHeapIterator]'
    49. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    50. k.h:62: instantiated from 'void __gnu_cxx::__function_requires() [with _Concep
    51. t = __gnu_cxx::_RandomAccessIteratorConcept<WebCore::TimerHeapIterator>]'
    52. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    53. k.h:553: instantiated from 'void __gnu_cxx::_Mutable_RandomAccessIteratorConce
    54. pt<_Tp>::__constraints() [with _Tp = WebCore::TimerHeapIterator]'
    55. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    56. k.h:62: instantiated from 'void __gnu_cxx::__function_requires() [with _Concep
    57. t = __gnu_cxx::_Mutable_RandomAccessIteratorConcept<WebCore::TimerHeapIterator>]
    58. '
    59. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_heap.h:162:
    60. instantiated from 'void std::push_heap(_RAIter, _RAIter) [with _RAIter = WebCore
    61. ::TimerHeapIterator]'
    62. platform\Timer.cpp:230: instantiated from here
    63. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    64. k.h:267: error: no match for 'operator>' in '((__gnu_cxx::_ComparableConcept<Web
    65. Core::TimerHeapIterator>*)this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHea
    66. pIterator>::__a > ((__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>*)t
    67. his)->__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>::__b'
    68. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    69. k.h:268: error: no match for 'operator<=' in '((__gnu_cxx::_ComparableConcept<We
    70. bCore::TimerHeapIterator>*)this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHe
    71. apIterator>::__a <= ((__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>*
    72. )this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>::__b'
    73. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    74. k.h:269: error: no match for 'operator>=' in '((__gnu_cxx::_ComparableConcept<We
    75. bCore::TimerHeapIterator>*)this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHe
    76. apIterator>::__a >= ((__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>*
    77. )this)->__gnu_cxx::_ComparableConcept<WebCore::TimerHeapIterator>::__b'
    78. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    79. k.h: In member function 'void __gnu_cxx::_ForwardIteratorConcept<_Tp>::__constra
    80. ints() [with _Tp = WebCore::TimerHeapIterator]':
    81. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    82. k.h:62: instantiated from 'void __gnu_cxx::__function_requires() [with _Concep
    83. t = __gnu_cxx::_ForwardIteratorConcept<WebCore::TimerHeapIterator>]'
    84. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    85. k.h:502: instantiated from 'void __gnu_cxx::_BidirectionalIteratorConcept<_Tp>
    86. ::__constraints() [with _Tp = WebCore::TimerHeapIterator]'
    87. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    88. k.h:62: instantiated from 'void __gnu_cxx::__function_requires() [with _Concep
    89. t = __gnu_cxx::_BidirectionalIteratorConcept<WebCore::TimerHeapIterator>]'
    90. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    91. k.h:528: instantiated from 'void __gnu_cxx::_RandomAccessIteratorConcept<_Tp>:
    92. :__constraints() [with _Tp = WebCore::TimerHeapIterator]'
    93. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    94. k.h:62: instantiated from 'void __gnu_cxx::__function_requires() [with _Concep
    95. t = __gnu_cxx::_RandomAccessIteratorConcept<WebCore::TimerHeapIterator>]'
    96. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    97. k.h:553: instantiated from 'void __gnu_cxx::_Mutable_RandomAccessIteratorConce
    98. pt<_Tp>::__constraints() [with _Tp = WebCore::TimerHeapIterator]'
    99. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    100. k.h:62: instantiated from 'void __gnu_cxx::__function_requires() [with _Concep
    101. t = __gnu_cxx::_Mutable_RandomAccessIteratorConcept<WebCore::TimerHeapIterator>]
    102. '
    103. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_heap.h:162:
    104. instantiated from 'void std::push_heap(_RAIter, _RAIter) [with _RAIter = WebCore
    105. ::TimerHeapIterator]'
    106. platform\Timer.cpp:230: instantiated from here
    107. c:\mingw\active\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_chec
    108. k.h:483: error: invalid initialization of non-const reference of type 'WebCore::
    109. TimerHeapElement&' from a temporary of type 'WebCore::TimerHeapElement'
    110. mingw32-make[2]: *** [tmp/obj/debug_shared/Timer.o] Error 1
    111. mingw32-make[2]: Leaving directory `Z:/qt-src/src/3rdparty/webkit/WebCore'
    112. mingw32-make[1]: *** [debug-all] Error 2
    113. mingw32-make[1]: Leaving directory `Z:/qt-src/src/3rdparty/webkit/WebCore'
    114. mingw32-make: *** [sub-webkit-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 
    Last edited by piotr.dobrogost; 16th July 2009 at 18:15.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: WebKit compilation error with GCC

    Quote Originally Posted by piotr.dobrogost View Post
    Has someone managed to fix this error?
    According to Thierry, the upcoming Qt 4.6 will compile with GCC 4.4 on Windows. The blog post is mostly about Phonon support, but as he mentions he fixed other problems as well.
    J-P Nurmi

  3. #3
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: WebKit compilation error with GCC

    Quote Originally Posted by jpn View Post
    According to Thierry, the upcoming Qt 4.6 will compile with GCC 4.4 on Windows. The blog post is mostly about Phonon support, but as he mentions he fixed other problems as well.
    I don't really see where he mentions fixing other problems.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: WebKit compilation error with GCC

    "And then, a few weeks ago, a new mingw was *finally* released based on gcc 4.4. That is truly great news for windows users. So I tested it and it works great. I had to fix some stuff but now Qt trunk (future 4.6) builds fine with it."
    J-P Nurmi

  5. #5
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: WebKit compilation error with GCC

    Actually I'm compiling with GCC 4.3.0 not with GCC 4.4.0 (sorry for this mistake) but that shouldn't matter here as the error is about initialization of non-const reference from a temporary and this AFAIK always has been and still is forbidden.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.