Skip to content
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

Boost fails to build w/ VS2017 only installed #683

Closed
ambasta opened this issue Feb 17, 2017 · 4 comments
Closed

Boost fails to build w/ VS2017 only installed #683

ambasta opened this issue Feb 17, 2017 · 4 comments
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@ambasta
Copy link

ambasta commented Feb 17, 2017

Build log

C:\vcpkg>.\vcpkg install boost
-- CURRENT_INSTALLED_DIR=C:/vcpkg/installed/x86-windows
-- DOWNLOADS=C:/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=C:/vcpkg/packages/boost_x86-windows
-- CURRENT_BUILDTREES_DIR=C:/vcpkg/buildtrees/boost
-- CURRENT_PORT_DIR=C:/vcpkg/ports/boost/.
-- Using cached C:/vcpkg/downloads/boost_1_63_0.tar.bz2
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Extracting done
-- Using cached C:/vcpkg/downloads/boost-range-has_range_iterator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Applying patch C:/vcpkg/buildtrees/boost/src/boost-range-has_range_iterator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff.fixed
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch C:/vcpkg/buildtrees/boost/src/boost-range-has_range_iterator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff.fixed done
-- Bootstrapping done
-- Building x86-windows-rel
-- Building x86-windows-rel done
-- Building x86-windows-dbg
-- Building x86-windows-dbg done
-- Packaging headers
-- Installing: C:/vcpkg/packages/boost_x86-windows/share/boost/copyright
-- Packaging headers done
-- Packaging x86-windows-rel
-- Packaging x86-windows-rel done
-- Packaging x86-windows-dbg
-- Packaging x86-windows-dbg done
-- Performing post-build validation
There should be no empty directories in C:/vcpkg/packages/boost_x86-windows
The following empty directories were found:

    C:/vcpkg/packages/boost_x86-windows/bin
    C:/vcpkg/packages/boost_x86-windows/debug/bin
    C:/vcpkg/packages/boost_x86-windows/debug/lib
    C:/vcpkg/packages/boost_x86-windows/lib

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)


-- Performing post-build validation done
Found 1 error(s). Please correct the portfile:
    C:\vcpkg\ports\boost\portfile.cmake
Error: Building package boost:x86-windows failed with: POST_BUILD_CHECKS_FAILED
Please ensure sure you're using the latest portfiles with `vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: boost:x86-windows
  Vcpkg version: 0.0.74-1c3335ed66597e90a1f0b2c393522a28bff1f400

Additionally, attach any relevant sections from the log files above.
@ambasta
Copy link
Author

ambasta commented Feb 17, 2017

Additional logs: build-x64-windows-dbg-out

notice: found boost-build.jam at C:/vcpkg/buildtrees/boost/src/boost_1_63_0/boost-build.jam
notice: loading Boost.Build from C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src
notice: Searching 'C:\Windows' 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Windows' 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.'.
notice: Searching 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.' for user-config configuration file 'user-config.jam'.
notice: Configuration file 'user-config.jam' not found in 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.'.
notice: Searching '.' for project-config configuration file 'project-config.jam'.
notice: Loading project-config configuration file 'project-config.jam' from '.'.
notice: will use 'cl.exe' for msvc, condition <toolset>msvc
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:834: in generate-setup-cmd
*** argument error
* rule maybe-rewrite-setup ( toolset : setup-script : setup-options : version : rewrite-setup ? )
* called with: ( msvc :  :  : default :  )
* missing argument setup-script
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:746:see definition of rule 'maybe-rewrite-setup' being called
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:1076: in configure-really
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:201: in configure
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:153: in msvc.init
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build\toolset.jam:43: in toolset.using
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build\project.jam:1052: in using
project-config.jam:3: in modules.load
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src\build-system.jam:249: in load-config
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src\build-system.jam:412: in load-configuration-files
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src\build-system.jam:524: in load
C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools\build\src/kernel\modules.jam:295: in import
C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools\build\src/kernel/bootstrap.jam:139: in boost-build
C:\vcpkg\buildtrees\boost\src\boost_1_63_0\boost-build.jam:17: in module scope

file: build-x64-windows-rel-out

notice: found boost-build.jam at C:/vcpkg/buildtrees/boost/src/boost_1_63_0/boost-build.jam
notice: loading Boost.Build from C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src
notice: Searching 'C:\Windows' 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Windows' 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.'.
notice: Searching 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.' for user-config configuration file 'user-config.jam'.
notice: Configuration file 'user-config.jam' not found in 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.'.
notice: Searching '.' for project-config configuration file 'project-config.jam'.
notice: Loading project-config configuration file 'project-config.jam' from '.'.
notice: will use 'cl.exe' for msvc, condition <toolset>msvc
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:834: in generate-setup-cmd
*** argument error
* rule maybe-rewrite-setup ( toolset : setup-script : setup-options : version : rewrite-setup ? )
* called with: ( msvc :  :  : default :  )
* missing argument setup-script
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:746:see definition of rule 'maybe-rewrite-setup' being called
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:1076: in configure-really
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:201: in configure
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:153: in msvc.init
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build\toolset.jam:43: in toolset.using
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build\project.jam:1052: in using
project-config.jam:3: in modules.load
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src\build-system.jam:249: in load-config
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src\build-system.jam:412: in load-configuration-files
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src\build-system.jam:524: in load
C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools\build\src/kernel\modules.jam:295: in import
C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools\build\src/kernel/bootstrap.jam:139: in boost-build
C:\vcpkg\buildtrees\boost\src\boost_1_63_0\boost-build.jam:17: in module scope

build-x86-windows-dbg-out

notice: found boost-build.jam at C:/vcpkg/buildtrees/boost/src/boost_1_63_0/boost-build.jam
notice: loading Boost.Build from C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src
notice: Searching 'C:\Windows' 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Windows' 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.'.
notice: Searching 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.' for user-config configuration file 'user-config.jam'.
notice: Configuration file 'user-config.jam' not found in 'C:\Users\amitp' 'C:\Users\amitp' 'C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools/build/src' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/kernel' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/util' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/contrib' 'C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/.'.
notice: Searching '.' for project-config configuration file 'project-config.jam'.
notice: Loading project-config configuration file 'project-config.jam' from '.'.
notice: will use 'cl.exe' for msvc, condition <toolset>msvc
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:834: in generate-setup-cmd
*** argument error
* rule maybe-rewrite-setup ( toolset : setup-script : setup-options : version : rewrite-setup ? )
* called with: ( msvc :  :  : default :  )
* missing argument setup-script
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:746:see definition of rule 'maybe-rewrite-setup' being called
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:1076: in configure-really
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:201: in configure
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/tools\msvc.jam:153: in msvc.init
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build\toolset.jam:43: in toolset.using
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src/build\project.jam:1052: in using
project-config.jam:3: in modules.load
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src\build-system.jam:249: in load-config
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src\build-system.jam:412: in load-configuration-files
C:/vcpkg/buildtrees/boost/src/boost_1_63_0/tools/build/src\build-system.jam:524: in load
C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools\build\src/kernel\modules.jam:295: in import
C:\vcpkg\buildtrees\boost\src\boost_1_63_0\tools\build\src/kernel/bootstrap.jam:139: in boost-build
C:\vcpkg\buildtrees\boost\src\boost_1_63_0\boost-build.jam:17: in module scope

@ras0219-msft ras0219-msft added the category:port-bug The issue is with a library, which is something the port should already support label Feb 19, 2017
@stoperro
Copy link
Contributor

I've modified project-config.jam in F:\vcpkg\buildtrees\boost\src\boost_1_63_0\ as according to http://stackoverflow.com/a/41985258/950131 (note revision number my differ a bit - check your exact directory of cl.exe).
Seems as if it worked:
...
-- Installing: F:/vcpkg/packages/boost_x64-windows-static/debug/lib/libboost_wserialization-vc140-mt-sgd-1_63.lib
-- Packaging x64-windows-static-dbg done
-- Performing post-build validation
-- Performing post-build validation done
Package boost:x64-windows-static is installed

But then when trying to use it I get:
D:\buildy\sprite_extract\vs15_64_7>"c:\Program Files\CMake\bin\cmake.exe" .. -DCMAKE_TOOLCHAIN_FILE=F:/vcpkg/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 15 2017 Win64"
-- The C compiler identification is MSVC 19.10.24930.0
-- The CXX compiler identification is MSVC 19.10.24930.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.24930/bin/HostX86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.24930/bin/HostX86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.24930/bin/HostX86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.24930/bin/HostX86/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
abc D:/buildy/sprite_extract
CMake Warning at C:/Program Files/CMake/share/cmake-3.8/Modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.8/Modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES)
C:/Program Files/CMake/share/cmake-3.8/Modules/FindBoost.cmake:1456 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:20 (find_package)

@stoperro
Copy link
Contributor

stoperro commented Mar 8, 2017

With newest build I don't need to do this hack with project-config.jam, but still I get: "Imported targets not available for Boost version"

@ras0219-msft
Copy link
Contributor

This should be fixed in our latest versions; please let us know if the problem reproduces for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

3 participants