cpc / openasip

Open Application-Specific Instruction Set processor tools (OpenASIP)
http://openasip.org
Other
143 stars 43 forks source link

Fail in Test the processor generator and the program image generator in oa-selftest #256

Open SangYukekeaiai opened 5 months ago

SangYukekeaiai commented 5 months ago

Hello There! Could you please tell me how to deal with this issue below? I saw the same issue before in #211

Traceback (most recent call last):
  File "/home/yy/local/bin/oa-selftest", line 597, in test_proge_and_pig
    self.assertEqual(stderr, '')
AssertionError: "Unable to copy file /tmp/tmp4ug8ilgx/pro[141 chars]l'\n" != ''
- Unable to copy file /tmp/tmp4ug8ilgx/proc_vhdl/vhdl/lsu_le.vhdl:Unable to copy '/home/yy/local/share/openasip/hdb/vhdl/fu/lsu_le.vhdl' to '/tmp/tmp4ug8ilgx/proc_vhdl/vhdl/lsu_le.vhdl'

I checked my install directory, the lsu_le.vhdl files are there in both openasip folder and $HOME/local/share/openasip/hdb/vhdl/fu/ folder. The other tests are all correct.

Originally posted by @SangYukekeaiai in https://github.com/cpc/openasip/issues/211#issuecomment-2072890208

karihepola commented 5 months ago

Hi,

This error indeed seems to trigger in some installations. It would be good to find out what triggers it. Have you tried running a clean installation again?

SangYukekeaiai commented 5 months ago

Hi,

This error indeed seems to trigger in some installations. It would be good to find out what triggers it. Have you tried running a clean installation again?

I uninstalled and installed openASIP for several times, but still didn't work well, the same issue appeared everytime.

pjaaskel commented 5 months ago

Can you check the file permissions on /home/yy/local/share/openasip/hdb/vhdl/fu/lsu_le.vhdl' and '/tmp/tmp4ug8ilgx/proc_vhdl/vhdl/lsu_le.vhdl', and the /tmp directory? This is likely a system issue, as we cannot repro it.

SangYukekeaiai commented 5 months ago

Can you check the file permissions on /home/yy/local/share/openasip/hdb/vhdl/fu/lsu_le.vhdl' and '/tmp/tmp4ug8ilgx/proc_vhdl/vhdl/lsu_le.vhdl', and the /tmp directory? This is likely a system issue, as we cannot repro it.

ls -al /home/yy/local/share/openasip/hdb/vhdl/fu/lsu_le.vhdl ─╯ -rw-r--r-- 1 yy yy 14325 apr 29 17:19 /home/yy/local/share/openasip/hdb/vhdl/fu/lsu_le.vhdl The other file under /tmp/ does not exist. What do you suggest me to do now? do a recursive chmod +x /tmp/? Thx for your quick reply~

pjaaskel commented 5 months ago

This is a strange case. Can you create files and directories under /tmp as the user you execute the test with? mkdir /tmp/bar/ && touch /tmp/bar/foo works?

SangYukekeaiai commented 5 months ago

截图 2024-04-30 14-08-11 I tired this. It worked. But I think that is because I added chmod -R +rwx \tmp. But the error is still there. (I tried to uninstall and re-do the installation again but the result was the same)

pjaaskel commented 5 months ago

OK. It's very difficult to guess what's wrong. Can you provide ssh access to the machine where this happens so we can take a look?