Open scandyna opened 2 months ago
I could not paste all the logs. Here is a file with all: build_test_libpq_mingw13_logs.txt
They come from this build job: https://gitlab.com/scandyna/conan-center-index-partialbasicci-sandbox/-/jobs/7833639498
I looked in a created package, and seen that libpq.a
is an empty file.
Also looked what patches/15/001-mingw-build-static-libraries.patch
does, and found something missing.
I'm testing an update on my side, and will submit a PR if ok.
Description
While building qt/6.7.1 on Windows with MinGW gcc 13, there are a lot of undefined references, like:
An example of a failing build of Qt6 is available here: https://gitlab.com/scandyna/conan-qt-builds/-/jobs/7827688162/viewer
The problem is also reproducible with the
test_package
provided in thelibpq
recipe. An example of a failingconan test
is available here: https://gitlab.com/scandyna/conan-center-index-partialbasicci-sandbox/-/jobs/7833187239Package and Environment Details
Conan profile
Configuration (profile_host): [settings] arch=x86_64 build_type=Debug compiler=gcc compiler.cppstd=17 compiler.crt=ucrt compiler.exception=seh compiler.libcxx=libstdc++11 compiler.threads=posix compiler.version=13 os=Windows [options] icu:shared=False libalsa:shared=True libpq:shared=False qt:gui=True qt:qtserialport=True qt:shared=True qt:widgets=True qt:with_glib=False qt:with_mysql=False qt:with_odbc=True qt:with_pq=True qt:with_sqlite3=True qt:with_vulkan=False zlib:shared=False [build_requires] [env] CC=gcc CXX=g++ [conf] tools.build:compiler_executables={'c': 'C:/MinGW/mingw64/bin/gcc.exe', 'cpp': 'C:/MinGW/mingw64/bin/g++.exe'} [buildenv] CC=gcc CXX=g++ PATH=+(path)/MinGW/mingw64/bin [runenv] PATH=+(path)/MinGW/mingw64/bin Configuration (profile_build): [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=17 compiler.crt=ucrt compiler.exception=seh compiler.libcxx=libstdc++11 compiler.threads=posix compiler.version=13 os=Windows [options] icu:shared=False libalsa:shared=True qt:gui=True qt:qtserialport=True qt:shared=True qt:widgets=True qt:with_glib=False qt:with_mysql=False qt:with_odbc=True qt:with_pq=True qt:with_sqlite3=True qt:with_vulkan=False zlib:shared=False [build_requires] [env] CC=gcc CXX=g++ [conf] tools.build:compiler_executables={'c': 'C:/MinGW/mingw64/bin/gcc.exe', 'cpp': 'C:/MinGW/mingw64/bin/g++.exe'} [buildenv] CC=gcc CXX=g++ PATH=+(path)/MinGW/mingw64/bin [runenv] PATH=+(path)/MinGW/mingw64/bin
Steps to reproduce
Logs
Click to expand log
``` $ conan test test_package libpq/$LIBPQ_VERSION@ --profile:build $CONAN_PROFILE_BUILD --profile:host $CONAN_PROFILE_HOST --settings:build build_type=Release --settings:host build_type=$BUILD_TYPE --options:host libpq:shared=$BUILD_SHARED_LIBS WARN: *** Conan 1 is legacy and on a deprecation path *** WARN: *** Please upgrade to Conan 2 *** Configuration (profile_host): [settings] arch=x86_64 build_type=Debug compiler=gcc compiler.cppstd=17 compiler.crt=ucrt compiler.exception=seh compiler.libcxx=libstdc++11 compiler.threads=posix compiler.version=13 os=Windows [options] icu:shared=False libalsa:shared=True libpq:shared=False qt:gui=True qt:qtserialport=True qt:shared=True qt:widgets=True qt:with_glib=False qt:with_mysql=False qt:with_odbc=True qt:with_pq=True qt:with_sqlite3=True qt:with_vulkan=False zlib:shared=False [build_requires] [env] CC=gcc CXX=g++ [conf] tools.build:compiler_executables={'c': 'C:/MinGW/mingw64/bin/gcc.exe', 'cpp': 'C:/MinGW/mingw64/bin/g++.exe'} [buildenv] CC=gcc CXX=g++ PATH=+(path)/MinGW/mingw64/bin [runenv] PATH=+(path)/MinGW/mingw64/bin Configuration (profile_build): [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=17 compiler.crt=ucrt compiler.exception=seh compiler.libcxx=libstdc++11 compiler.threads=posix compiler.version=13 os=Windows [options] icu:shared=False libalsa:shared=True qt:gui=True qt:qtserialport=True qt:shared=True qt:widgets=True qt:with_glib=False qt:with_mysql=False qt:with_odbc=True qt:with_pq=True qt:with_sqlite3=True qt:with_vulkan=False zlib:shared=False [build_requires] [env] CC=gcc CXX=g++ [conf] tools.build:compiler_executables={'c': 'C:/MinGW/mingw64/bin/gcc.exe', 'cpp': 'C:/MinGW/mingw64/bin/g++.exe'} [buildenv] CC=gcc CXX=g++ PATH=+(path)/MinGW/mingw64/bin [runenv] PATH=+(path)/MinGW/mingw64/bin libpq/15.4 (test package): Installing package Requirements libpq/15.4 from local cache - Cache Packages libpq/15.4:19b369753531268bb7660290d71f992b141d7b72 - Cache Installing (downloading, building) binaries... libpq/15.4: Already installed! libpq/15.4 (test package): Generator 'CMakeToolchain' calling 'generate()' libpq/15.4 (test package): Preset 'debug' added to CMakePresets.json. Invoke it manually using 'cmake --preset debug' libpq/15.4 (test package): If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake