msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.31k stars 1.23k forks source link

CLANG64 static Qt 5 failed to link #22549

Closed CyanoHao closed 1 week ago

CyanoHao commented 2 weeks ago

Description / Steps to reproduce the issue

  1. Install CLANG64 toolchain and static Qt 5 package.
  2. Build an app, for example Red Panda C++.

Expected behavior

Secceed to build. https://github.com/royqh1979/RedPanda-CPP/actions/runs/11817375486/job/32922670566

Actual behavior

Failed to link with message

ld.lld: error: duplicate symbol: std::__1::bad_function_call::~bad_function_call()
>>> defined at libc++.a(functional.cpp.obj)
>>> defined at libQt5Core.a(qrunnable.o)

https://github.com/royqh1979/RedPanda-CPP/actions/runs/11828237117/job/32957950184#step:5:1380

Verification

Windows Version

MINGW64_NT-10.0-20348 (GitHub action runner "windows-latest")

Are you willing to submit a PR?

No response

CyanoHao commented 2 weeks ago

Packages changed from previous successful build:

6c6
< curl-8.11.0-1
---
> curl-8.11.0-2
10c10
< libcurl-8.11.0-1
---
> libcurl-8.11.0-2
22a23
> wget-1.25.0-1
31,32c32,33
< mingw-w64-clang-x86_64-clang-libs-18.1.8-2
< mingw-w64-clang-x86_64-compiler-rt-18.1.8-2
---
> mingw-w64-clang-x86_64-clang-libs-19.1.3-1
> mingw-w64-clang-x86_64-compiler-rt-19.1.3-1
34c35
< mingw-w64-clang-x86_64-crt-git-12.0.0.r386.gc6857dc97-1
---
> mingw-w64-clang-x86_64-crt-git-12.0.0.r387.gcf5c50cce-1
38c39
< mingw-w64-clang-x86_64-headers-git-12.0.0.r386.gc6857dc97-1
---
> mingw-w64-clang-x86_64-headers-git-12.0.0.r387.gcf5c50cce-1
42c43
< mingw-w64-clang-x86_64-libc++-18.1.8-2
---
> mingw-w64-clang-x86_64-libc++-19.1.3-1
52c53
< mingw-w64-clang-x86_64-libunwind-18.1.8-2
---
> mingw-w64-clang-x86_64-libunwind-19.1.3-1
54c55
< mingw-w64-clang-x86_64-libwinpthread-git-12.0.0.r386.gc6857dc97-1
---
> mingw-w64-clang-x86_64-libwinpthread-git-12.0.0.r387.gcf5c50cce-1
56,58c57,59
< mingw-w64-clang-x86_64-lld-18.1.8-2
< mingw-w64-clang-x86_64-llvm-18.1.8-2
< mingw-w64-clang-x86_64-llvm-libs-18.1.8-2
---
> mingw-w64-clang-x86_64-lld-19.1.3-1
> mingw-w64-clang-x86_64-llvm-19.1.3-1
> mingw-w64-clang-x86_64-llvm-libs-19.1.3-1
68c69
< mingw-w64-clang-x86_64-winpthreads-git-12.0.0.r386.gc6857dc97-1
---
> mingw-w64-clang-x86_64-winpthreads-git-12.0.0.r387.gcf5c50cce-1
104c105
< mingw-w64-clang-x86_64-clang-18.1.8-2
---
> mingw-w64-clang-x86_64-clang-19.1.3-1
raedrizqie commented 2 weeks ago

I have rebuild qt5 static here: https://github.com/raedrizqie/MINGW-packages/actions/runs/11860748699

could you download and test the artifact? if it solves your issue, i will open a PR for this

CyanoHao commented 1 week ago

I have rebuild qt5 static here: https://github.com/raedrizqie/MINGW-packages/actions/runs/11860748699

could you download and test the artifact? if it solves your issue, i will open a PR for this

Yeah, it solves this issue. Thank you.