error: use of unknown builtin '__builtin_apply' [-Wimplicit-function-declaration]
elliotchenzichang opened this issue · 0 comments
hi, I use this repo and run its demo code in my M1 Mac book pro. It seems it can not build up. The error is below:
# github.com/goccy/go-jit/internal/ccall jit-apply.c:357:3: error: use of unknown builtin '__builtin_apply' [-Wimplicit-function-declaration] ../../../../go/pkg/mod/github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/jit-apply-func.h:47:19: note: expanded from macro 'jit_builtin_apply' jit-apply.c:357:3: note: did you mean '__builtin_alloca'? ../../../../go/pkg/mod/github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/jit-apply-func.h:47:19: note: expanded from macro 'jit_builtin_apply' jit-apply.c:335:2: note: '__builtin_alloca' declared here ../../../../go/pkg/mod/github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/jit-apply-rules.h:151:47: note: expanded from macro 'jit_apply_builder_init' /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/alloca.h:39:22: note: expanded from macro 'alloca' /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/alloca.h:40:24: note: expanded from macro '__alloca' jit-apply.c:357:3: warning: incompatible integer to pointer conversion assigning to 'jit_apply_return *' from 'int' [-Wint-conversion] ../../../../go/pkg/mod/github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/jit-apply-func.h:47:17: note: expanded from macro 'jit_builtin_apply' jit-apply.c:362:3: error: use of unknown builtin '__builtin_apply' [-Wimplicit-function-declaration] ../../../../go/pkg/mod/github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/jit-apply-func.h:47:19: note: expanded from macro 'jit_builtin_apply' jit-apply.c:362:3: warning: incompatible integer to pointer conversion assigning to 'jit_apply_return *' from 'int' [-Wint-conversion] ../../../../go/pkg/mod/github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/jit-apply-func.h:47:17: note: expanded from macro 'jit_builtin_apply' jit-apply.c:397:3: error: use of unknown builtin '__builtin_apply' [-Wimplicit-function-declaration] ../../../../go/pkg/mod/github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/jit-apply-func.h:47:19: note: expanded from macro 'jit_builtin_apply' jit-apply.c:397:3: warning: incompatible integer to pointer conversion assigning to 'jit_apply_return *' from 'int' [-Wint-conversion] ../../../../go/pkg/mod/github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/jit-apply-func.h:47:17: note: expanded from macro 'jit_builtin_apply' jit-apply.c:401:3: error: use of unknown builtin '__builtin_apply' [-Wimplicit-function-declaration] ../../../../go/pkg/mod/github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/jit-apply-func.h:47:19: note: expanded from macro 'jit_builtin_apply' jit-apply.c:401:3: warning: incompatible integer to pointer conversion assigning to 'jit_apply_return *' from 'int' [-Wint-conversion] ../../../../go/pkg/mod/github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/jit-apply-func.h:47:17: note: expanded from macro 'jit_builtin_apply'