[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mountain Lion build
From: |
Ben Abbott |
Subject: |
Re: Mountain Lion build |
Date: |
Fri, 21 Sep 2012 17:58:37 -0400 |
On Sep 21, 2012, at 5:46 PM, Robinson, Melvin D wrote:
> Hello,
>
> I get errors building Octave from sources on Mountain Lion. The compilation
> ultimately craters with this error:
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> make[3]: *** [liboctinterp.la] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> Earlier in the build I see the following error:
>
> Undefined symbols for architecture x86_64:
> "std::_List_node_base::_M_transfer(std::_List_node_base*,
> std::_List_node_base*)", referenced from:
> std::list<std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >, std::allocator<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > >
> >::_M_transfer(std::_List_iterator<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > >,
> std::_List_iterator<std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > >, std::_List_iterator<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > >) in
> liboctave-value.a(octave_value_liboctave_value_la-ov-class.o)
>
> I don't really know what the problem could be.
> g++ -v gives:
> butterfly:octave melrobin$ g++ -v
> Using built-in specs.
> COLLECT_GCC=g++
> COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin12/4.5.4/lto-wrapper
> Target: x86_64-apple-darwin12
> Configured with: ../gcc-4.5.4/configure --prefix=/opt/local
> --build=x86_64-apple-darwin12
> --enable-languages=c,c++,objc,obj-c++,fortran,java
> --libdir=/opt/local/lib/gcc45 --includedir=/opt/local/include/gcc45
> --infodir=/opt/local/share/info --mandir=/opt/local/share/man
> --datarootdir=/opt/local/share/gcc-4.5 --with-local-prefix=/opt/local
> --with-libiconv-prefix=/opt/local --with-system-zlib --disable-nls
> --program-suffix=-mp-4.5 --with-gxx-include-dir=/opt/local/include/gcc45/c++/
> --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local
> --with-ppl=/opt/local --enable-stage1-checking --disable-multilib
> --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld
> --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
> --enable-lto --with-pkgversion='MacPorts gcc45 4.5.4_5'
> Thread model: posix
> gcc version 4.5.4 (MacPorts gcc45 4.5.4_5)
>
> Any ideas? The error seems to come from standard C++ containers.
Please tell us what sources you are attempting to building (what version) and
what options you specified when running configure.
I don't know if any one has built Octave on Mountain Lion yet. If you are able
to install octave-devel using MacPorts you might take a look at the port file
for some hints as to what the maintainer has done to enable it to build.
Ben