OSError: [Errno 13] Permission denied

747 views
Skip to first unread message

YBN

unread,
Sep 9, 2018, 6:09:48 PM9/9/18
to Chromium-dev
using this guide to checking out and building chromium for android:

running on a amd64 windows pc. I'm using Ubuntu 18.04 (Windows Subsystem for Linux).
Got as far as "gclient sync" before errors.


Here is the log:

Syncing projects: 100% (206/206), done.
Running hooks:   5% ( 4/75) nacltools
________ running '/usr/bin/python src/build/download_nacl_toolchains.py --mode nacl_core_sdk sync --extract' in '/home/ybn/chromium'
INFO: Extracting package (nacl_arm_glibc) to directory: /home/ybn/chromium/src/native_client/toolchain/linux_x86/nacl_arm_glibc
INFO: Extracting binutils_arm_x86_64_linux.tgz (1/6)
|------------------------------------------------|
..................................................
INFO: Extracting gcc_arm_x86_64_linux.tgz (2/6)
|------------------------------------------------|
..................................................
INFO: Extracting gcc_libs_arm.tgz (3/6)
|------------------------------------------------|
.................................................
INFO: Extracting gdb_x86_64_linux.tgz (4/6)
|------------------------------------------------|
.................................................
INFO: Extracting glibc_arm.tgz (5/6)
|------------------------------------------------|
.................................................
Traceback (most recent call last):
  File "src/build/download_nacl_toolchains.py", line 59, in <module>
    sys.exit(Main(sys.argv[1:]))
  File "src/build/download_nacl_toolchains.py", line 55, in Main
    return package_version.main(args)
  File "/home/ybn/chromium/src/native_client/build/package_version/package_version.py", line 1289, in main
    return COMMANDS[arguments.command].do_cmd_func(arguments)
  File "/home/ybn/chromium/src/native_client/build/package_version/package_version.py", line 856, in _DoSyncCmd
    quiet=arguments.quiet)
  File "/home/ybn/chromium/src/native_client/build/package_version/package_version.py", line 562, in ExtractPackageTargets
    pynacl.file_tools.MoveAndMergeDirTree(temp_src_dir, destination_dir)
  File "/home/ybn/chromium/src/native_client/pynacl/file_tools.py", line 204, in MoveAndMergeDirTree
    MoveAndMergeDirTree(source_item, destination_item)
  File "/home/ybn/chromium/src/native_client/pynacl/file_tools.py", line 214, in MoveAndMergeDirTree
    Retry(os.rename, source_item, destination_item)
  File "/home/ybn/chromium/src/native_client/pynacl/file_tools.py", line 250, in Retry
    op(*args, **kwargs)
OSError: [Errno 13] Permission denied
Error: Command '/usr/bin/python src/build/download_nacl_toolchains.py --mode nacl_core_sdk sync --extract' returned non-zero exit status 1 in /home/ybn/chromium
Hook '/usr/bin/python src/build/download_nacl_toolchains.py --mode nacl_core_sdk sync --extract' took 68.76 secs

Does this every time. Tried chmod 777 and still didn't work so thinking it's a Windows issue from what i have seen on other threads concerning this issue. Any ideas? Thanks.

Marc-Antoine Ruel

unread,
Sep 9, 2018, 9:03:45 PM9/9/18
to kirby...@gmail.com, chromium-dev
Le dim. 9 sept. 2018, à 18 h 09, YBN <kirby...@gmail.com> a écrit :
using this guide to checking out and building chromium for android:

running on a amd64 windows pc. I'm using Ubuntu 18.04 (Windows Subsystem for Linux).
Got as far as "gclient sync" before errors.

I don't think we ever tested this configuration: having gclient think that it's on linux while running on Windows. Please find and resolve the problem and contribute a change if relevant.
I don't know what happened exactly but here's potentially probable issue it can be:
- The directory is open, this could be a cmd.exe prompt, a Windows Explorer window, etc. Make sure it's closed, like ... rebooting.
- Issue with ACL, like integrity level. Try deleting the directory manually in Windows.

M-A 

sk panchal

unread,
Jan 7, 2019, 12:09:45 PM1/7/19
to Chromium-dev
I have the same issue. Did you get any solution?

Marc-Antoine Ruel

unread,
Jan 11, 2019, 4:46:02 PM1/11/19
to skp...@gmail.com, YBN, chromium-dev
The failure in OP is a file rename. My first diagnostics would be to double check if you have a custom antivirus installer, and if so, disable it temporarily.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/43bca1a2-f461-4f77-a397-6f63a3f1b597%40chromium.org.
Reply all
Reply to author
Forward
0 new messages