Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Building qt6 with LLVM 15

Building qt6 with LLVM 15

Scheduled Pinned Locked Moved Unsolved Qt 6
1 Posts 1 Posters 555 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JAre
    wrote on last edited by
    #1

    I'm getting [6215/8781] Linking CXX executable qtbase/bin/lupdate FAILED: qtbase/bin/lupdate
    with log:

    ...
    clangtoolastreader.cpp:(.text+0x5998): undefined reference to `clang::SourceRange::printToString(clang::SourceManager const&) const'
    clangtoolastreader.cpp:(.text+0x5aa8): undefined reference to `clang::SourceLocation::printToString(clang::SourceManager const&) const'
    ...
    

    my build configs are:

    ENV CC=/usr/bin/clang \
        CXX=/usr/bin/clang++ \
        CXX_STANDARD=c++17 \
        LLVM_USE_LINKER=lld \
        CPLUS_INCLUDE_PATH=/usr/lib/llvm-15/include/c++/v1 \
        C_INCLUDE_PATH=/usr/lib/llvm-15/include/clang \
        LIBRARY_PATH=/usr/lib/llvm-15/lib \
        CXXFLAGS="-std=c++17 -stdlib=libc++" \
        PATH=$PATH:/usr/lib/llvm-15/bin
    
    ./configure
    cmake --build .
    

    Docker file with minimal repro and the full error log available here

    Thanks!

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved