Hi, all:

Did anybody successfully build **Qt 6.6.0** from source? Any documentations:

My ENV:


Qt Code:
  1. ? ~ uname -r
  2. 6.2.0-35-generic
  3. ? ~ lsb_release -a
  4. No LSB modules are available.
  5. Distributor ID: Ubuntu
  6. Description: Ubuntu 22.04.3 LTS
  7. Release: 22.04
  8. Codename: jammy
  9. ? ~ gcc --version
  10. gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  11. Copyright (C) 2021 Free Software Foundation, Inc.
  12. This is free software; see the source for copying conditions. There is NO
  13. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14.  
  15. ? ~ clang --version
  16. clang version 18.0.0 (https://github.com/llvm/llvm-project.git e45f6e93d0b90e917eff61ac104a673c52ee2322)
  17. Target: x86_64-unknown-linux-gnu
  18. Thread model: posix
  19. InstalledDir: /usr/local/bin
To copy to clipboard, switch view to plain text mode 




Qt Code:
  1. -- GN Done. Made 17664 targets from 2873 files in 8984ms
  2. [1307/11628] Running ninja for QtPdf in /opt/qt/qt-everywhere-src-6.6.0/qtwebengine/src/pdf/Release/x86_64
  3. ninja: Entering directory `/opt/qt/qt-everywhere-src-6.6.0/qtwebengine/src/pdf/Release/x86_64'
  4. [969/1319] CXX obj/third_party/pdfium/core/fpdfdoc/fpdfdoc/cpdf_metadata.o
  5. In file included from ../../../3rdparty/chromium/third_party/pdfium/core/fpdfdoc/cpdf_metadata.h:12,
  6. from ../../../3rdparty/chromium/third_party/pdfium/core/fpdfdoc/cpdf_metadata.cpp:7:
  7. In destructor ‘virtual constexpr fxcrt::Retainable::~Retainable()’,
  8. inlined from ‘void fxcrt::Retainable::Release() const’ at ../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:187:14,
  9. inlined from ‘void fxcrt::Retainable::Release() const’ at ../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:184:8,
  10. inlined from ‘void fxcrt::ReleaseDeleter<T>::operator()(T*) const [with T = CFX_ReadOnlySpanStream]’ at ../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:24:54,
  11. inlined from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = CFX_ReadOnlySpanStream; _Dp = fxcrt::ReleaseDeleter<CFX_ReadOnlySpanStream>]’ at /usr/include/c++/11/bits/unique_ptr.h:361:17,
  12. inlined from ‘fxcrt::RetainPtr<T>::~RetainPtr() [with T = CFX_ReadOnlySpanStream]’ at ../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:104:3,
  13. inlined from ‘std::vector<UnsupportedFeature> CPDF_Metadata::CheckForSharedForm() const’ at ../../../3rdparty/chromium/third_party/pdfium/core/fpdfdoc/cpdf_metadata.cpp:85:1:
  14. ../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:165:11: warning: ‘void operator delete(void*, std::size_t)’ called on pointer ‘<unknown>’ with nonzero offset 24 [-Wfree-nonheap-object]
  15. 165 | virtual ~Retainable() = default;
  16. | ^
  17. ../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h: In member function ‘std::vector<UnsupportedFeature> CPDF_Metadata::CheckForSharedForm() const’:
  18. ../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:210:23: note: returned from ‘void* operator new(std::size_t)’
  19. 210 | return RetainPtr<T>(new T(std::forward<Args>(args)...));
  20. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21. [1319/1319] STAMP QtPdf.stamp
  22. [3013/11628] Automatic MOC for target Bluetooth
  23. AutoMoc: /opt/qt/qt-everywhere-src-6.6.0/qtconnectivity/src/bluetooth/qbluetoothservicediscoveryagent_p.h: note: No relevant classes found. No output generated.
  24. AutoMoc: /opt/qt/qt-everywhere-src-6.6.0/qtconnectivity/src/bluetooth/qbluetoothdevicediscoveryagent_p.h: note: No relevant classes found. No output generated.
  25. [4102/11628] Automatic MOC for target SerialBus
  26. AutoMoc: /opt/qt/qt-everywhere-src-6.6.0/qtserialbus/src/serialbus/qcanframeprocessor.h: note: No relevant classes found. No output generated.
  27. [4354/11628] Automatic MOC for target Pdf
  28. AutoMoc: /opt/qt/qt-everywhere-src-6.6.0/qtwebengine/src/pdf/qpdflinkmodel_p.h: note: No relevant classes found. No output generated.
  29. [4615/11628] Linking CXX executable qtbase/bin/qdoc
  30. FAILED: qtbase/bin/qdoc
  31. : && /usr/bin/c++ -DNDEBUG -O2 -Wl,--enable-new-dtags -no-pie qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/qdoc_autogen/mocs_compilation.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/aggregate.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/atom.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/boundaries/filesystem/directorypath.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/boundaries/filesystem/filepath.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/boundaries/filesystem/resolvedfile.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/clangcodeparser.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/classnode.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/codechunk.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/codemarker.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/codeparser.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/collectionnode.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/config.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/cppcodemarker.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/cppcodeparser.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/doc.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/docbookgenerator.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/docparser.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/docprivate.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/editdistance.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/enumnode.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/externalpagenode.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/filesystem/fileresolver.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/functionnode.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/generator.cpp.o qttools/src/qdoc/qdoc/CMakeFiles/qdoc.dir/headernode.cpp.o ......
  32. /usr/bin/ld: qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/cpp_clang.cpp.o: in function `clang::Decl::attrs() const':
  33. cpp_clang.cpp:(.text._ZNK5clang4Decl5attrsEv[_ZNK5clang4Decl5attrsEv]+0x15): undefined reference to `clang::Decl::getAttrs() const'
  34. /usr/bin/ld: cpp_clang.cpp:(.text._ZNK5clang4Decl5attrsEv[_ZNK5clang4Decl5attrsEv]+0x2d): undefined reference to `clang::Decl::getAttrs() const'
  35. /usr/bin/ld: qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/cpp_clang.cpp.o: in function `clang::SourceManager::getFileEntryForID(clang::FileID) const':
  36. cpp_clang.cpp:(.text._ZNK5clang13SourceManager17getFileEntryForIDENS_6FileIDE[_ZNK5clang13SourceManager17getFileEntryForIDENS_6FileIDE]+0x114): undefined reference to `clang::SourceManager::loadSLocEntry(unsigned int, bool*) const'
  37. /usr/bin/ld: qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/cpp_clang.cpp.o: in function `LupdatePreprocessorAction::ExecuteAction()':
  38. cpp_clang.cpp:(.text._ZN25LupdatePreprocessorAction13ExecuteActionEv[_ZN25LupdatePreprocessorAction13ExecuteActionEv]+0xf4): undefined reference to `vtable for clang::PPChainedCallbacks'
  39. /usr/bin/ld: cpp_clang.cpp:(.text._ZN25LupdatePreprocessorAction13ExecuteActionEv[_ZN25LupdatePreprocessorAction13ExecuteActionEv]+0x133): undefined reference to `clang::PreprocessOnlyAction::ExecuteAction()'
  40. /usr/bin/ld: qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/cpp_clang.cpp.o: in function `clang::RecursiveASTVisitor<LupdateVisitor>::TraverseDecl(clang::Decl*)':
  41. cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE]+0xaa): undefined reference to `clang::CapturedDecl::getBody() const'
  42. /usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE]+0x1fc): undefined reference to `clang::DeclContext::classof(clang::Decl const*)'
  43. /usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE]+0x208): undefined reference to `clang::Decl::castToDeclContext(clang::Decl const*)'
  44. /usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE]+0x2b4): undefined reference to `clang::DeclContext::classof(clang::Decl const*)'
  45. /usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE]+0x2c0): undefined reference to `clang::Decl::castToDeclContext(clang::Decl const*)'
  46. /usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE]+0x4e4): undefined reference to `clang::DeclContext::classof(clang::Decl const*)'
  47. /usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE]+0x4f0): undefined reference to `clang::Decl::castToDeclContext(clang::Decl const*)'
  48. /usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12TraverseDeclEPNS_4DeclE]+0x53d): undefined reference to `clang::DeclContext::classof(clang::Decl const*)'
  49. .......
To copy to clipboard, switch view to plain text mode 


Can anybody help please?

Thank you ..