[Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

Axel Spoerl axel.spoerl at qt.io
Sat Oct 7 23:06:35 CEST 2023


Hi,
just ran the configure command without any issues on 6.2.9 / mingw64.
Which submodules are you using?
Is the build tree clean?
Is there a specific reason for using -developer-build in release mode?
Does a simple ../../configure (without arguments) work?
Have you tested 6.5 / 6.6 as well?
I suggest to file a bug report, including the cmake output, CMakeOutput.log, CMakeError.log.
Cheers,
Axel
________________________________
Von: Development <development-bounces at qt-project.org> im Auftrag von Haowei Hsu <hwhsu1231 at gmail.com>
Gesendet: Samstag, 7. Oktober 2023 19:10
An: Qt development mailing list <development at qt-project.org>
Betreff: Re: [Development] Failed to run configure.bat in qt/qt5 on MINGW64/MSYS2 shell?

Hello, Qt Development Team.

It's been a while since the last time we discuss this issue.
And recently, I re-tried to configure qt-6.2.4 with msys2/mingw64 shell.
However, it still failed with the same error again:

Configuring 'qttools'
-- CMAKE_BUILD_TYPE was set to: 'Release'
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: C:/msys64/mingw64/lib/libffi.dll.a
-- Found ZLIB: C:/msys64/mingw64/lib/libz.dll.a (found version "1.3.#define ZLIB_VERSION "1.3"")
CMake Error at C:/msys64/mingw64/lib/cmake/zstd/zstdTargets.cmake:42 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: zstd::libzstd_static

  Targets not yet defined: zstd::libzstd_shared

Call Stack (most recent call first):
  C:/msys64/mingw64/lib/cmake/zstd/zstdConfig.cmake:1 (include)
  qtbase/cmake/FindZSTD.cmake:21 (find_package)
  C:/msys64/mingw64/lib/cmake/llvm/LLVMConfig.cmake:269 (find_package)
  C:/msys64/mingw64/lib/cmake/clang/ClangConfig.cmake:10 (find_package)
  qttools/cmake/FindWrapLibClang.cmake:14 (find_package)
  qtbase/cmake/QtFindPackageHelpers.cmake:130 (find_package)
  qttools/configure.cmake:19 (qt_find_package)
  qtbase/cmake/QtFeature.cmake:573 (include)
  qttools/src/CMakeLists.txt:21 (qt_feature_evaluate_features)


-- Configuring incomplete, errors occurred!
CMake Error at D:/Repo/tmp/qt-6.2.4/qtbase/cmake/QtProcessConfigureArgs.cmake:957 (message):
  CMake exited with code 1.

After reading the log, I think it is because the configure process called find_package(zstd) twice:

  1.  The 1st time happens when configuring 'qtbase'
  2.  The 2nd time happens when configuring 'qttools'

Let's why the 2nd time thinks the 'zstd::libzstd_static' target is already defined.
If so, I wondered whether you have any solution to the cause of this zstd-relared error?

---
Haowei Hsu

Haowei Hsu <hwhsu1231 at gmail.com<mailto:hwhsu1231 at gmail.com>> 於 2023年8月25日 週五 下午4:31寫道:
Hello, Dennis.
I followed the command you provided:

../../configure -release -developer-build -nomake examples -nomake tests -- -DFEATURE_system_zlib=OFF

However, it still failed.
You can see the attachment with the full log: log-still-failed-with-feature-system-zlib-off.txt
---
Haowei Hsu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20231007/f42b9bae/attachment-0001.htm>


More information about the Development mailing list