pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Clang build failed



Hi
I would like to try clang as pkgsrc compiler but it fails to build.
I'm running amd64, NetBSD-current, pkgsrc-current:


llvm[3]: Compiling llvm_ocaml.c for Release build
llvm[3]: Compiling llvm.mli for Release build
llvm_ocaml.c:19:24: error: caml/alloc.h: No such file or directory
llvm_ocaml.c:20:25: error: caml/custom.h: No such file or directory
llvm_ocaml.c:21:25: error: caml/memory.h: No such file or directory
llvm_ocaml.c:22:23: error: caml/fail.h: No such file or directory
llvm_ocaml.c:23:27: error: caml/callback.h: No such file or directory
llvm[3]: Compiling llvm.ml for Release build
llvm_ocaml.c:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'llvm_ioerror_exn'
llvm_ocaml.c:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'value'
llvm_ocaml.c:39: error: expected ')' before 'Prototype'
llvm_ocaml.c:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'alloc_variant'
llvm_ocaml.c:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'LLVMContextRef'
llvm_ocaml.c:103: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
llvm_ocaml.c:109: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'LLVMContextRef'
llvm_ocaml.c:114: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
llvm[3]: Compiling optimized llvm.ml for Release build
llvm_ocaml.c:123: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'LLVMModuleRef'
llvm_ocaml.c:128: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
llvm_ocaml.c:134: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
llvm_ocaml.c:139: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
(...)
llvm_ocaml.c:372: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'LLVMTypeRef'
llvm_ocaml.c:380: error: expected ')' before 'TH'
llvm_ocaml.c:384: error: variable 'typehandle_ops' has initializer but 
incomplete type
llvm_ocaml.c:385: warning: excess elements in struct initializer
llvm_ocaml.c:385: warning: (near initialization for 'typehandle_ops')
llvm_ocaml.c:386: error: 'llvm_finalize_handle' undeclared here (not in a 
function)
llvm_ocaml.c:386: warning: excess elements in struct initializer
llvm_ocaml.c:386: warning: (near initialization for 'typehandle_ops')
llvm_ocaml.c:387: error: 'custom_compare_default' undeclared here (not in a 
function)
llvm_ocaml.c:387: warning: excess elements in struct initializer
llvm_ocaml.c:387: warning: (near initialization for 'typehandle_ops')
llvm_ocaml.c:388: error: 'custom_hash_default' undeclared here (not in a 
function)
llvm_ocaml.c:388: warning: excess elements in struct initializer
llvm_ocaml.c:388: warning: (near initialization for 'typehandle_ops')
llvm_ocaml.c:389: error: 'custom_serialize_default' undeclared here (not in a 
function)
llvm_ocaml.c:389: warning: excess elements in struct initializer
llvm_ocaml.c:389: warning: (near initialization for 'typehandle_ops')
llvm_ocaml.c:390: error: 'custom_deserialize_default' undeclared here (not in a 
function)
llvm_ocaml.c:391: warning: excess elements in struct initializer
llvm_ocaml.c:391: warning: (near initialization for 'typehandle_ops')
llvm_ocaml.c:393: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
(...)
llvm_ocaml.c:1799: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
llvm_ocaml.c:1805: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
llvm_ocaml.c:1810: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
llvm_ocaml.c:1816: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
llvm_ocaml.c:1821: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'value'
gmake[3]: *** 
[/tmp/pkgsrc_workdir/lang/clang/work/llvm-2.8/bindings/ocaml/llvm/Release/llvm_ocaml.o]
 Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory 
`/tmp/pkgsrc_workdir/lang/clang/work/llvm-2.8/bindings/ocaml/llvm'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory 
`/tmp/pkgsrc_workdir/lang/clang/work/llvm-2.8/bindings/ocaml'
gmake[1]: *** [ocaml/.makeall] Error 2
gmake[1]: Leaving directory 
`/tmp/pkgsrc_workdir/lang/clang/work/llvm-2.8/bindings'
gmake: *** [all] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/lang/clang
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/clang


Best regards,
Dawid


Home | Main Index | Thread Index | Old Index