-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[libpq] Adding "-flto" to VCPKG_C_FLAGS causing libpq fail to compile #22163
Comments
@Yuhta, it seems the directory where ninja.exe is located to your path has not set correctly. could you reference https://stackoverflow.com/questions/38658014/ninja-not-found-by-cmake and see if it's helpful? BTW, I can't repro this issue locally. Failures:
|
The build seems having failed before that, it is complaining about "zlib library not found". The same setting was working when I use a toolchain with gcc 9 and cmake 3.16, but failed when I upgrade the toolchain to gcc 10 and cmake 3.20 (I always have |
I find out the reason, cmake is not picking up the correct gcc that I put on |
Actually it's very confusing, after I set
As soon as I add
|
I narrowed it down to
and this does not:
I suspect the underlying issue is one invocation of compiler failed (with |
This does not work either:
|
@Yuhta, sorry for my late response, could you provide the failure log /apps/home/gongchul/dse_poc/filesvc/vcpkg/buildtrees/libpq/config-x64-linux-dbg-out.log? It seems a compiler issue, I can't repro this issue with gcc 9.4.0. |
@PhoebeHui Looks normal to me:
|
@Yuhta, thanks for your response, I setup a machine with gcc 10.3.0 installed, I can't repro this issue with latest source.
|
My compiler is not built with system zlib (no
|
@Yuhta, I installed the pkgs which based on https://github.com/microsoft/vcpkg/blob/master/scripts/azure-pipelines/linux/provision-image.sh, could you help confirm? |
@PhoebeHui The compiler is configured by another team in my firm, it will take some time for me to get a gcc |
Please provide file Thanks. BTW, please install libpq with "dependencies":
{
"name": "libpq",
"features": [
"zlib"
]
} |
Does #22516 make a difference? |
Please reopen this issue if it still exist. |
Host Environment
To Reproduce
vcpkg.json:
vcpkg as a git submodule, included
scripts/buildsystems/vcpkg.cmake
in CMakeLists.txt.Failure logs
config-x64-linux-dbg-err.log:
The text was updated successfully, but these errors were encountered: