[Top][All Lists]

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

Re: Aw: RE: RE: Octave 3.8.2 released - llvm

From: Tatsuro MATSUOKA
Subject: Re: Aw: RE: RE: Octave 3.8.2 released - llvm
Date: Wed, 27 Aug 2014 10:13:47 +0900 (JST)

----- Original Message -----

> From: Stefan Mahr 
> To: John D  'Tatsuro MATSUOKA' 
> Cc: address@hidden
> Date: 2014/8/26, Tue 21:58
> Subject: Aw: RE:  RE: Octave 3.8.2 released - llvm
> Following patch should fix the problem. I'm not sure if there's a reason 
> why LLVM_LDFLAGS was set with library path only.
> diff -r ec5413b3e53d configure.ac
> --- a/configure.ac    Sun Mar 16 13:25:57 2014 +0100
> +++ b/configure.ac    Tue Aug 26 14:47:22 2014 +0200
> @@ -822,7 +822,7 @@
>      dnl Use -isystem so we don't get warnings from llvm headers
> -    LLVM_LDFLAGS="-L`$LLVM_CONFIG --libdir`"
> +    LLVM_LDFLAGS="`$LLVM_CONFIG --ldflags`"
>      LLVM_SO=LLVM-`$LLVM_CONFIG --version`
> diff -r ec5413b3e53d m4/acinclude.m4
> --- a/m4/acinclude.m4    Sun Mar 16 13:25:57 2014 +0100
> +++ b/m4/acinclude.m4    Tue Aug 26 14:47:22 2014 +0200
> @@ -1840,7 +1840,7 @@
>      [octave_cv_legacy_passmanager],
>      [AC_LANG_PUSH(C++)
>        save_LIBS="$LIBS"
> -      LIBS="$LLVM_LIBS $LIBS"
>        AC_LINK_IFELSE(
>          [AC_LANG_PROGRAM([[
>            #include <llvm/IR/LegacyPassManager.h>
I have applied the patch and tried bootstrap and configure.
The "check for LLVM::legacy::PassManager" (config.log)

configure:15446: checking check for LLVM::legacy::PassManager
configure:15486: g++ -o conftest  -g -O2 -pthread -D__STDC_CONSTANT_MACROS 
-D__STDC_LIMIT_MACROS -isystem /opt/clang+llvm-3.4.2/include -I/usr/include/mpi 
-DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX  -L/opt/clang+llvm-3.4.2/lib  -lz 
-lpthread -ltinfo -ldl -lm  conftest.cpp -L/opt/clang+llvm-3.4.2/lib  -lz 
-lpthread -ltinfo -ldl -lm  -lLLVMInstrumentation -lLLVMIRReader 
-lLLVMAsmParser -lLLVMDebugInfo -lLLVMOption -lLLVMLTO -lLLVMLinker -lLLVMipo 
-lLLVMVectorize -lLLVMBitWriter -lLLVMBitReader -lLLVMTableGen 
-lLLVMR600CodeGen -lLLVMR600Desc -lLLVMR600Info -lLLVMR600AsmPrinter 
-lLLVMSystemZDisassembler -lLLVMSystemZCodeGen -lLLVMSystemZAsmParser 
-lLLVMSystemZDesc -lLLVMSystemZInfo -lLLVMSystemZAsmPrinter 
-lLLVMHexagonCodeGen -lLLVMHexagonAsmPrinter -lLLVMHexagonDesc 
-lLLVMNVPTXAsmPrinter -lLLVMCppBackendCodeGen -lLLVMCppBackendInfo 
-lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info
 -lLLVMMSP430AsmPrinter -lLLVMXCoreDisassembler -lLLVMXCoreCodeGen 
-lLLVMXCoreDesc -lLLVMXCoreInfo -lLLVMXCoreAsmPrinter -lLLVMMipsDisassembler 
-lLLVMMipsCodeGen -lLLVMMipsAsmParser -lLLVMMipsDesc -lLLVMMipsInfo 
-lLLVMMipsAsmPrinter -lLLVMARMDisassembler -lLLVMARMCodeGen -lLLVMARMAsmParser 
-lLLVMARMDesc -lLLVMARMInfo -lLLVMARMAsmPrinter -lLLVMAArch64Disassembler 
-lLLVMAArch64CodeGen -lLLVMAArch64AsmParser -lLLVMAArch64Desc -lLLVMAArch64Info 
-lLLVMAArch64AsmPrinter -lLLVMAArch64Utils -lLLVMPowerPCCodeGen 
-lLLVMPowerPCAsmParser -lLLVMPowerPCDesc -lLLVMPowerPCInfo 
-lLLVMPowerPCAsmPrinter -lLLVMSparcCodeGen -lLLVMSparcDesc -lLLVMSparcInfo 
-lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG 
-lLLVMAsmPrinter -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils 
-lLLVMMCDisassembler -lLLVMMCParser -lLLVMInterpreter -lLLVMMCJIT -lLLVMJIT 
-lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine 
 -lLLVMipa -lLLVMAnalysis -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMTarget 
-lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport -lm   >&5
/opt/clang+llvm-3.4.2/lib/libLLVMSupport.a(Signals.o): In function 
Signals.cpp:(.text+0x834): undefined reference to `dladdr'
Signals.cpp:(.text+0x965): undefined reference to `dladdr'
/opt/clang+llvm-3.4.2/lib/libLLVMSupport.a(Process.o): In function 
Process.cpp:(.text+0x687): undefined reference to `setupterm'
Process.cpp:(.text+0x6b0): undefined reference to `tigetnum'
Process.cpp:(.text+0x6b9): undefined reference to `set_curterm'
Process.cpp:(.text+0x6c1): undefined reference to `del_curterm'
collect2: error: ld returned 1 exit status
configure:15486: $? = 1

This time -ltinfo -ldl are included but the check of LLVM::legacy::PassManager 
was in failure.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]