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

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

Open
SangYukekeaiai opened this issue Apr 23, 2024 · 7 comments

Comments

@SangYukekeaiai
Copy link

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 #211 (comment)

@karihepola
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

截图 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
Copy link
Contributor

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?

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