PDA

View Full Version : Failed to build qt 6.6.0 from source



jiapei100
20th October 2023, 21:20
Hi, all:

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

My ENV:



? ~ uname -r
6.2.0-35-generic
? ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
? ~ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

? ~ clang --version
clang version 18.0.0 (https://github.com/llvm/llvm-project.git e45f6e93d0b90e917eff61ac104a673c52ee2322)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin





-- GN Done. Made 17664 targets from 2873 files in 8984ms
[1307/11628] Running ninja for QtPdf in /opt/qt/qt-everywhere-src-6.6.0/qtwebengine/src/pdf/Release/x86_64
ninja: Entering directory `/opt/qt/qt-everywhere-src-6.6.0/qtwebengine/src/pdf/Release/x86_64'
[969/1319] CXX obj/third_party/pdfium/core/fpdfdoc/fpdfdoc/cpdf_metadata.o
In file included from ../../../3rdparty/chromium/third_party/pdfium/core/fpdfdoc/cpdf_metadata.h:12,
from ../../../3rdparty/chromium/third_party/pdfium/core/fpdfdoc/cpdf_metadata.cpp:7:
In destructor ‘virtual constexpr fxcrt::Retainable::~Retainable()’,
inlined from ‘void fxcrt::Retainable::Release() const’ at ../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:187:14,
inlined from ‘void fxcrt::Retainable::Release() const’ at ../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:184:8,
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,
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,
inlined from ‘fxcrt::RetainPtr<T>::~RetainPtr() [with T = CFX_ReadOnlySpanStream]’ at ../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:104:3,
inlined from ‘std::vector<UnsupportedFeature> CPDF_Metadata::CheckForSharedForm() const’ at ../../../3rdparty/chromium/third_party/pdfium/core/fpdfdoc/cpdf_metadata.cpp:85:1:
../../../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]
165 | virtual ~Retainable() = default;
| ^
../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h: In member function ‘std::vector<UnsupportedFeature> CPDF_Metadata::CheckForSharedForm() const’:
../../../3rdparty/chromium/third_party/pdfium/core/fxcrt/retain_ptr.h:210:23: note: returned from ‘void* operator new(std::size_t)’
210 | return RetainPtr<T>(new T(std::forward<Args>(args)...));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1319/1319] STAMP QtPdf.stamp
[3013/11628] Automatic MOC for target Bluetooth
AutoMoc: /opt/qt/qt-everywhere-src-6.6.0/qtconnectivity/src/bluetooth/qbluetoothservicediscoveryagent_p.h: note: No relevant classes found. No output generated.
AutoMoc: /opt/qt/qt-everywhere-src-6.6.0/qtconnectivity/src/bluetooth/qbluetoothdevicediscoveryagent_p.h: note: No relevant classes found. No output generated.
[4102/11628] Automatic MOC for target SerialBus
AutoMoc: /opt/qt/qt-everywhere-src-6.6.0/qtserialbus/src/serialbus/qcanframeprocessor.h: note: No relevant classes found. No output generated.
[4354/11628] Automatic MOC for target Pdf
AutoMoc: /opt/qt/qt-everywhere-src-6.6.0/qtwebengine/src/pdf/qpdflinkmodel_p.h: note: No relevant classes found. No output generated.
[4615/11628] Linking CXX executable qtbase/bin/qdoc
FAILED: qtbase/bin/qdoc
: && /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 ......
/usr/bin/ld: qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/cpp_clang.cpp.o: in function `clang::Decl::attrs() const':
cpp_clang.cpp:(.text._ZNK5clang4Decl5attrsEv[_ZNK5clang4Decl5attrsEv]+0x15): undefined reference to `clang::Decl::getAttrs() const'
/usr/bin/ld: cpp_clang.cpp:(.text._ZNK5clang4Decl5attrsEv[_ZNK5clang4Decl5attrsEv]+0x2d): undefined reference to `clang::Decl::getAttrs() const'
/usr/bin/ld: qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/cpp_clang.cpp.o: in function `clang::SourceManager::getFileEntryForID(clang::Fi leID) const':
cpp_clang.cpp:(.text._ZNK5clang13SourceManager17ge tFileEntryForIDENS_6FileIDE[_ZNK5clang13SourceManager17getFileEntryForIDENS_6F ileIDE]+0x114): undefined reference to `clang::SourceManager::loadSLocEntry(unsigned int, bool*) const'
/usr/bin/ld: qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/cpp_clang.cpp.o: in function `LupdatePreprocessorAction::ExecuteAction()':
cpp_clang.cpp:(.text._ZN25LupdatePreprocessorActio n13ExecuteActionEv[_ZN25LupdatePreprocessorAction13ExecuteActionEv]+0xf4): undefined reference to `vtable for clang::PPChainedCallbacks'
/usr/bin/ld: cpp_clang.cpp:(.text._ZN25LupdatePreprocessorActio n13ExecuteActionEv[_ZN25LupdatePreprocessorAction13ExecuteActionEv]+0x133): undefined reference to `clang::PreprocessOnlyAction::ExecuteAction()'
/usr/bin/ld: qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/cpp_clang.cpp.o: in function `clang::RecursiveASTVisitor<LupdateVisitor>::TraverseDecl(clang::Decl*)':
cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisito rI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12 TraverseDeclEPNS_4DeclE]+0xaa): undefined reference to `clang::CapturedDecl::getBody() const'
/usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisito rI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12 TraverseDeclEPNS_4DeclE]+0x1fc): undefined reference to `clang::DeclContext::classof(clang::Decl const*)'
/usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisito rI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12 TraverseDeclEPNS_4DeclE]+0x208): undefined reference to `clang::Decl::castToDeclContext(clang::Decl const*)'
/usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisito rI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12 TraverseDeclEPNS_4DeclE]+0x2b4): undefined reference to `clang::DeclContext::classof(clang::Decl const*)'
/usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisito rI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12 TraverseDeclEPNS_4DeclE]+0x2c0): undefined reference to `clang::Decl::castToDeclContext(clang::Decl const*)'
/usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisito rI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12 TraverseDeclEPNS_4DeclE]+0x4e4): undefined reference to `clang::DeclContext::classof(clang::Decl const*)'
/usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisito rI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12 TraverseDeclEPNS_4DeclE]+0x4f0): undefined reference to `clang::Decl::castToDeclContext(clang::Decl const*)'
/usr/bin/ld: cpp_clang.cpp:(.text._ZN5clang19RecursiveASTVisito rI14LupdateVisitorE12TraverseDeclEPNS_4DeclE[_ZN5clang19RecursiveASTVisitorI14LupdateVisitorE12 TraverseDeclEPNS_4DeclE]+0x53d): undefined reference to `clang::DeclContext::classof(clang::Decl const*)'
.......



Can anybody help please?

Thank you ..