make_pex.py failed on Building in WSL:Ubuntu

Administrator
2021-08-24T18:45:33Z

*Created by: mh884*

Build the project by using ./bin/buck build --show-output buck it throw error
common.py should handle the permission but for some reason there is something is not right
Python 3.8.5
buck version 87135f8e0de092a6be12736c5254c0c125a2b238

`Building: finished in 4.1 sec (100%) 202/1853 jobs, 77 updated
Total time: 4.1 sec
Command failed with exit code 1.

command: [/usr/bin/python3, /mnt/c/buck/ant-out/buck-modules-resources/python/make_pex.py, --python-shebang=/usr/bin/env python3, --python, /usr/bin/python3, --python-version, CPython 3.8, --entry-point, programs.gen_buck_info, buck-out/gen/ce9b6f2e/programs/gen_buck_info.pex]

stderr: Traceback (most recent call last):
File "/mnt/c/buck/ant-out/buck-modules-resources/python/make_pex.py", line 193, in
sys.exit(main())
File "/mnt/c/buck/ant-out/buck-modules-resources/python/make_pex.py", line 190, in main
pex_builder.build(output)
File "/mnt/c/buck/third-party/py/pex/pex/pex_builder.py", line 418, in build
chmod_plus_x(filename)
File "/mnt/c/buck/third-party/py/pex/pex/common.py", line 153, in chmod_plus_x
os.chmod(path, path_mode)
PermissionError: [Errno 1] Operation not permitted: 'buck-out/gen/ce9b6f2e/programs/gen_buck_info.pex'

When running .
When building rule //programs:gen_buck_info.`