octave-maintainers
[Top][All Lists]
Advanced

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

Re: Octave 3.8.2-rc2 release candidate available for ftp


From: Tatsuro MATSUOKA
Subject: Re: Octave 3.8.2-rc2 release candidate available for ftp
Date: Fri, 4 Jul 2014 09:23:51 +0900 (JST)




----- Original Message -----
  
> OS: Ubuntu 14.04
> Compiled 3.8.2-rc code (hg checkout rc-3-8-2-2) with clang.
> 
> make failed with following error:
> ********************************************************************************
> 
> libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I../../libinterp -I..
> -I../../liboctave/cruft/misc -I../../liboctave/array
> -I../liboctave/numeric -I../../liboctave/numeric
> -I../liboctave/operators -I../../liboctave/operators
> -I../../liboctave/system -I../../liboctave/util
> -I../../libinterp/octave-value -I../../libinterp/operators
> -Iparse-tree -I../../libinterp/parse-tree -Icorefcn
> -I../../libinterp/corefcn -I../libgnu -I../../libgnu
> -I/usr/include/freetype2 -I/usr/include/freetype2 -isystem
> /usr/lib/llvm-3.4/include -Wall -W -Wshadow -Wold-style-cast -Wformat
> -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2
> -pthread -MT corefcn/corefcn_libcorefcn_la-pt-jit.lo -MD -MP -MF
> corefcn/.deps/corefcn_libcorefcn_la-pt-jit.Tpo -c
> ../../libinterp/corefcn/pt-jit.cc  -fPIC -DPIC -o
> corefcn/.libs/corefcn_libcorefcn_la-pt-jit.o
> In file included from ../../libinterp/corefcn/pt-jit.cc:35:
> In file included from ../../libinterp/parse-tree/pt-all.h:36:
> In file included from ../../libinterp/parse-tree/pt-decl.h:36:
> ../../libinterp/parse-tree/pt-id.h:158:20: warning:
> 'tree_black_hole::dup' hides overloaded virtual function
> [-Woverloaded-virtual]
>   tree_black_hole *dup (void) const
>                    ^
> ../../libinterp/parse-tree/pt-id.h:124:20: note: hidden overloaded
> virtual function 'tree_identifier::dup' declared here: different
> number of
>       parameters (2 vs 0)
>   tree_identifier *dup (symbol_table::scope_id scope,
>                    ^
> In file included from ../../libinterp/corefcn/pt-jit.cc:35:
> In file included from ../../libinterp/parse-tree/pt-all.h:44:
> In file included from ../../libinterp/parse-tree/pt-mat.h:35:
> ../../libinterp/parse-tree/pt-array-list.h:55:8: warning:
> 'tree_array_list::copy_base' hides overloaded virtual function
> [-Woverloaded-virtual]
>   void copy_base (const tree_array_list& array_list);
>        ^
> ../../libinterp/parse-tree/pt-exp.h:123:16: note: hidden overloaded
> virtual function 'tree_expression::copy_base' declared here: type
> mismatch
>       at 1st parameter ('const tree_expression &' vs 'const 
> tree_array_list &')
>   virtual void copy_base (const tree_expression& e)
>                ^
> In file included from ../../libinterp/corefcn/pt-jit.cc:35:
> In file included from ../../libinterp/parse-tree/pt-all.h:44:
> In file included from ../../libinterp/parse-tree/pt-mat.h:35:
> ../../libinterp/parse-tree/pt-array-list.h:57:8: warning:
> 'tree_array_list::copy_base' hides overloaded virtual function
> [-Woverloaded-virtual]
>   void copy_base (const tree_array_list& array_list,
>        ^
> ../../libinterp/parse-tree/pt-exp.h:123:16: note: hidden overloaded
> virtual function 'tree_expression::copy_base' declared here: different
>       number of parameters (1 vs 3)
>   virtual void copy_base (const tree_expression& e)
>                ^
> In file included from ../../libinterp/corefcn/pt-jit.cc:55:
> /usr/lib/llvm-3.4/include/llvm/PassManager.h:34:15: error: target of
> using declaration conflicts with declaration already in scope
> using legacy::PassManager;
>               ^
> /usr/lib/llvm-3.4/include/llvm/IR/LegacyPassManager.h:48:7: note:
> target of using declaration
> class PassManager : public PassManagerBase {
>       ^
> ../../libinterp/corefcn/jit-util.h:46:9: note: conflicting declaration
>   class PassManager;
>         ^
> In file included from ../../libinterp/corefcn/pt-jit.cc:55:
> /usr/lib/llvm-3.4/include/llvm/PassManager.h:35:15: error: target of
> using declaration conflicts with declaration already in scope
> using legacy::FunctionPassManager;
>               ^
> /usr/lib/llvm-3.4/include/llvm/IR/LegacyPassManager.h:71:7: note:
> target of using declaration
> class FunctionPassManager : public PassManagerBase {
>       ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: conflicting declaration
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1891:29: error: allocation of
> incomplete type 'llvm::PassManager'
>   module_pass_manager = new llvm::PassManager ();
>                             ^~~~~~~~~~~~~~~~~
> ../../libinterp/corefcn/jit-util.h:46:9: note: forward declaration of
> 'llvm::PassManager'
>   class PassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1892:22: error: member access into
> incomplete type 'llvm::PassManager'
>   module_pass_manager->add (llvm::createAlwaysInlinerPass ());
>                      ^
> ../../libinterp/corefcn/jit-util.h:46:9: note: forward declaration of
> 'llvm::PassManager'
>   class PassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1894:22: error: allocation of
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager = new llvm::FunctionPassManager (module);
>                      ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1896:15: error: member access into
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager->add (new llvm::DataLayout (*engine->getDataLayout ()));
>               ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1900:15: error: member access into
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager->add (llvm::createCFGSimplificationPass ());
>               ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1901:15: error: member access into
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager->add (llvm::createBasicAliasAnalysisPass ());
>               ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1902:15: error: member access into
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager->add (llvm::createPromoteMemoryToRegisterPass ());
>               ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1903:15: error: member access into
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager->add (llvm::createInstructionCombiningPass ());
>               ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1904:15: error: member access into
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager->add (llvm::createReassociatePass ());
>               ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1905:15: error: member access into
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager->add (llvm::createGVNPass ());
>               ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1906:15: error: member access into
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager->add (llvm::createCFGSimplificationPass ());
>               ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:1907:15: error: member access into
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager->doInitialization ();
>               ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:2003:22: error: member access into
> incomplete type 'llvm::PassManager'
>   module_pass_manager->run (*module);
>                      ^
> ../../libinterp/corefcn/jit-util.h:46:9: note: forward declaration of
> 'llvm::PassManager'
>   class PassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:2004:15: error: member access into
> incomplete type 'llvm::FunctionPassManager'
>   pass_manager->run (*fn);
>               ^
> ../../libinterp/corefcn/jit-util.h:45:9: note: forward declaration of
> 'llvm::FunctionPassManager'
>   class FunctionPassManager;
>         ^
> ../../libinterp/corefcn/pt-jit.cc:2010:34: error: no member named
> 'F_Binary' in 'llvm::raw_fd_ostream'; did you mean
> 'llvm::sys::fs::F_Binary'?
>                                  llvm::raw_fd_ostream::F_Binary);
>                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>                                  llvm::sys::fs::F_Binary
> /usr/lib/llvm-3.4/include/llvm/Support/FileSystem.h:626:3: note:
> 'llvm::sys::fs::F_Binary' declared here
>   F_Binary = 4
>   ^
> ../../libinterp/corefcn/pt-jit.cc:1998:37: warning: unused parameter
> 'fn' [-Wunused-parameter]
> tree_jit::optimize (llvm::Function *fn)
>                                     ^
> 4 warnings and 17 errors generated.
> make[3]: *** [corefcn/corefcn_libcorefcn_la-pt-jit.lo] Error 1
> make[3]: Leaving directory
> `/media/linux_softwares/Softwares/octave/octave/build/libinterp'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/media/linux_softwares/Softwares/octave/octave/build/libinterp'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/media/linux_softwares/Softwares/octave/octave/build'
> make: *** [all] Error 2
> 
> ********************************************************************************
> 
> Any pointers to solve the issue will help. Am I doing something wrong?
> 
> Note: I will try with GCC in a couple of days.
> 
> Regards,
> PrasannaKumar

What happens if you use llvm-3.2?
For me llvm-3.2 works fine on Ubuntu 12.04 LTS 64bit.

Reference
PATH=$PATH:/opt/clang+llvm-3.2/bin ../octave-3.8.2-rc2/configure --enable-jit 
--prefix=/usr/local/octave-3.8.2-rc2 \
LLVM_CONFIG=/opt/clang+llvm-3.2/bin/llvm-config \
CPPFLAGS="-I/usr/include/mpi -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX"

PATH=$PATH:/opt/clang+llvm-3.2/bin make

Note that clang+llvm-3.2 is built by myself.

Regards

Tatsuro




reply via email to

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