crete-dev icon indicating copy to clipboard operation
crete-dev copied to clipboard

waiting for port connection, then shows illegal instruction

Open TR174 opened this issue 5 years ago • 8 comments

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.

TR174 avatar Dec 19 '19 19:12 TR174

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

moralismercatus avatar Dec 23 '19 22:12 moralismercatus

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

TR174 avatar Dec 24 '19 02:12 TR174

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

moralismercatus avatar Dec 26 '19 22:12 moralismercatus

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

TR174 avatar Dec 26 '19 22:12 TR174

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.

moralismercatus avatar Dec 26 '19 22:12 moralismercatus

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

TR174 avatar Dec 26 '19 23:12 TR174

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.

moralismercatus avatar Dec 28 '19 20:12 moralismercatus

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

TR174 avatar Apr 01 '20 06:04 TR174