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

While running make build getting the following error #10

Open
gauravsc opened this issue Jun 17, 2024 · 1 comment
Open

While running make build getting the following error #10

gauravsc opened this issue Jun 17, 2024 · 1 comment

Comments

@gauravsc
Copy link

gauravsc commented Jun 17, 2024

I am running the code on a macbook with MacOs 14.2.1 and Apple M3 Pro

# CI will checkout submodules on its own (and fails on these commands)
if [[ -z "$GITHUB_ENV" ]]; then
git submodule init;
git submodule update;
fi
cd unicorn/build && make -j8
[ 1%] Building C object CMakeFiles/mips64-softmmu.dir/qemu/cpu-exec.c.o
[ 2%] Building C object CMakeFiles/mips-softmmu.dir/qemu/cpu-exec.c.o
[ 2%] Building C object CMakeFiles/mips64el-softmmu.dir/qemu/cpu-exec.c.o
[ 2%] Building C object CMakeFiles/mips64el-softmmu.dir/qemu/cputlb.c.o
[ 3%] Building C object CMakeFiles/mips64-softmmu.dir/qemu/cpus.c.o
[ 3%] Building C object CMakeFiles/mipsel-softmmu.dir/qemu/cpus.c.o
[ 4%] Building C object CMakeFiles/mips64el-softmmu.dir/qemu/cpus.c.o
[ 5%] Building C object CMakeFiles/mipsel-softmmu.dir/qemu/cpu-exec.c.o
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/cputlb.c:22:
/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h:2:10: fatal error: 'config-target.h' file not found
#include "config-target.h"
^~~~~~~~~~~~~~~~~
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/cpu-exec.c:22:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/tcg/tcg.h:28:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu-common.h:98:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/target-mips/cpu.h:13:
/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h:2:10: fatal error: 'config-target.h' file not found
#include "config-target.h"
^~~~~~~~~~~~~~~~~
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/cpus.c:29:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/sysemu/sysemu.h:5:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu/timer.h:5:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu-common.h:98:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/target-mips/cpu.h:13:
/Users/gauravsingh/Code/opml/unicorn/qIn file included from /Users/gauravsingh/Code/opml/unicorn/qemu/cpu-exec.c:22:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/tcg/tcg.h:28:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu-common.h:98:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/target-mips/cpu.h:13:
/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h:2:10: fatal error: 'config-target.h' file not found
#include "config-target.h"
^~~~~~~~~~~~~~~~~
emu/include/config.h:2:10: fatal error: 'config-target.h' file not found
#include "config-target.h"
^~~~~~~~~~~~~~~~~
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/cpu-exec.c:22:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/tcg/tcg.h:28:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu-common.h:98:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/target-mips/cpu.h:13:
/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h:2:10: fatal error: 'config-target.h' file not found
#include "config-target.h"
^~~~~~~~~~~~~~~~~
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/cpu-exec.c:22:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/tcg/tcg.h:28:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu-common.h:98:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/target-mips/cpu.h:13:
/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h:2:10: fatal error: 'config-target.h' file not found
#include "config-target.h"
^~~~~~~~~~~~~~~~~
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/cpus.c:29:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/sysemu/sysemu.h:5:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu/timer.h:5:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu-common.h:98:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/target-mips/cpu.h:13:
/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h:2:10: fatal error: 'config-target.h' file not found
#include "config-target.h"
^~~~~~~~~~~~~~~~~
1 error generated.
1 error generated.
11 error generated.
error generated.
make[3]: *** [CMakeFiles/mips64-softmmu.dir/qemu/cpu-exec.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/mips64el-softmmu.dir/qemu/cpus.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/cpus.c:29:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/sysemu/sysemu.h:5:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu/timer.h:5:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu-common.h:98:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/target-mips/cpu.h:13:
/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h:2:10: fatal error: 'config-target.h' file not found
#include "config-target.h"
^~~~~~~~~~~~~~~~~
make[3]: *** [CMakeFiles/mips64el-softmmu.dir/qemu/cpu-exec.c.o] Error 1
make[3]: *** [CMakeFiles/mipsel-softmmu.dir/qemu/cpu-exec.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
1 error generated.
1 error generated.
make[3]: *** [CMakeFiles/mips-softmmu.dir/qemu/cpu-exec.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
1 error generated.
1 error generated.
make[3]: *** [CMakeFiles/mipsel-softmmu.dir/qemu/cpus.c.o] Error 1
make[3]: *** [CMakeFiles/mips64-softmmu.dir/qemu/cpus.c.o] Error 1
make[2]: *** [CMakeFiles/mips64-softmmu.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: *** [CMakeFiles/mips64el-softmmu.dir/qemu/cputlb.c.o] Error 1
make[2]: *** [CMakeFiles/mips64el-softmmu.dir/all] Error 2
[ 7%] Building C object CMakeFiles/mips-softmmu.dir/qemu/cputlb.c.o
[ 7%] Building C object CMakeFiles/mips-softmmu.dir/qemu/exec.c.o
[ 8%] Building C object CMakeFiles/mipsel-softmmu.dir/qemu/cputlb.c.o
[ 9%] Building C object CMakeFiles/mips-softmmu.dir/qemu/cpus.c.o
In file included from In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/exec.c/Users/gauravsingh/Code/opml/unicorn/qemu/cputlb.c::2122:
:
/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h::22::1010:: fatal error: fatal error: 'config-target.h' file not found'config-target.h' file not found

In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/cputlb.c:22:
#include "config-target.h"
/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h:2:#include "config-target.h" ^~~~~~~~~~~~~~~~~

10 ^~~~~~~~~~~~~~~~~:
fatal error: 'config-target.h' file not found
#include "config-target.h"
^~~~~~~~~~~~~~~~~
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/cpus.c:29:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/sysemu/sysemu.h:5:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu/timer.h:5:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/include/qemu-common.h:98:
In file included from /Users/gauravsingh/Code/opml/unicorn/qemu/target-mips/cpu.h:13:
/Users/gauravsingh/Code/opml/unicorn/qemu/include/config.h:2:10: fatal error: 'config-target.h' file not found
#include "config-target.h"
^~~~~~~~~~~~~~~~~
1 error generated.
make[3]: *** [CMakeFiles/mips-softmmu.dir/qemu/cpus.c.o] Error 1
1 error generated.
make[3]: *** [CMakeFiles/mips-softmmu.dir/qemu/exec.c.o] Error 1
1 error generated.
1 error generated.
make[3]: make[3]: *** [CMakeFiles/mipsel-softmmu.dir/qemu/cputlb.c.o] Error 1*** [CMakeFiles/mips-softmmu.dir/qemu/cputlb.c.o] Error 1

make[2]: *** [CMakeFiles/mips-softmmu.dir/all] Error 2
make[2]: *** [CMakeFiles/mipsel-softmmu.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [unicorn/build/libunicorn.so] Error 2

@0x1cc
Copy link
Collaborator

0x1cc commented Jun 18, 2024

It appears that the issue stems from compiling on an older version of Unicorn for the Apple M3 device. The current mlvm version relies on a dated Unicorn release, which might not be compatible with the latest Apple devices. We recommend testing on a Linux system, where it should function correctly. Alternatively, trying the latest Unicorn version might resolve the issue, although I haven't tested this.

Thank you for your interest in opML. We are currently developing a new version internally, which will be open-sourced upon completion. In this upcoming release, you won't encounter compatibility issues with Unicorn. Please stay tuned for our latest release!

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