octave-maintainers
[Top][All Lists]
Advanced

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

Re: Classdef build fails ( was -> Re: Classdef embryonic support)


From: Michael Goffioul
Subject: Re: Classdef build fails ( was -> Re: Classdef embryonic support)
Date: Tue, 8 Jan 2013 21:40:38 -0500

On Tue, Jan 8, 2013 at 9:22 PM, Ben Abbott <address@hidden> wrote:

On Jan 1, 2013, at 8:09 PM, Michael Goffioul wrote:

> Hi,
>
> Just a heads up to let people know I've spent some time during my christmas holiday to start working again on the classdef branch. I've just pushed some changes to implement initial support for handle-class and value-class semantic. Don't expect too much out of it, but maybe some of you are interested in giving it a try. For instance, I'd be more than happy if someone would write unit tests for the classdef support.
>
> Enjoy,
> Michael.

I've tried to build the classdef branch.  My configure ends with ...

Octave is now configured for x86_64-apple-darwin11.4.2

  Source directory:            .
  Installation prefix:         /usr/fubar
  C compiler:                  /opt/local/bin/gcc-mp-4.5   -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -pipe -O0 -g -m64 -ggdb3 -gstabs -D_THREAD_SAFE -funroll-loops -lstdc++ -D_THREAD_SAFE -pthread
  C++ compiler:                /opt/local/bin/g++-mp-4.5  -I/opt/local/include  -isystem /opt/local/libexec/llvm-3.1/include -I/opt/local/include/freetype2 -I/opt/local/include   -I/opt/local/include    -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -pipe -O0 -g -m64 -ggdb3 -gstabs -D_THREAD_SAFE -D_THREAD_SAFE -pthread
  Fortran compiler:            /opt/local/bin/gfortran-mp-4.5 -pipe -O0 -g -m64 -ggdb3 -gstabs -D_THREAD_SAFE -funroll-loops
  Fortran libraries:            -L/opt/local/lib -L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin11/4.5.4 -L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin11/4.5.4/../../.. -lm -lgfortran
  Lex libraries:
  LIBS:                        -lm

  AMD CPPFLAGS:
  AMD LDFLAGS:
  AMD libraries:               -lamd
  ARPACK CPPFLAGS:
  ARPACK LDFLAGS:
  ARPACK libraries:            -larpack
  BLAS libraries:              -lcblas -lf77blas -latlas
  CAMD CPPFLAGS:
  CAMD LDFLAGS:
  CAMD libraries:              -lcamd
  CARBON libraries:            -Wl,-framework -Wl,Carbon
  CCOLAMD CPPFLAGS:
  CCOLAMD LDFLAGS:
  CCOLAMD libraries:           -lccolamd
  CHOLMOD CPPFLAGS:
  CHOLMOD LDFLAGS:
  CHOLMOD libraries:           -lcholmod -lmetis
  COLAMD CPPFLAGS:
  COLAMD LDFLAGS:
  COLAMD libraries:            -lcolamd
  CURL CPPFLAGS:
  CURL LDFLAGS:
  CURL libraries:              -lcurl
  CXSPARSE CPPFLAGS:
  CXSPARSE LDFLAGS:
  CXSPARSE libraries:          -lcxsparse
  DL libraries:                -ldl
  FFTW3 CPPFLAGS:
  FFTW3 LDFLAGS:
  FFTW3 libraries:             -lfftw3
  FFTW3F CPPFLAGS:
  FFTW3F LDFLAGS:
  FFTW3F libraries:            -lfftw3f
  fontconfig CFLAGS:           -I/opt/local/include
  fontconfig libraries:        -L/opt/local/lib -lfontconfig
  FreeType2 CFLAGS:            -I/opt/local/include/freetype2 -I/opt/local/include
  FreeType2 libraries:         -L/opt/local/lib -lfreetype
  GLPK CPPFLAGS:
  GLPK LDFLAGS:
  GLPK libraries:              -lglpk
  graphics CFLAGS:             -I/opt/local/include -pipe -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
  graphics libraries:          -L/opt/local/lib -lfltk_gl -framework AGL -framework OpenGL -framework ApplicationServices -lfltk -lpthread -framework Cocoa
  HDF5 CPPFLAGS:
  HDF5 LDFLAGS:
  HDF5 libraries:              -lhdf5
  Java home:                   /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  Java JVM path:               /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries
  Java CPPFLAGS:               -I/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/include -I/System/Library/Frameworks/JavaVM.framework/Home/include -I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers
  Java libraries:              -framework JavaVM
  LAPACK libraries:            -llapack
  LLVM CPPFLAGS:               -isystem /opt/local/libexec/llvm-3.1/include
  LLVM LDFLAGS:                -L/opt/local/libexec/llvm-3.1/lib
  LLVM libraries:              -lLLVMAsmParser -lLLVMInstrumentation -lLLVMLinker -lLLVMArchive -lLLVMBitReader -lLLVMDebugInfo -lLLVMJIT -lLLVMipo -lLLVMVectorize -lLLVMBitWriter -lLLVMTableGen -lLLVMHexagonCodeGen -lLLVMHexagonAsmPrinter -lLLVMHexagonDesc -lLLVMHexagonInfo -lLLVMPTXCodeGen -lLLVMPTXDesc -lLLVMPTXInfo -lLLVMPTXAsmPrinter -lLLVMMBlazeDisassembler -lLLVMMBlazeAsmParser -lLLVMMBlazeCodeGen -lLLVMMBlazeDesc -lLLVMMBlazeInfo -lLLVMMBlazeAsmPrinter -lLLVMCppBackendCodeGen -lLLVMCppBackendInfo -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMMSP430AsmPrinter -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo -lLLVMCellSPUCodeGen -lLLVMCellSPUDesc -lLLVMCellSPUInfo -lLLVMMipsDisassembler -lLLVMMipsAsmParser -lLLVMMipsCodeGen -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMMipsAsmPrinter -lLLVMARMDisassembler -lLLVMARMAsmParser -lLLVMARMCodeGen -lLLVMARMDesc -lLLVMARMInfo -lLLVMARMAsmPrinter -lLLVMPowerPCCodeGen -lLLVMPowerPCDesc -lLLVMPowerPCAsmPrinter -lLLVMPowerPCInfo -lLLVMSparcCodeGen -lLLVMSparcDesc -lLLVMSparcInfo -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86AsmParser -lLLVMX86Disassembler -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCDisassembler -lLLVMMCParser -lLLVMInterpreter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMMCJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport
  Magick++ CPPFLAGS:           -I/opt/local/include/GraphicsMagick
  Magick++ LDFLAGS:            -L/opt/local/lib
  Magick++ libraries:          -lGraphicsMagick++ -lGraphicsMagick
  OPENGL libraries:            -L/opt/local/lib -lfontconfig   -Wl,-framework -Wl,OpenGL
  PTHREAD flags:               -D_THREAD_SAFE -pthread
  PTHREAD libraries:
  QHULL CPPFLAGS:
  QHULL LDFLAGS:
  QHULL libraries:             -lqhull
  QRUPDATE CPPFLAGS:
  QRUPDATE LDFLAGS:
  QRUPDATE libraries:          -lqrupdate
  Qt CPPFLAGS:                 -I/opt/local/include -I/opt/local/include/QtCore -I/opt/local/include/QtGui -I/opt/local/include/QtNetwork
  Qt LDFLAGS:                  -L/opt/local/lib
  Qt libraries:                -lQtGui -lQtNetwork -lQtCore   -lqscintilla2
  READLINE libraries:          -lreadline
  REGEX libraries:             -L/opt/local/lib -lpcre
  TERM libraries:              -lncurses
  UMFPACK CPPFLAGS:
  UMFPACK LDFLAGS:
  UMFPACK libraries:           -lumfpack -lsuitesparseconfig
  X11 include flags:           /opt/local/include
  X11 libraries:               -L/opt/local/lib -lX11
  Z CPPFLAGS:
  Z LDFLAGS:
  Z libraries:                 -lz

  Default pager:               less
  gnuplot:                     gnuplot

  Build Octave GUI:                   yes
  JIT compiler for loops:             true
  Build Java interface:               true
  Do internal array bounds checking:  false
  Use octave_allocator:               false
  Build static libraries:             false
  Build shared libraries:             true
  Dynamic Linking:                    true (dlopen)
  Include support for GNU readline:   true
  64-bit array dims and indexing:     false

