facebook / buck

A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.
https://buck.build
Apache License 2.0
8.56k stars 1.16k forks source link

got OSError: [Errno 45] Operation not supported when run "buck build demo_app_ios" command #2691

Closed imooccodejesse closed 2 years ago

imooccodejesse commented 2 years ago

OS system: macOS Big Sur ver 11.6.5 buck version 2021.01.12.01 java version "1.8.0_201" Ant version 1.10.12 compiled on October 13 2021 Python 2.7.16 git version 2.29.2 watchman 2022.03.21.00 file system format: APFS

[Errno 45] Operation not supported Traceback (most recent call last): File "/usr/local/bin/buck/programs/buck.py", line 243, in File "/usr/local/bin/buck/programs/buck.py", line 227, in main File "/usr/local/bin/buck/programs/buck_tool.py", line 754, in launch_buck jvm_args = self._get_java_args(buck_version_uid) File "/usr/local/bin/buck/programs/buck_tool.py", line 1073, in _get_java_args "-Dbuck.binary_hash={0}".format(self._get_buck_binary_hash()), File "/usr/local/bin/buck/programs/buck_package.py", line 165, in _get_buck_binary_hash with open(self._get_resource(BUCK_BINARY_HASH), "r") as buck_binary_hash_file: File "/usr/local/bin/buck/programs/buck_package.py", line 103, in _get_resource resource_path = os.path.join(self._get_resource_subdir(), resource.basename) File "/usr/local/bin/buck/programs/buck_package.py", line 73, in _get_resource_subdir self._lock_file = try_subdir(subdir) File "/usr/local/bin/buck/programs/buck_package.py", line 64, in try_subdir if file_locks.acquire_shared_lock(lock_file): File "/usr/local/bin/buck/programs/file_locks.py", line 52, in acquire_shared_lock return _fcntl_with_exception_handling(fh, exclusive=False, wait=wait) File "/usr/local/bin/buck/programs/file_locks.py", line 33, in _fcntl_with_exception_handling fcntl.lockf(fh.fileno(), lock_type) OSError: [Errno 45] Operation not supported.


Error thrown from what below indicates

image