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

can't open read-only file

Altera_Forum
榮譽貢獻者 II
2,308 檢視

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 積分
3 回應
Altera_Forum
榮譽貢獻者 II
1,083 檢視

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

Altera_Forum
榮譽貢獻者 II
1,083 檢視

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
Altera_Forum
榮譽貢獻者 II
1,083 檢視

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 :(

回覆