Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta_parser: Permission denied #2

Closed
syguan96 opened this issue Apr 4, 2022 · 14 comments
Closed

meta_parser: Permission denied #2

syguan96 opened this issue Apr 4, 2022 · 14 comments

Comments

@syguan96
Copy link

syguan96 commented Apr 4, 2022

-- The C compiler identification is Clang 10.0.0
-- The CXX compiler identification is Clang 10.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Using X11 for window creation
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Build spdlog: 1.9.2
-- Build type: Debug
-- Configuring done
-- Generating done
-- Build files have been written to: /home/syguan/Pilot/build
************************************************************* 
**** [Precompile] BEGIN 
************************************************************* 
make[2]: execvp: /data/Pilot/engine/bin/Linux/meta_parser: Permission denied
make[2]: *** [CMakeFiles/PilotPreCompile.dir/build.make:73: CMakeFiles/PilotPreCompile] Error 127
make[1]: *** [CMakeFiles/Makefile2:261: CMakeFiles/PilotPreCompile.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

System: Ubuntu 20.04
Cmake: 3.23.0

@liangsen-zju
Copy link

I have this question too.

@liangsen-zju
Copy link

System: Mac (Inter i7) Xcode 13.2.1


**** [Precompile] BEGIN


/Users/lsen/CODE/Pilot/build/Pilot.build/Debug/PilotPreCompile.build/Script-C39BA26D421D57100E3E1526.sh: line 8: /Users/lsen/CODE/Pilot/engine/bin/macOS/meta_parser: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code

@Duality142857
Copy link

I also have this problem on Ubuntu 18.04, and I used sudo ./build_linux.sh
-- Using X11 for window creation
-- Build spdlog: 1.9.2
-- Build type: Release
-- Configuring done
-- Generating done
-- Build files have been written to: /home/number/approot/engines/Pilot/build


**** [Precompile] BEGIN


make[2]: execvp: /home/number/approot/engines/Pilot/engine/bin/Linux/meta_parser: Permission denied
CMakeFiles/PilotPreCompile.dir/build.make:70: recipe for target 'CMakeFiles/PilotPreCompile' failed
make[2]: *** [CMakeFiles/PilotPreCompile] Error 127
CMakeFiles/Makefile2:260: recipe for target 'CMakeFiles/PilotPreCompile.dir/all' failed
make[1]: *** [CMakeFiles/PilotPreCompile.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2

@Yestercafe
Copy link

Yestercafe commented Apr 4, 2022

Use chmod command to add executable permission.

chmod +x engine/bin/Linux/meta_parser

@BoomingTech-YuqiaoZhang
Copy link
Contributor

we are fixing now!

@BoomingTech-YuqiaoZhang
Copy link
Contributor

You can use the following commands to fix the build error on Linux temporarily. A merge request will be provided later
chmod +x build_linux.sh
chmod +x "./engine/bin/Linux/meta_parse"
chrpath -r '$ORIGIN' "./engine/bin/Linux/meta_parser"
chmod +x "engine/3rdparty/VulkanSDK/bin/Linux/glslangValidator"

@BoomingTech-YuqiaoZhang
Copy link
Contributor

If you are hasty, you may use this repository instead

@Duality142857
Copy link

You can use the following commands to fix the build error on Linux temporarily. A merge request will be provided later chmod +x build_linux.sh chmod +x "./engine/bin/Linux/meta_parse" chrpath -r '$ORIGIN' "./engine/bin/Linux/meta_parser" chmod +x "engine/3rdparty/VulkanSDK/bin/Linux/glslangValidator"

Now it gives this error:

meta_parser: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory
CMakeFiles/PilotPreCompile.dir/build.make:70: recipe for target 'CMakeFiles/PilotPreCompile' failed
make[2]: *** [CMakeFiles/PilotPreCompile] Error 127
CMakeFiles/Makefile2:260: recipe for target 'CMakeFiles/PilotPreCompile.dir/all' failed
make[1]: *** [CMakeFiles/PilotPreCompile.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2

@bolin12
Copy link

bolin12 commented Apr 4, 2022

You can use the following commands to fix the build error on Linux temporarily. A merge request will be provided later chmod +x build_linux.sh chmod +x "./engine/bin/Linux/meta_parse" chrpath -r '$ORIGIN' "./engine/bin/Linux/meta_parser" chmod +x "engine/3rdparty/VulkanSDK/bin/Linux/glslangValidator"

not work for me

@BoomingTech-YuqiaoZhang
Copy link
Contributor

BoomingTech-YuqiaoZhang commented Apr 4, 2022

You can use the following commands to fix the build error on MacOS temporarily
chmod +x "./engine/bin/MacOS/meta_parse"
install_name_tool -add-rpath "@executable_path" "./engine/bin/MacOS/meta_parse"

@BoomingTech-YuqiaoZhang
Copy link
Contributor

You can use the following commands to fix the build error on Linux temporarily. A merge request will be provided later chmod +x build_linux.sh chmod +x "./engine/bin/Linux/meta_parse" chrpath -r '$ORIGIN' "./engine/bin/Linux/meta_parser" chmod +x "engine/3rdparty/VulkanSDK/bin/Linux/glslangValidator"

not work for me

If you are hasty, you may use this repository instead. The github workflows are added.

@bolin12
Copy link

bolin12 commented Apr 4, 2022

You can use the following commands to fix the build error on Linux temporarily. A merge request will be provided later chmod +x build_linux.sh chmod +x "./engine/bin/Linux/meta_parse" chrpath -r '$ORIGIN' "./engine/bin/Linux/meta_parser" chmod +x "engine/3rdparty/VulkanSDK/bin/Linux/glslangValidator"

not work for me

If you are hasty, you may use this repository instead. The github workflows are added.

thx, this repo works fine

@syguan96
Copy link
Author

syguan96 commented Apr 4, 2022

I still met this problem: `libclang.so.12: cannot open shared object file: No such file or directory'.

@syguan96
Copy link
Author

syguan96 commented Apr 4, 2022

This repo works. Thanks for your hard work!

@syguan96 syguan96 closed this as completed Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants