-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[binarycaching] linux copy_file is restricted to 2GiB #21557
Comments
Oh dear, this is what I get for assuming the old code was correct. As part of the indicated PR, I reused the existing code that called Well... https://man7.org/linux/man-pages/man2/sendfile.2.html#NOTES |
are you kidding me :'( edit: oh, note this here:
|
So we should use |
As far as I can see
I don't think it's arch dependent. |
I was not able to test with this example because GCC 9.3 emits a ton of "-Wno-redundant-move" errors which causes that overlayed qt build to fail, but I still think the PR I submitted in the tool repo should fix the issue if you want to try building it yourself. |
Would be fixed by #22629 |
Fixed by #22629 |
Describe the bug
I'm building
qt5-webkit
forx64-linux-dynamic
. The build is successful and vcpkg kindly creates binary cache for it. However, when I restore the library from cache, one file gets corrupted (truncated from 2.7gb to exactly 2gb, see screenshot). If I manually unpack the archive (e.g.unzip -qq /home/osyotr/.cache/vcpkg/archives/7b/7bc45507c4cc57f59860de97c1c38bdce12b35a07d5ecc3c8136b4ad44f6af75.zip -d/mnt/d/my_project/vcpkg_installed/x64-linux
or just drag'n'drop from 7zip), the file doesn't get corrupted.I suspect the real problem is not in unpacking, but in transferring files between
packages/
dir andvcpkg_installed/
dir.I also suspect that this is a regression because I was able to link against the library before updating ~2 months old vcpkg instance.
Maybe microsoft/vcpkg-tool#205? @BillyONeal
Environment
To Reproduce
vcpkg.json
on D:/./vcpkg install qt5-webkit --overlay-ports=vcpkg_overlay_ports --overlay-triplets=vcpkg_overlay_triplets --debug
~/vcpkg/packages/
andvcpkg_installed
folders.vcpkg_installed/lib/libQt5WebKit.so.5.212.0
I've attached overlay ports and triplets I used to build the library, as well as
vcpkg.json
andvcpkg-configuration.json
.qt5-base
overlay port andx64-linux
triplets are probably not needed but I attached them anyway. (both contain rpath fixes but I think the issue can be reproduced with official x64-linux triplet).vcpkg_overlay_ports_triplets.zip
Failure logs
No errors reported.
Additional context
The text was updated successfully, but these errors were encountered: