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

waiting for port connection, then shows illegal instruction #49

Open
TR174 opened this issue Dec 19, 2019 · 8 comments
Open

waiting for port connection, then shows illegal instruction #49

TR174 opened this issue Dec 19, 2019 · 8 comments

Comments

@TR174
Copy link

TR174 commented Dec 19, 2019

Hi, I tried to build crete locally. I did all the steps using the manual. When I ran crete-run, the following error shows up-
[CRETE] Waiting for port..
Illegal Instruction (Core dumped)
What should I do now? Please help out.

@moralismercatus
Copy link
Collaborator

If memory serves, one'll get an Illegal Instruction from CRETE custom instructions executed from the Guest OS (done automatically via crete-run) if using QEMU "native" or "kvm" mode. You must rather use QEMU "interpreted" mode.

Native: crete-native-qemu-system-x86_64
Interpreted: crete-qemu-2.3-system-x86_64

@TR174
Copy link
Author

TR174 commented Dec 24, 2019

I used the following command :
qemu-system-x86_64 -hda crete.img -m 2048 -k en-us
It is still showing crete-run as illegal instruction

@moralismercatus
Copy link
Collaborator

Ensure it's crete-qemu-2.3-system-x86_64. Note the special crete- prefix derived from a CRETE-QEMU build.

@TR174
Copy link
Author

TR174 commented Dec 26, 2019

If I put Crete as prefix in the host OS, it shows command not found

@moralismercatus
Copy link
Collaborator

Assuming you've successfully built it, you'll need to get it into your $PATH, or provide a path to it. It should be in your build/bin directory.

@TR174
Copy link
Author

TR174 commented Dec 26, 2019

My build/bin directory is empty although it shows total 8. Is it not built correctly?

@moralismercatus
Copy link
Collaborator

I don't know what you mean by "shows a total of 8" while being empty. If the binaries are not showing up in the crete-build/bin directory described as a result of this step, something isn't right with the build.

@TR174
Copy link
Author

TR174 commented Apr 1, 2020

Hi, I rebuilt crete and I hope it built correctly. When I tried to invoke guest OS by using crete-qemu command, this error shows up:

VNC server running on 127.0.0.1:5900' crete-qemu-2.3-system-x86_64: /home/tashfia/crete/crete-dev/front-end/qemu-2.3/runtime-dump/runtime-dump.cpp:1791: void crete_pre_cpu_tb_exec(void*, TranslationBlock*): Assertion !crete_pre_post_flag' failed.
Aborted (core dumped)

Screenshot from 2020-03-31 22:15:25

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

2 participants