-
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
bootstrap failed to build on Centos (devtoolset-7, 8) #9955
Comments
I encountered the same problem as above. |
Same behaviour with a fresh CentOS installation with devtoolset-8. I manage to compile by removing noexcept keyword of default constructors in file packagespec.h :
With this workaround, it's compiling in Linux (CentOS) and Windows. |
Same issue, MarcKLohr's work-around worked for me in CentOS 7. |
The question remains: why does it compile in Ubnutu with gcc 8 ? |
I encountered the same problem as above. |
Same problem on Centos 7 - devtoolset-7 - gcc 7.3.1 |
it seems vcpkg has dropped support for centos starting in 2020 |
On some platforms, the standard libraries might not yet be fully C++17 compliant. Perfect fix would require checking for std::is_nothrow_default_constructible(std::basic_string) before declaring that PackageSpec is noexcept. Similarly, a check for std::is_nothrow_default_constructible(std::vector<std::string>) would be required for FullPackageSpec. The enclosing class can not have a noexcept default constructor if one of the members can throw in it own default constructor. |
I will add that the workaround posted by @MarcKLohr still works as of the latest commit of Master, #11559 (tested on CentOS 7.6 (x64) with G++ 7.3 and 8.3 as provided in devtoolset-7 and devtoolset-8). After I finished that, I did encounter 1 other error that turned out to be unrelated. Due to a lack of adequate RAM (a total of 1GB) on the server where VCPKG was being compiled, the bootstrap script would fail at step 22:
I resolved this by creating a swap file: sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile With the extra "memory", the compiler was able to compile VCC correctly (
Hopefully this will help anyone having the same headaches as I did. |
So does someone have the balls to apply the patch as mentioned by MarcKLohr above ? Why does vcpkg insist on using language features more advanced than the libraries being installed?
. |
@BillyONeal What do you think? |
I think not |
@ras0219 @ras0219-msft I think your binary caching changes might have broken this?
We don't hate Centos7 or anything, that just isn't offered as one of the default Azure VMs so it is considerably more difficult for us to test. We should almost certainly fix this... |
Sorry for the long delay on getting this fixed; I've opened #12201 which fixes the issue for now, however it does not introduce CentOS testing into our CI system. I would really appreciate anyone on this thread experiencing this issue to chime in on the PR and confirm it solves the problem! |
confirmed ./bootstrap.sh works now on Centos7 with devtoolset-8. Would you mind adding a tag 2020.07 or so, it seems like a 'milestone' that centos7 is back >6 months after the working 2019.12 tag? |
* 'master' of https://github.com/microsoft/vcpkg: (1418 commits) [vcpkg integrate] Clean up vcpkg.target file (microsoft#4608) [vcpkg_from_sourceforge] Add retry mirror function (2/2) (microsoft#12018) [pcre2] Restore the https://ftp.pcre.org/ mirror in addition to the SourceForge mirrors. (microsoft#12233) [xercesc] rename feature from xmlch_wchar to xmlch-wchar (microsoft#12205) [safeint] Update to 3.24 (microsoft#12217) [vcpkg] Remove the tombstones and 'ignore' baseline concepts. (microsoft#12197) [msbuild] Revert the importance to Normal (microsoft#12212) [vtk] Added opengl feature. (microsoft#11399) [span-lite] Update to 0.7.0 (microsoft#12206) [cmocka libarchive libiconv libpq libxml2 plibsys] fix drive-by error in vcpkg-cmake-wrappers (microsoft#12196) [azure-iot-sdk-c] Fix feature name and enable to build (microsoft#12209) [vcpkg] Improve performance of compiler tracking by suppressing aspects of CMake's compiler detection. (microsoft#12203) [vcpkg] Remove all uses of Foo::Foo() noexcept = default; to fix microsoft#9955 (microsoft#12201) [sqlite3] update to 3.32.3 to deal with security issues (microsoft#12185) [infoware] Bump version to 0.5.4 (microsoft#12167) [imgui] Update to 1.77 (microsoft#12155) [vcpkg] Update message in bootstrap.ps1 (microsoft#12145) [vcpkg] Enable NuGet-based binary caching via mono (microsoft#12170) Don't change manifest root when manifest isn't enabled. (microsoft#12191) Fix sourceparagraph:BooleanField (microsoft#12192) ...
…osoft#9955 (microsoft#12201) Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Describe the bug
after commit :
e62d136 ("[vcpkg] Add Supports: field. Use contents of triplets instead of names for dependency resolution. (#8601)", 2020-02-03)
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
should build vcpkg
Failure logs
The text was updated successfully, but these errors were encountered: