You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
getdeps.sh fails on windows when applying patch to boost #510
When running getdeps.sh on Windows (via git/mingw bash), I get the following error when it tries to patch boost:
Building on {distro=None, distro_vers=10, fb=off, fbsource=off, os=windows, shared_libs=off, test=on}
Assessing gperf...
Assessing libsodium...
Assessing boost...
Building boost...
Patching boost with boost_comparator_operator_fix.patch in Z:\extracted\boost-boost_1_83_0.zip\boost_1_83_0
error: corrupt patch at line 11
Traceback (most recent call last):
File "C:\source\proxygen\build\fbcode_builder\getdeps\builder.py", line 138, in _apply_patchfile
subprocess.check_call(patchcmd + [patchfile])
File "C:\Tools\Python310\Lib\subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'apply', '--ignore-space-change', 'C:\\source\\proxygen\\build\\fbcode_builder\\patches\\boost_comparator_operator_fix.patch']' returned non-zero exit status 128.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\source\proxygen\build\fbcode_builder\getdeps.py", line 1422, in <module>
sys.exit(main())
File "C:\source\proxygen\build\fbcode_builder\getdeps.py", line 1405, in main
return args.func(args)
File "C:\source\proxygen\build\fbcode_builder\getdeps.py", line 108, in run
self.run_project_cmd(args, loader, manifest)
File "C:\source\proxygen\build\fbcode_builder\getdeps.py", line 671, in run_project_cmd
builder.build(reconfigure=reconfigure)
File "C:\source\proxygen\build\fbcode_builder\getdeps\builder.py", line 163, in build
self._apply_patchfile()
File "C:\source\proxygen\build\fbcode_builder\getdeps\builder.py", line 140, in _apply_patchfile
raise ValueError(f"Failed to apply patch to {self.manifest.name}")
ValueError: Failed to apply patch to boost
After this, I got all the way up to folly, which failed with:
CMake Error at C:/source/proxygen/_build/boost-Ct8ZMk_J_pyqyHLfrydelwvlfzw-NfC_5D8VmaRrOvw/lib/cmake/Boost-1.83.0/BoostConfig.cmake:141 (find_package):
Found package configuration file:
C:/source/proxygen/_build/boost-Ct8ZMk_J_pyqyHLfrydelwvlfzw-NfC_5D8VmaRrOvw/lib/cmake/boost_context-1.83.0/boost_context-config.cmake
but it set boost_context_FOUND to FALSE so package "boost_context" is
considered to be NOT FOUND. Reason given by package:
No suitable build variant has been found.
The following variants have been tried and rejected:
* boost_context-vc143-mt-x64-1_83.lib (vc143, detected vc141, set
Boost_COMPILER to override)
* libboost_context-vc143-mt-x64-1_83.lib (vc143, detected vc141, set
Boost_COMPILER to override)
Call Stack (most recent call first):
C:/source/proxygen/_build/boost-Ct8ZMk_J_pyqyHLfrydelwvlfzw-NfC_5D8VmaRrOvw/lib/cmake/Boost-1.83.0/BoostConfig.cmake:262 (boost_find_component)
C:/source/proxygen/_build/cmake-EFTozGEkm4tQR_57fvLQiFbFunALgAvRSIBuLcqKKpc/share/cmake-3.20/Modules/FindBoost.cmake:594 (find_package)
CMake/folly-deps.cmake:38 (find_package)
CMakeLists.txt:133 (include)
-- Configuring incomplete, errors occurred!
See also "Z:/build/folly/CMakeFiles/CMakeOutput.log".
See also "Z:/build/folly/CMakeFiles/CMakeError.log".
Command '['Z:\\build\\folly\\succeed.bat', '&&', 'C:/source/proxygen/_build/cmake-EFTozGEkm4tQR_57fvLQiFbFunALgAvRSIBuLcqKKpc\\bin\\cmake.exe', 'Z:\\repos\\github.life-white.uk-facebook-folly.git', '-DCMAKE_INSTALL_PREFIX=C:/source/proxygen/_build/folly', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBOOST_LINK_STATIC=ON', '-DBUILD_TESTS=OFF', '-DBUILD_BENCHMARKS=OFF', '-G', 'Ninja']' returned non-zero exit status 1.
!! Failed
Activity
fmoo commentedon Aug 23, 2024
Updating the second to last line of the patch to include a single whitespace seems to fix it locally for me:
fmoo commentedon Aug 23, 2024
Zlib needed four similarly:
fmoo commentedon Aug 23, 2024
Zlib needed four similarly:
fmoo commentedon Aug 23, 2024
After this, I got all the way up to folly, which failed with:
CMakeError.log
CMakeOutput.log
lmk if I should open a separate issue for that or what.
Fix OSS build
Fix OSS build (meta#518)
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build (#518)
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build
Fix OSS build