My make ends with ...

Making all in libinterp
making interpfcn/defaults.h from interpfcn/defaults.in.h
interpfcn/defaults.h is unchanged
/bin/sh ../build-aux/ylwrap parse-tree/lex.ll lex.octave_.c parse-tree/lex.cc -- flex -I -framework JavaVM -I -framework JavaVM
flex: Unrecognized option `r'
Try `flex --help' for more information.
make[2]: *** [parse-tree/lex.cc] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

It appears that flex is complaining about MacOS X's Java libraries. Looking at my Makefile, it appears the culprit is LFLAGS, and AM_FLAGS.

        LFLAGS = -I -framework JavaVM

        AM_LFLAGS = -I -framework JavaVM

        LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS)

        LTLEXCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
                --mode=compile $(LEX) $(AM_LFLAGS) $(LFLAGS)

I assume something is broken here for me?

In any event, if I run the command below manually ...

        ../build-aux/ylwrap parse-tree/lex.ll lex.octave_.c parse-tree/lex.cc -- flex

... the build continues and eventually completes.

In the event it matters, my flex is 2.5.37, automake is 1.11.5, autoconf is 2.69

Have you tried building the classdef branch with Java?  Should I just configure with "--disable-java"?

Yes, I'm building the classdef branch with Java enabled, but under Linux. It appears the problem is OS X specific (I guess it complains about the "-framework" part). However that problem should not be specific to the classdef branch, except if the problem has been fixed in the default branch recently (last merge dates from a few days ago).

Michael.


reply via email to

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