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

Line 954: Permission denied #2904

Open
philiprbrenan opened this issue Mar 5, 2025 · 4 comments
Open

Line 954: Permission denied #2904

philiprbrenan opened this issue Mar 5, 2025 · 4 comments
Assignees

Comments

@philiprbrenan
Copy link

Subject

[Build] for compilation-related issues.

Describe the bug

I am running sudo ./setup.sh on Ubuntu 24 and getting:

line 954: /home/azureuser/OpenROAD-flow-scripts/tools/OpenROAD/etc/openroad_deps_prefixes.txt: Permission denied

The context is:

Saving to: ‘or-tools_amd64_ubuntu-22.04_cpp_v9.11.4210.tar.gz’

or-tools_amd64_ubuntu-22.04_cpp_v9.11.4210. 100%[===========================================================================================>]  46.78M   193MB/s    in 0.2s    

2025-03-05 18:21:26 (193 MB/s) - ‘or-tools_amd64_ubuntu-22.04_cpp_v9.11.4210.tar.gz’ saved [49050271/49050271]

./tools/OpenROAD/etc/DependencyInstaller.sh: line 954: /home/azureuser/OpenROAD-flow-scripts/tools/OpenROAD/etc/openroad_deps_prefixes.txt: Permission denied
azureuser@vivado:~/OpenROAD-flow-scripts$ ll /home/azureuser/OpenROAD-flow-scripts/tools/OpenROAD/etc/openroad_deps_prefixes.txt
-rw-r--r-- 1 root root 1 Mar  5 17:03 /home/azureuser/OpenROAD-flow-scripts/tools/OpenROAD/etc/openroad_deps_prefixes.txt

Do you have a github action which demonstrates the correct operation of the entire installation sequence?

Expected Behavior

The installation should complete without such errors

Environment

azureuser@vivado:~/OpenROAD-flow-scripts$ ll etc*
total 36
drwxrwxr-x  2 azureuser azureuser  4096 Mar  5 17:01 ./
drwxrwxr-x 13 azureuser azureuser  4096 Mar  5 17:04 ../
-rwxrwxr-x  1 azureuser azureuser 12620 Mar  5 17:01 DependencyInstaller.sh*
-rwxrwxr-x  1 azureuser azureuser  6440 Mar  5 17:01 DockerHelper.sh*
-rwxrwxr-x  1 azureuser azureuser   786 Mar  5 17:01 DockerTag.sh*
azureuser@vivado:~/OpenROAD-flow-scripts$ bash ./etc/Env.sh
bash: ./etc/Env.sh: No such file or directory

To Reproduce

sudo ./setup.sh

Relevant log output

Saving to: ‘or-tools_amd64_ubuntu-22.04_cpp_v9.11.4210.tar.gz’

or-tools_amd64_ubuntu-22.04_cpp_v9.11.4210. 100%[===========================================================================================>]  46.78M   193MB/s    in 0.2s    

2025-03-05 18:21:26 (193 MB/s) - ‘or-tools_amd64_ubuntu-22.04_cpp_v9.11.4210.tar.gz’ saved [49050271/49050271]

./tools/OpenROAD/etc/DependencyInstaller.sh: line 954: /home/azureuser/OpenROAD-flow-scripts/tools/OpenROAD/etc/openroad_deps_prefixes.txt: Permission denied
azureuser@vivado:~/OpenROAD-flow-scripts$ ll /home/azureuser/OpenROAD-flow-scripts/tools/OpenROAD/etc/openroad_deps_prefixes.txt
-rw-r--r-- 1 root root 1 Mar  5 17:03 /home/azureuser/OpenROAD-flow-scripts/tools/OpenROAD/etc/openroad_deps_prefixes.txt

Screenshots

No response

Additional Context

No response

@maliberty
Copy link
Member

Why don't you have write permission to a file in your local area?

@vvbandeira
Copy link
Member

vvbandeira commented Mar 5, 2025

@maliberty The issue is that the user's openroad_deps_prefixes.txt file is owned by root, so they cannot modify the file.

@philiprbrenan did you run anything other than sudo ./setup.sh on your workspace? When using the setup.sh script the files created should have ownership of the user that called the script. Are you using the latest version of ORFS?

@philiprbrenan
Copy link
Author

I deleted the folder containing ORFS, did git clone ... again to recreate the folder, ran set up, received the same error, proceeded anyway and was able to run the gcd sample successfully and locally, which was impressive. This is on Ubuntu 24.

@vvbandeira
Copy link
Member

Great to hear. I will keep the issue open for the time being. I will try to reproduce the error on a Ubuntu 24 machine; on my Ubuntu 22, I was not able.

@vvbandeira vvbandeira self-assigned this Mar 6, 2025
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

3 participants