[Errno 13] Permission denied

1,133 views
Skip to first unread message

Dtec

unread,
Sep 2, 2015, 11:53:35 AM9/2/15
to emscripten-discuss
Hi everyone,

I am trying to build Unreal Engine from source. However I'm encountering this error whenever i am executing following command.
I only included the first part of the output since it keeps repeating itself over all the 193actions.

Even a small point in the right direction is highly appreciated! ;-)

Thanks in advance!

______________________________________________


./Engine/Build/BatchFiles/Mac/Build.sh UE4Game HTML5 Development


Setting up Mono

Building UBT...

0 Error(s)

Building UE4Game...

2015-09-02 17:23:27.368 defaults[8967:41690] 

The domain/default pair of (/Users/Dtec/Library/Preferences/com.apple.dt.Xcode, IDEBuildOperationMaxNumberOfConcurrentCompileTasks) does not exist

Running command : Engine/Binaries/DotNET/UnrealBuildTool.exe UE4Game HTML5 Development 

Setting Emscripten SDK 

Performing 193 actions (2 in parallel)

[2/193] python Module.CharacterAI.cpp

[1/193] python Module.Paper2D.cpp

WARNING  root: Could not verify LLVM version: [Errno 13] Permission denied

WARNING  root: Could not verify LLVM version: [Errno 13] Permission denied

WARNING  root: cannot check node version: [Errno 13] Permission denied

WARNING  root: cannot check node version: [Errno 13] Permission denied

WARNING  root: could not check fastcomp: [Errno 13] Permission denied

WARNING  root: could not check fastcomp: [Errno 13] Permission denied

INFO     root: (Emscripten: Running sanity checks)

INFO     root: (Emscripten: Running sanity checks)

Checking JS engine ['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node'] failed. Check /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten. Details: [Errno 13] Permission denied

Checking JS engine ['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node'] failed. Check /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten. Details: [Errno 13] Permission denied

CRITICAL root: The JavaScript shell used for compiling (['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node']) does not seem to work, check the paths in /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten

CRITICAL root: The JavaScript shell used for compiling (['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node']) does not seem to work, check the paths in /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten

[3/193] python LightPropagationVolumeRuntime.generated.cpp

[4/193] python Module.HTML5Networking.cpp

WARNING  root: Could not verify LLVM version: [Errno 13] Permission denied

WARNING  root: Could not verify LLVM version: [Errno 13] Permission denied

WARNING  root: cannot check node version: [Errno 13] Permission denied

WARNING  root: cannot check node version: [Errno 13] Permission denied

WARNING  root: could not check fastcomp: [Errno 13] Permission denied

WARNING  root: could not check fastcomp: [Errno 13] Permission denied

INFO     root: (Emscripten: Running sanity checks)

INFO     root: (Emscripten: Running sanity checks)

Checking JS engine ['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node'] failed. Check /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten. Details: [Errno 13] Permission denied

Checking JS engine ['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node'] failed. Check /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten. Details: [Errno 13] Permission denied

CRITICAL root: The JavaScript shell used for compiling (['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node']) does not seem to work, check the paths in /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten

CRITICAL root: The JavaScript shell used for compiling (['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node']) does not seem to work, check the paths in /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten

[5/193] python HTML5Networking.generated.cpp

[6/193] python Module.LightPropagationVolumeRuntime.cpp

WARNING  root: Could not verify LLVM version: [Errno 13] Permission denied

WARNING  root: Could not verify LLVM version: [Errno 13] Permission denied

WARNING  root: cannot check node version: [Errno 13] Permission denied

WARNING  root: cannot check node version: [Errno 13] Permission denied

WARNING  root: could not check fastcomp: [Errno 13] Permission denied

INFO     root: (Emscripten: Running sanity checks)

WARNING  root: could not check fastcomp: [Errno 13] Permission denied

INFO     root: (Emscripten: Running sanity checks)

Checking JS engine ['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node'] failed. Check /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten. Details: [Errno 13] Permission denied

Checking JS engine ['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node'] failed. Check /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten. Details: [Errno 13] Permission denied

CRITICAL root: The JavaScript shell used for compiling (['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node']) does not seem to work, check the paths in /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten

CRITICAL root: The JavaScript shell used for compiling (['/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node']) does not seem to work, check the paths in /Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/.emscripten


And so it goes on and on...

______________________________________________________

Dtec

unread,
Sep 2, 2015, 12:42:11 PM9/2/15
to emscripten-discuss
And here are the paths inside my .emscription file.
Is there missing something?

import os
SPIDERMONKEY_ENGINE = ''
LLVM_ROOT='/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/clang/e1.30.0_64bit'
NODE_JS= '/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/node/0.12.2_64bit/bin/node'
PYTHON= '/usr/bin/python'
EMSCRIPTEN_NATIVE_OPTIMIZER='/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/clang/e1.30.0_64bit/optimizer'
EMSCRIPTEN_ROOT= '/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0'
TEMP_DIR= '/Applications/UnrealEngine/Engine/Intermediate/Build/HTML5/EmscriptenTemp'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]
V8_ENGINE = ''
GENERATEDBYUE4='1.30.0'

Alon Zakai

unread,
Sep 2, 2015, 1:51:47 PM9/2/15
to emscripten-discuss
It doesn't seem to be able to find LLVM and clang. Does

/Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/clang/e1.30.0_64bit/clang++

exist and work when you call it?

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dtec

