[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MXE Octave: "... has no symbols" warning under Mac OS X
From: |
Ben Abbott |
Subject: |
Re: MXE Octave: "... has no symbols" warning under Mac OS X |
Date: |
Wed, 25 Sep 2013 21:01:39 -0400 |
On Sep 25, 2013, at 9:18 AM, Ben Abbott wrote:
> On Sep 25, 2013, at 5:10 AM, Anirudha Bose wrote:
>
>> On Wed, Sep 25, 2013 at 3:22 AM, Ben Abbott <address@hidden> wrote:
>> On Sep 24, 2013, at 4:35 PM, Anirudha Bose wrote:
>>
>>> On Wed, Sep 25, 2013 at 1:56 AM, Anirudha Bose <address@hidden> wrote:
>>>
>>> On Wed, Sep 25, 2013 at 1:32 AM, Ben Abbott <address@hidden> wrote:
>>> On Sep 24, 2013, at 11:41 AM, Ben Abbott wrote:
>>>
>>>> On Sep 24, 2013, at 2:59 AM, Anirudha Bose wrote:
>>>>
>>>>> If you send me the entire log of octave then I can understand better. I
>>>>> am not getting any such errors while building octave.
>>>>
>>>> I started by build with a "sudo make clean" and then ...
>>>>
>>>> $ autoconf
>>>> $ ./configure --enable-native-build --enable-shared --disable-static \
>>>> --target=darwin --build=darwin --host=darwin \
>>>> --enable-pic-flag
>>>> checking for gawk... gawk
>>>> checking for grep that handles long lines and -e... /opt/local/bin/grep
>>>> checking whether ln -s works... yes
>>>> checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
>>>> checking for a BSD-compatible install... /opt/local/bin/ginstall -c
>>>> checking for darwin-gcc... no
>>>> checking for gcc... gcc
>>>> checking whether the C compiler works... yes
>>>> checking for C compiler default output file name... a.out
>>>> checking for suffix of executables...
>>>> checking whether we are cross compiling... no
>>>> checking for suffix of object files... o
>>>> checking whether we are using the GNU C compiler... yes
>>>> checking whether gcc accepts -g... yes
>>>> checking for gcc option to accept ISO C89... none needed
>>>> checking how to run the C preprocessor... gcc -E
>>>> checking for egrep... /opt/local/bin/grep -E
>>>> checking whether gcc needs -traditional... no
>>>> darwin
>>>> configure: creating ./config.status
>>>> config.status: creating Makefile
>>>> config.status: creating tools/set_mxe_env.sh
>>>> $ sudo make octave
>>>> [check requirements]
>>>> [build] build-autoconf
>>>> [done] build-autoconf
>>>> [build] build-automake
>>>> [done] build-automake
>>>> [build] build-bison
>>>> [done] build-bison
>>>> [build] build-cmake
>>>> [done] build-cmake
>>>> [build] build-flex
>>>> [done] build-flex
>>>> [build] build-gperf
>>>> [done] build-gperf
>>>> [build] build-libtool
>>>> [done] build-libtool
>>>> [build] build-pkg-config
>>>> [done] build-pkg-config
>>>> [build] build-texinfo
>>>> [done] build-texinfo
>>>> # create the CMake toolchain file
>>>> [ -d
>>>> '/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/share/cmake/'
>>>> ] || mkdir -p
>>>> '/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/share/cmake/'
>>>> (if [ darwin = mingw ]; then echo 'set(CMAKE_SYSTEM_NAME Windows)'; echo
>>>> 'set(MSYS 1)'; fi; if [ darwin = msvc ]; then echo 'set(MSVC 1)'; fi; if [
>>>> yes = yes ]; then echo 'set(BUILD_SHARED_LIBS ON)'; else echo
>>>> 'set(BUILD_SHARED_LIBS OFF)'; fi; if [ no = yes ]; then echo
>>>> 'set(BUILD_STATIC_LIBS ON)'; else echo 'set(BUILD_STATIC_LIBS OFF)'; fi;
>>>> echo 'set(CMAKE_BUILD_TYPE Release)'; if [ darwin = msvc ]; then echo
>>>> 'set(CMAKE_FIND_ROOT_PATH )'; echo 'set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM
>>>> BOTH)'; else echo 'set(CMAKE_FIND_ROOT_PATH
>>>> /Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2)';
>>>> echo 'set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)'; fi; echo
>>>> 'set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)'; echo
>>>> 'set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)'; echo 'set(CMAKE_C_COMPILER
>>>> gcc)'; echo 'set(CMAKE_CXX_COMPILER g++)'; echo
>>>> 'set(CMAKE_Fortran_COMPILER /opt/local/bin/gfortran-mp-4.7)'; echo
>>>> 'set(CMAKE_RC_COMPILER true)'; echo 'set(PKG_CONFIG_EXECUTABLE
>>>> pkg-config)'; echo 'set(QT_QMAKE_EXECUTABLE qmake)'; if [ darwin = msvc ];
>>>> then echo 'set(CMAKE_INSTALL_PREFIX CACHE PATH "Installation Prefix")';
>>>> else echo 'set(CMAKE_INSTALL_PREFIX
>>>> /Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2
>>>> CACHE PATH "Installation Prefix")'; fi; echo 'set(CMAKE_BUILD_TYPE
>>>> Release CACHE STRING "Debug|Release|RelWithDebInfo|MinSizeRel")') >
>>>> '/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/share/cmake/mxe-conf.cmake'
>>>> touch cmake-toolchain-file.stamp
>>>> [build] blas
>>>> [done] blas
>>>> [build] lapack
>>>> [done] lapack
>>>> [build] arpack
>>>> [done] arpack
>>>> [build] gmp
>>>> [done] gmp
>>>> [build] nettle
>>>> [done] nettle
>>>> [build] zlib
>>>> [done] zlib
>>>> [build] gnutls
>>>> [done] gnutls
>>>> [build] libiconv
>>>> [done] libiconv
>>>> [build] gettext
>>>> [done] gettext
>>>> [build] libidn
>>>> [done] libidn
>>>> [build] libgpg_error
>>>> [done] libgpg_error
>>>> [build] libgcrypt
>>>> [done] libgcrypt
>>>> [build] libssh2
>>>> [done] libssh2
>>>> [build] curl
>>>> [done] curl
>>>> [build] fftw
>>>> [done] fftw
>>>> [build] jpeg
>>>> [done] jpeg
>>>> [build] libpng
>>>> [done] libpng
>>>> [done] pthreads
>>>> [build] freetype
>>>> [done] freetype
>>>> [build] fltk
>>>> [done] fltk
>>>> [build] expat
>>>> [done] expat
>>>> [build] fontconfig
>>>> [done] fontconfig
>>>> [build] glpk
>>>> [done] glpk
>>>> [build] gnuplot
>>>> [done] gnuplot
>>>> [build] bzip2
>>>> [done] bzip2
>>>> [build] jasper
>>>> [done] jasper
>>>> [build] xz
>>>> [done] xz
>>>> [build] tiff
>>>> [done] tiff
>>>> [build] lcms
>>>> [done] lcms
>>>> [build] libxml2
>>>> [done] libxml2
>>>> [build] libtool
>>>> [done] libtool
>>>> [build] graphicsmagick
>>>> [done] graphicsmagick
>>>> [build] hdf5
>>>> [done] hdf5
>>>> [build] pcre
>>>> [done] pcre
>>>> [build] pstoedit
>>>> [done] pstoedit
>>>> [build] qhull
>>>> [done] qhull
>>>> [build] qrupdate
>>>> [done] qrupdate
>>>> [build] openssl
>>>> [done] openssl
>>>> [build] lcms1
>>>> [done] lcms1
>>>> [build] libmng
>>>> [done] libmng
>>>> [build] dbus
>>>> [done] dbus
>>>> [build] qt
>>>> [done] qt
>>>> [build] qscintilla
>>>> [done] qscintilla
>>>> [build] ncurses
>>>> [done] ncurses
>>>> [build] readline
>>>> [done] readline
>>>> [build] suitesparse
>>>> [done] suitesparse
>>>> [build] texinfo
>>>> [done] texinfo
>>>> [build] octave
>>>>
>>>> Failed to build package octave!
>>>> ------------------------------------------------------------
>>>> collect2: ld returned 1 exit status
>>>> make[5]: *** [dldfcn/__magick_read__.la] Error 1
>>>> make[4]: *** [install] Error 2
>>>> make[3]: *** [install-recursive] Error 1
>>>> make[2]: *** [install] Error 2
>>>> make[1]: *** [build-only-octave] Error 2
>>>> real 36m42.443s
>>>> user 26m19.358s
>>>> sys 2m45.182s
>>>> ------------------------------------------------------------
>>>> [log]
>>>> /Users/bpabbott/Development/mercurial/mxe-octave-anirudha/log/octave
>>>>
>>>>
>>>> The log is attached.
>>>>
>>>> Ben
>>>>
>>>> <octave.log>
>>>
>>> I noticed that the GraphicsMagick's libraries built using MXE are all
>>> static. My Macports build includes static libraries. Is that where the
>>> problem lies?
>>>
>>> GraphicsMagick won't compile as shared library. A separate Makefile has
>>> been provided to build shared libraries on UNIX platforms. It didn't work
>>> for me. I have used --build=i386 which necessarily compiles the package as
>>> static. It works fine for me.
>>>
>>> One difference I see in your logs while comparing with mine is that you
>>> have X included in your build. I don't think that will be required on
>>> Mountain Lion. AFAIK Octave requires an X Server on Snow Leopard only. Can
>>> you try building octave with --without-x option? You need to make the
>>> change in src/octave.mk specific to Darwin system. I don't have access to
>>> my Mac, so I can't help you right you.
>>>
>>> Also, if you see the src/graphicsmagick.mk file you will find that it is
>>> compiled without X (--without-x), whereas your build is looking for X11
>>> libraries.
>>>
>>> I am not sure if --without-x will be recognized while building Octave. You
>>> can try two things here: Either uninstall X from your Macports directory,
>>> or compile GraphicsMagick with X (other packages in which X has been
>>> disabled might also need this change).
>>>
>>> - Anirudha
>>
>> I modified octave.mk and added "--without-x" to configure. Unfortunately, I
>> get the same error.
>>
>> Did you try uninstalling X from MacPorts? Make sure the X11 CPPFLAGS and
>> LDFLAGS do not get included while building Octave.
>>
>> - Anirudha
>
> Unintalling X isn't an option for me. However, I did verify that Octave's
> configure script correctly interpreted "--without-x".
>
> Octave is now configured for x86_64-apple-darwin11.4.2
>
> Source directory:
> /Users/bpabbott/Development/mercurial/mxe-octave-anirudha/tmp-octave/octave-3.7.5
> Installation prefix:
> /Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2
> C compiler: gcc -Wall -W -Wshadow -Wformat
> -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings
> -Wcast-align -Wcast-qual -g -O2 -D_THREAD_SAFE -pthread
> C++ compiler: g++
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include
>
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include/freetype2
>
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include
>
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include
> -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith
> -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -D_THREAD_SAFE -pthread
> Fortran compiler: /opt/local/bin/gfortran-mp-4.7 -ff2c -O
> Fortran libraries:
> -L/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.3
> -L/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.3/../../..
> -L/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/lib
> -lgfortran -lquadmath -lm
> Lex libraries:
> LIBS: -lm
>
> AMD CPPFLAGS:
> AMD LDFLAGS:
> AMD libraries: -lamd
> ARPACK CPPFLAGS:
> ARPACK LDFLAGS:
> ARPACK libraries:
> BLAS libraries: -framework vecLib
> 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
> 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_threads -lfftw3
> FFTW3F CPPFLAGS:
> FFTW3F LDFLAGS:
> FFTW3F libraries: -lfftw3f_threads -lfftw3f
> fontconfig CFLAGS:
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include
>
> fontconfig libraries:
> -L/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/lib
> -lfontconfig
> FreeType2 CFLAGS:
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include/freetype2
>
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include
>
> FreeType2 libraries:
> -L/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/lib
> -lfreetype
> GLPK CPPFLAGS:
> GLPK LDFLAGS:
> GLPK libraries: -lglpk
> graphics CFLAGS:
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
> graphics libraries:
> -L/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/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:
> LLVM CPPFLAGS:
> LLVM LDFLAGS:
> LLVM libraries:
> Magick++ CPPFLAGS:
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include/GraphicsMagick
>
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include/libxml2
>
> -I/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/include
>
> Magick++ LDFLAGS:
> -L/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/lib
>
> Magick++ libraries: -lGraphicsMagick++ -lGraphicsMagick
> OPENGL libraries:
> -L/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/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:
> Qt LDFLAGS:
> Qt libraries:
> READLINE libraries: -lreadline
> REGEX libraries:
> -L/Users/bpabbott/Development/mercurial/mxe-octave-anirudha/usr/x86_64-apple-darwin11.4.2/lib
> -lpcre
> TERM libraries: -lncurses
> UMFPACK CPPFLAGS:
> UMFPACK LDFLAGS:
> UMFPACK libraries: -lumfpack
> X11 include flags:
> X11 libraries:
> Z CPPFLAGS:
> Z LDFLAGS:
> Z libraries: -lz
>
> Default pager: less
> gnuplot: gnuplot
>
> Build Octave GUI: no
> JIT compiler for loops: no
> Build Java interface: yes
> Do internal array bounds checking: no
> Use octave_allocator: no
> Build static libraries: no
> Build shared libraries: yes
> Dynamic Linking: yes (dlopen)
> Include support for GNU readline: yes
> 64-bit array dims and indexing: no
>
> configure: WARNING: ARPACK library found, but does not seem to work properly
> -- disabling eigs function
> configure:
> configure: NOTE: Libraries or auxiliary programs may be skipped if they are
> configure: NOTE: not found OR if they are missing required features on your
> configure: NOTE: system.
>
> Ben
I also tried building GraphicsMagick without the "---without-x" configure
option, and encountered the same error as before.
Ben
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, (continued)
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Ben Abbott, 2013/09/23
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Anirudha Bose, 2013/09/23
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Anirudha Bose, 2013/09/24
- Message not available
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Ben Abbott, 2013/09/24
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Ben Abbott, 2013/09/24
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Anirudha Bose, 2013/09/24
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Anirudha Bose, 2013/09/24
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Ben Abbott, 2013/09/24
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Anirudha Bose, 2013/09/25
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Ben Abbott, 2013/09/25
- Re: MXE Octave: "... has no symbols" warning under Mac OS X,
Ben Abbott <=
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Ben Abbott, 2013/09/24
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, John W. Eaton, 2013/09/23
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Anirudha Bose, 2013/09/23
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, John W. Eaton, 2013/09/23
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Anirudha Bose, 2013/09/23
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Anirudha Bose, 2013/09/23
- Re: MXE Octave: "... has no symbols" warning under Mac OS X, Michael Goffioul, 2013/09/23
Re: MXE Octave: "... has no symbols" warning under Mac OS X, Michael Goffioul, 2013/09/10