Vcpkg: curl:x64-linux-dynamic fails building because of wrong post build check

Created on 10 Jul 2019  路  4Comments  路  Source: microsoft/vcpkg

My triplet (x64-linux-dynamic.cmake):

set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)

set(VCPKG_CMAKE_SYSTEM_NAME Linux)
$ ./vcpkg install curl:x64-linux-dynamic
The following packages will be built and installed:
    curl[core,openssl,ssl]:x64-linux-dynamic
Starting package 1/1: curl:x64-linux-dynamic
Building package curl[core,openssl,ssl]:x64-linux-dynamic...
-- Using cached /home/trojaner/vcpkg/downloads/curl-curl-curl-7_65_0.tar.gz
-- Using source at /home/trojaner/vcpkg/buildtrees/curl/src/url-7_65_0-56053d010f
-- Configuring x64-linux-dynamic-dbg
-- Configuring x64-linux-dynamic-rel
-- Building x64-linux-dynamic-dbg
-- Building x64-linux-dynamic-rel
-- Installing: /home/trojaner/vcpkg/packages/curl_x64-linux-dynamic/share/curl/copyright
-- Performing post-build validation
There should be no empty directories in /home/trojaner/vcpkg/packages/curl_x64-linux-dynamic
The following empty directories were found:

    /home/trojaner/vcpkg/packages/curl_x64-linux-dynamic/bin
    /home/trojaner/vcpkg/packages/curl_x64-linux-dynamic/debug/bin

If a directory should be populated but is not, this might indicate an error in the portfile.
If the directories are not needed and their creation cannot be disabled, use something like this in the portfile to remove them:

    file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/a/dir ${CURRENT_PACKAGES_DIR}/some/other/dir)


Found 1 error(s). Please correct the portfile:
    /home/trojaner/vcpkg/ports/curl/portfile.cmake
-- Performing post-build validation done
Error: Building package curl:x64-linux-dynamic failed with: POST_BUILD_CHECKS_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: curl:x64-linux-dynamic
  Vcpkg version: 2019.06.26-unknownhash

Additionally, attach any relevant sections from the log files above.

The folder at /home/trojaner/vcpkg/packages/curl_x64-linux-dynamic/bin is indeed empty because the output files are in /home/trojaner/vcpkg/packages/curl_x64-linux-dynamic/lib. Same for debug folder.

community-triplet

All 4 comments

@Trojaner Thanks for reporting this issue.
Currently vcpkg only supports building static libraries in linux.

Is it planned for the future?

I'm running into the same issue. It's odd though because i built other libraries like openssl, libfmt etc as shared libraries for linux and it works. The issue is only with libcurl.

@Trojaner See here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

husseinalihazime picture husseinalihazime  路  3Comments

angelmixu picture angelmixu  路  3Comments

cskrisz picture cskrisz  路  3Comments

cjvaijo picture cjvaijo  路  3Comments

tzbo picture tzbo  路  3Comments