unread,
Sep 2, 2015, 2:51:30 PM9/2/15
to emscripten-discuss
Thanks for your reply Alon!

I can confirm clang++ exists within that directory.
However when i call it in the terminal this is what i get:

-bash: /Applications/UnrealEngine/Engine/Source/ThirdParty/HTML5/emsdk/Mac/clang/e1.30.0_64bit/clang++: Permission denied


So it seems you're right. Any idea how to get around this?

Alon Zakai

unread,
Sep 2, 2015, 5:36:01 PM9/2/15
to emscripten-discuss
Maybe it's a literal permissions issue? Might have been installed without the x bit. Or by a different user?

--

Dtec

unread,
Sep 2, 2015, 5:41:48 PM9/2/15
to emscripten-discuss
Allright, I was able to fix it. If anyone else would encounter this problem, use the chmod a+x command (on OS X) followed by the file you want to add 'execution' rights to.
Thanks for your help Alon!

Liya

unread,
Sep 25, 2015, 7:13:52 PM9/25/15
to emscripten-discuss
Thank you, Dtec and Alon. I got the same error and the suggested method of "chmod a+x" has help removed the error messages for clang and node.

However, I still got this warning and an remaining OSError: [Errno 13] Permission denied

WARNING  root: could not check fastcomp: [Errno 13] Permission denied


I've changed the permission for all the paths listed the error message and from the ~/.emscripten file. But still I cannot remove the error.

Did you change the permission for other files besides the clang and node directories?

Thanks!

The full error message is as follows:


./Engine/Build/BatchFiles/Mac/Build.sh UE4Game HTML5 Development
Setting up Mono
Building UBT...
     0 Error(s)
Building UE4Game...
2015-09-26 00:55:37.985 defaults[11539:51719]
The domain/default pair of (com.apple.dt.Xcode, IDEBuildOperationMaxNumberOfConcurrentCompileTasks) does not exist

Running command : Engine/Binaries/DotNET/UnrealBuildTool.exe UE4Game HTML5 Development
Creating makefile for UE4Game (project files are newer)
Setting Emscripten SDK
Performing 6 actions (4 in parallel)
[1/6] python UE4-Paper2D.bc
[4/6] python UE4-ArchVisCharacter.bc
[3/6] python UE4-CableComponent.bc
[2/6] python UE4-LightPropagationVolumeRuntime.bc

WARNING  root: could not check fastcomp: [Errno 13] Permission denied
INFO     root: (Emscripten: Running sanity checks)
WARNING  root: could not check fastcomp: [Errno 13] Permission denied
INFO     root: (Emscripten: Running sanity checks)
WARNING  root: could not check fastcomp: [Errno 13] Permission denied
INFO     root: (Emscripten: Running sanity checks)
WARNING  root: could not check fastcomp: [Errno 13] Permission denied
INFO     root: (Emscripten: Running sanity checks)
Traceback (most recent call last):
  File "/Users/liya/Developer/unreal/UnrealEngine-release/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0/emcc", line 1204, in <module>
    shared.Building.link(linker_inputs, specified_target)
  File "/Users/liya/Developer/unreal/UnrealEngine-release/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0/tools/shared.py", line 1424, in link
    output = Popen(link_cmd, stdout=PIPE).communicate()[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
Traceback (most recent call last):
  File "/Users/liya/Developer/unreal/UnrealEngine-release/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0/emcc", line 1204, in <module>
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    shared.Building.link(linker_inputs, specified_target)
  File "/Users/liya/Developer/unreal/UnrealEngine-release/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0/tools/shared.py", line 1424, in link
    raise child_exception
OSError: [Errno 13] Permission denied
    output = Popen(link_cmd, stdout=PIPE).communicate()[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied
Traceback (most recent call last):
  File "/Users/liya/Developer/unreal/UnrealEngine-release/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0/emcc", line 1204, in <module>
    shared.Building.link(linker_inputs, specified_target)
  File "/Users/liya/Developer/unreal/UnrealEngine-release/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0/tools/shared.py", line 1424, in link
    output = Popen(link_cmd, stdout=PIPE).communicate()[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied
Traceback (most recent call last):
  File "/Users/liya/Developer/unreal/UnrealEngine-release/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0/emcc", line 1204, in <module>
    shared.Building.link(linker_inputs, specified_target)
  File "/Users/liya/Developer/unreal/UnrealEngine-release/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0/tools/shared.py", line 1424, in link
    output = Popen(link_cmd, stdout=PIPE).communicate()[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied
[5/6] python UE4-HTML5Networking.bc

WARNING  root: could not check fastcomp: [Errno 13] Permission denied
INFO     root: (Emscripten: Running sanity checks)
Traceback (most recent call last):
  File "/Users/liya/Developer/unreal/UnrealEngine-release/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0/emcc", line 1204, in <module>
    shared.Building.link(linker_inputs, specified_target)
  File "/Users/liya/Developer/unreal/UnrealEngine-release/Engine/Source/ThirdParty/HTML5/emsdk/emscripten/1.30.0/tools/shared.py", line 1424, in link
    output = Popen(link_cmd, stdout=PIPE).communicate()[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: /Users/liya/Developer/unreal/UnrealEngine-release/Engine/Plugins/2D/Paper2D/Binaries/HTML5/UE4-Paper2D.bc
Total build time: 11.94 seconds
Reply all
Reply to author
Forward
0 new messages