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

There is an error in the build now. #417

Open
the-die opened this issue Dec 2, 2024 · 0 comments
Open

There is an error in the build now. #417

the-die opened this issue Dec 2, 2024 · 0 comments

Comments

@the-die
Copy link

the-die commented Dec 2, 2024

/home/hong/projects/mir/llvm2mir/llvm2mir.c: In function ‘init_bb_gen_info’:
/home/hong/projects/mir/llvm2mir/llvm2mir.c:76:90: error: macro "HTAB_CREATE" requires 7 arguments, but only 6 given
   76 |   HTAB_CREATE (bb_gen_info_t, bb_gen_info_tab, 64, bb_gen_info_hash, bb_gen_info_eq, NULL);
      |                                                                                          ^
In file included from /home/hong/projects/mir/mir.h:22,
                 from /home/hong/projects/mir/llvm2mir/llvm2mir.h:8,
                 from /home/hong/projects/mir/llvm2mir/llvm2mir.c:10:
/home/hong/projects/mir/mir-htab.h:241:9: note: macro "HTAB_CREATE" defined here
  241 | #define HTAB_CREATE(T, V, M, S, H, EQ, A) (HTAB_OP (T, create) (&(V), M, S, H, EQ, NULL, A))
      |         ^~~~~~~~~~~
[ 77%] Linking C executable interp_loop_c
[ 79%] Linking C executable interp_sieve
/home/hong/projects/mir/llvm2mir/llvm2mir.c:76:3: error: ‘HTAB_CREATE’ undeclared (first use in this function)
   76 |   HTAB_CREATE (bb_gen_info_t, bb_gen_info_tab, 64, bb_gen_info_hash, bb_gen_info_eq, NULL);
      |   ^~~~~~~~~~~
/home/hong/projects/mir/llvm2mir/llvm2mir.c:76:3: note: each undeclared identifier is reported only once for each function it appears in
/home/hong/projects/mir/llvm2mir/llvm2mir.c:77:46: error: macro "VARR_CREATE" requires 4 arguments, but only 3 given
   77 |   VARR_CREATE (bb_gen_info_t, bb_gen_infos, 0);
      |                                              ^
In file included from /home/hong/projects/mir/mir.h:21:
/home/hong/projects/mir/mir-varr.h:175:9: note: macro "VARR_CREATE" defined here
  175 | #define VARR_CREATE(T, V, A, L) (VARR_OP (T, create) (&(V), A, L))
      |         ^~~~~~~~~~~
/home/hong/projects/mir/llvm2mir/llvm2mir.c:77:3: error: ‘VARR_CREATE’ undeclared (first use in this function)
   77 |   VARR_CREATE (bb_gen_info_t, bb_gen_infos, 0);
      |   ^~~~~~~~~~~
/home/hong/projects/mir/llvm2mir/llvm2mir.c: In function ‘add_bb_dest’:
/home/hong/projects/mir/llvm2mir/llvm2mir.c:176:68: error: macro "VARR_CREATE" requires 4 arguments, but only 3 given
  176 |   if (e->br_insns == NULL) VARR_CREATE (MIR_insn_t, e->br_insns, 16);
      |                                                                    ^
/home/hong/projects/mir/mir-varr.h:175:9: note: macro "VARR_CREATE" defined here
  175 | #define VARR_CREATE(T, V, A, L) (VARR_OP (T, create) (&(V), A, L))
      |         ^~~~~~~~~~~
[ 81%] Linking C executable io_test
[ 82%] Linking C executable gen_loop
/home/hong/projects/mir/llvm2mir/llvm2mir.c:176:28: error: ‘VARR_CREATE’ undeclared (first use in this function)
  176 |   if (e->br_insns == NULL) VARR_CREATE (MIR_insn_t, e->br_insns, 16);
      |                            ^~~~~~~~~~~
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

1 participant