Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17246 Discussions

can't open read-only file

Altera_Forum
Honored Contributor II
2,310 Views

Just upgraded to 10.1 on Archlinux. Getting an error message from File-> Create/Update-> but not for all options, eg create VHDL from bdf works, create AHDL gives 'can't open read-only file', as does create symbol :( 

 

Using 'touch' from the command line and setting other permissions to rw (646) solves the problem. I don't like setting global write permission though. Also the behaviour is inconsistant as I can create a new project etc with no problem. 

 

Setting global write on the directory didn't help either. 

 

Didn't find anything on the Altera site about this.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
1,085 Views

i think there are similar threads on the forum. if you can file service requests you should report the bug

0 Kudos
Altera_Forum
Honored Contributor II
1,085 Views

I found the thread after posting, but there is no solution other than the workaround that I'm using. I've registered the problem with Altera MySupport. 

 

Using strace confirms that Quartus stats the file and stat returns ENOENT which is correct as the file doesn't yet exist. I suspect that there is a coding issue as instead of then creating the file, the process fails with an incorrect error message. I also suspect that they've got their permissions mask back to front as 'touch'ing the file only works if global write permissions are set. The minimum permissions required on the file are chmod 606 filename anything less doesn't work. 

 

[pid 22173] stat64("/home/ngunton/Vhdl/Modified_dff/my_dff.inc", {st_mode=S_IFREG|0606, st_size=0, ...}) = 0 

 

[pid 22173] open("/home/ngunton/Vhdl/Modified_dff/my_dff.inc", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 16
0 Kudos
Altera_Forum
Honored Contributor II
1,085 Views

No intelligent answer from Altera Support yet, just misunderstanding of the problem. I wonder whether the response was from someone with limited understanding of Linux/Unix :(

0 Kudos
Reply