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

Can't compile 3.1.2 on macos 13.4 (x86) due to errors in ephemeral C source/header files #353

Open
markjreed opened this issue Jun 15, 2023 · 0 comments

Comments

@markjreed
Copy link

markjreed commented Jun 15, 2023

I get this error:

building .ext/include/x86_64-darwin22/rb_mjit_min_header-3.1.2.h
error in initial header file:
/usr/local/bin/clang -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -Wundef -std=gnu99 -pipe -w -S -DMJIT_HEADER -fsyntax-only -Werror=implicit-function-declaration -Werror=implicit-int -Wfatal-errors /var/folders/0c/pvfdpxnj57j770_yh56rhgf40000gn/T/20230615-97060-ey5nmg.c
In file included from /var/folders/0c/pvfdpxnj57j770_yh56rhgf40000gn/T/20230615-97060-ey5nmg.c:1:
/var/folders/0c/pvfdpxnj57j770_yh56rhgf40000gn/T/20230615-97060-gipa4a.h:4:1: fatal error: expected identifier or '('

But the 20230615-97060-ey5nmg.c and 20230615-97060-gipa4a.h files (whose names change on every build) are no longer there after the build fails, so I have no idea what's wrong with them, or even where they come from.

But I do see that there is an rb_mjit_header.h file, and for some reason its first line looks like make output instead of C code:

/usr/local/bin/clang -E -DMJIT_HEADER -P -dD -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -Wundef -std=gnu99 -pipe -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE -I. -I.ext/include/x86_64-darwin22 -I./include -I. -I./enc/unicode/13.0.0 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT ./vm.c
#define __llvm__ 1
#define __clang__ 1
#define __clang_major__ 14
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