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

Fails to build with LLVM 4.0.0-rc2 #313

Closed
ilovezfs opened this issue Feb 16, 2017 · 1 comment
Closed

Fails to build with LLVM 4.0.0-rc2 #313

ilovezfs opened this issue Feb 16, 2017 · 1 comment

Comments

@ilovezfs
Copy link

In anticipation of the imminent LLVM 4.0.0 release, I'm testing whether each of the reverse dependencies of LLVM in Homebrew core are able to build. Unfortunately, the nvc build (b8cb16f) fails with

  CC       src/lib_libcgen_a-cgen.o
src/cgen.c:610:31: error: use of undeclared identifier 'LLVMNoUnwindAttribute'; did you mean 'LLVMIsStringAttribute'?
      LLVMAddFunctionAttr(fn, LLVMNoUnwindAttribute);
                              ^~~~~~~~~~~~~~~~~~~~~
                              LLVMIsStringAttribute
/usr/local/opt/llvm/include/llvm-c/Core.h:500:10: note: 'LLVMIsStringAttribute' declared here
LLVMBool LLVMIsStringAttribute(LLVMAttributeRef A);
         ^
src/cgen.c:1884:31: error: use of undeclared identifier 'LLVMNoUnwindAttribute'; did you mean 'LLVMIsStringAttribute'?
      LLVMAddFunctionAttr(fn, LLVMNoUnwindAttribute);
                              ^~~~~~~~~~~~~~~~~~~~~
                              LLVMIsStringAttribute
/usr/local/opt/llvm/include/llvm-c/Core.h:500:10: note: 'LLVMIsStringAttribute' declared here
LLVMBool LLVMIsStringAttribute(LLVMAttributeRef A);
         ^
src/cgen.c:2900:28: error: use of undeclared identifier 'LLVMNoUnwindAttribute'; did you mean 'LLVMIsStringAttribute'?
   LLVMAddFunctionAttr(fn, LLVMNoUnwindAttribute);
                           ^~~~~~~~~~~~~~~~~~~~~
                           LLVMIsStringAttribute
/usr/local/opt/llvm/include/llvm-c/Core.h:500:10: note: 'LLVMIsStringAttribute' declared here
LLVMBool LLVMIsStringAttribute(LLVMAttributeRef A);
         ^
src/cgen.c:2908:31: error: use of undeclared identifier 'LLVMReadOnlyAttribute'
      LLVMAddFunctionAttr(fn, LLVMReadOnlyAttribute);
                              ^
src/cgen.c:3005:28: error: use of undeclared identifier 'LLVMNoUnwindAttribute'; did you mean 'LLVMIsStringAttribute'?
   LLVMAddFunctionAttr(fn, LLVMNoUnwindAttribute);
                           ^~~~~~~~~~~~~~~~~~~~~
                           LLVMIsStringAttribute
/usr/local/opt/llvm/include/llvm-c/Core.h:500:10: note: 'LLVMIsStringAttribute' declared here
LLVMBool LLVMIsStringAttribute(LLVMAttributeRef A);
         ^
src/cgen.c:3079:28: error: use of undeclared identifier 'LLVMNoUnwindAttribute'; did you mean 'LLVMIsStringAttribute'?
   LLVMAddFunctionAttr(fn, LLVMNoUnwindAttribute);
                           ^~~~~~~~~~~~~~~~~~~~~
                           LLVMIsStringAttribute
/usr/local/opt/llvm/include/llvm-c/Core.h:500:10: note: 'LLVMIsStringAttribute' declared here
LLVMBool LLVMIsStringAttribute(LLVMAttributeRef A);
         ^
src/cgen.c:3569:31: error: use of undeclared identifier 'LLVMNoReturnAttribute'
      LLVMAddFunctionAttr(fn, LLVMNoReturnAttribute);
                              ^
src/cgen.c:3578:31: error: use of undeclared identifier 'LLVMNoReturnAttribute'
      LLVMAddFunctionAttr(fn, LLVMNoReturnAttribute);
                              ^
src/cgen.c:3587:31: error: use of undeclared identifier 'LLVMNoReturnAttribute'
      LLVMAddFunctionAttr(fn, LLVMNoReturnAttribute);
                              ^
src/cgen.c:3654:31: error: use of undeclared identifier 'LLVMNoUnwindAttribute'; did you mean 'LLVMIsStringAttribute'?
      LLVMAddFunctionAttr(fn, LLVMNoUnwindAttribute);
                              ^~~~~~~~~~~~~~~~~~~~~
                              LLVMIsStringAttribute
/usr/local/opt/llvm/include/llvm-c/Core.h:500:10: note: 'LLVMIsStringAttribute' declared here
LLVMBool LLVMIsStringAttribute(LLVMAttributeRef A);
         ^
10 errors generated.
make[1]: *** [src/lib_libcgen_a-cgen.o] Error 1
make: *** [all] Error 2

Full build log here: https://gist.github.com/ilovezfs/5e3636d0083e054ceeaa60db42c00fc9

@ilovezfs
Copy link
Author

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