-
Notifications
You must be signed in to change notification settings - Fork 2k
[package] libpq/15.4: MinGW undefined references when using libpq #25282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I could not paste all the logs. Here is a file with all: They come from this build job: |
…rk with 15.4 Building libpq/15.4 static on MinGW produces an empty libpq.a librariy. When used, linking fails with undefined references. The updated patches/15/001-mingw-build-static-libraries.patch fixes that.
I looked in a created package, and seen that |
… libpq-conan-ioGH-24895-broken-symlinks-conan-ioGH-25282-mingw-undef-refs
… libpq-conan-ioGH-24895-broken-symlinks-conan-ioGH-25282-mingw-undef-refs
… libpq-conan-ioGH-24895-broken-symlinks-conan-ioGH-25282-mingw-undef-refs
… libpq-conan-ioGH-24895-broken-symlinks-conan-ioGH-25282-mingw-undef-refs
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 failing
conan test
is available here:https://gitlab.com/scandyna/conan-center-index-partialbasicci-sandbox/-/jobs/7833187239
Package 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
The text was updated successfully, but these errors were encountered: