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

Error updating boost #60

Closed
marcogroppo opened this issue Sep 21, 2016 · 2 comments
Closed

Error updating boost #60

marcogroppo opened this issue Sep 21, 2016 · 2 comments
Assignees

Comments

@marcogroppo
Copy link

marcogroppo commented Sep 21, 2016

I tried to update boost from 1.60 to 1.61 using these commands:

vcpkg remove --purge boost:x86-windows 
vcpkg install boost:x86-windows

but the installation failed because of linking errors. The old build directories (1.60) were still there and they probably contained the old files. After removing these directories (buildtrees\boost\x86-windows-rel and buildtrees\boost\x86-windows-dbg) the installation went fine.

Should these directories be removed by the vcpkg remove command?
Is it ok to remove everything in buildtrees\* after installing a package?

@ras0219-msft
Copy link
Contributor

The buildtrees are not currently removed by vcpkg remove --purge. It is always safe to delete buildtrees\, however this is where the unpacked source code and (sometimes) the pdbs are kept, so it may adversely affect debugging.

These build directories are normally removed by vcpkg_configure_cmake (see https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_configure_cmake.cmake#L23). But, since Boost doesn't use that function, it needs to explicitly clear them.

@alexkaratarakis alexkaratarakis self-assigned this Sep 21, 2016
@alexkaratarakis
Copy link
Contributor

After f03590e the boost portfile properly handles this by removing relevant directories before initiating a build.
Thanks for reporting!

strega-nil added a commit to strega-nil/vcpkg that referenced this issue May 5, 2021
strega-nil added a commit to strega-nil/vcpkg that referenced this issue May 5, 2021
The following PRs are included:

* hopefully fix crash in constraints (microsoft#60)
* [vcpkg] allow --version to check the version (microsoft#50)
* Remove baseline warning (microsoft#27)
* [git] always pass autocrlf=false (microsoft#58)
* ignore QtCreator CMake project files (microsoft#54)
* ignore .DS_store files (microsoft#53)
* [vcpkg] x-add-version now also checks if the manifest file is properly formatted (microsoft#43)
* hopefully fix ci issue microsoft#16773 (microsoft#34)
* Add docs to set VCPKG_ROOT to run tests (microsoft#45)
* [vcpkg] x-add-version improve speed by calling get_builtin_baseline only once (microsoft#44)
* add clang-format version to format-cxxcode (microsoft#41)
* [vcpkg] Introduce experimental workaround X_VCPKG_NUGET_ID_PREFIX (microsoft#40)
* [supports] Add `native` identifier expression and x-check-support command (microsoft#29)
* [metrics] Split reporting of installs into name:triplet (microsoft#39)
* [vcpkg] Improve error when accessing missing feature (microsoft#38)
* [vcpkg] Allow shallow git registries (microsoft#37)
* Disable git autocrlf when archiving tree (microsoft#36)
* Use only named packages from extra registries (microsoft#35)
* [registries] add metrics (microsoft#30)
* Add vcpkg policy cmake helper port support (microsoft#17)
* [osx] add support for rosetta (microsoft#23)
* don't build tls12-download unless it's needed (microsoft#33)
* Add new telemetry points for versioning (microsoft#21)
* add cmake_minimum_required to vcpkg_tags (microsoft#25)
* [x-add-versions] Perform atomic replacement of versioning files (microsoft#28)
* [tools] support gsutil (microsoft#19)
* add CUDA 11.1 and 11.2 to KEEP_ENV_VARS defaults (microsoft#26)
* Add finite timeout on CURL metrics endpoint. (microsoft#22)
* fix UB in make_error_code(utf8_errc) (microsoft#18)
dempo93 pushed a commit to dempo93/vcpkg that referenced this issue Aug 23, 2022
fwcd pushed a commit to fwcd/vcpkg that referenced this issue May 20, 2023
…make

Backport `vcpkg_configure_qmake` to fix Qt cross-build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants