[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building Octave on Mac OS 10.10 (Yosemite)
From: |
Alexander Hansen |
Subject: |
Re: Building Octave on Mac OS 10.10 (Yosemite) |
Date: |
Sun, 19 Oct 2014 19:06:15 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 10/19/14, 4:59 PM, Ben Abbott wrote:
On Oct 19, 2014, at 7:57 PM, Ben Abbott <address@hidden> wrote:
For any who upgrade to Yosemite (MacOS 10.10), it is necessary to install Xcode
6.1 and the command line tools (i.e. not Xcode 6.0.1). The 6.1 release
includes a fix that allows cmake to be built, cmake is needed to build gl2ps.
I had to download the Xcode 6.1 tools directly from Apple's developers website.
https://developer.apple.com/downloads/index.action#
Ben
I just noticed the command line tools for Xcode 6.1 are beta 3.
Ben
I've had consistent problems building Octave-3.6.4 or 3.8.2 with any 6.x
Xcode Command Line Tools. The error is of the following form ("oct-cxx"
is really clang++ --I'm using wrapper scripts to make maintenance easier
for me-- and we're using libc++ to build all of our C++ libraries
because it's the default on OS X 10.9 and later:
libtool: compile: oct-cxx -DHAVE_CONFIG_H -I. -I.. -I./array
-I./cruft/misc -Inumeric -I./numeric -Ioperators -I./operators
-I./system -I./util -I../libgnu -I../libgnu -I/usr/X11/include
-I/sw/include -Wall -W -Wshadow -Wold-style-cast -Wformat
-Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O3 -MD
-D_THREAD_SAFE -pthread -MT array/array_libarray_la-int32NDArray.lo -MD
-MP -MF array/.deps/array_libarray_la-int32NDArray.Tpo -c
array/int32NDArray.cc -fno-common -DPIC -o
array/.libs/array_libarray_la-int32NDArray.o
In file included from array/int16NDArray.cc:28:
In file included from ./array/int16NDArray.h:26:
In file included from ./array/intNDArray.h:26:
In file included from ./array/MArray.h:28:
In file included from ./array/Array.h:32:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:624:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:1169:21:
error:
call to '__test' is ambiguous
typedef decltype(__test(declval<_Tp>())) type;
My understanding is that Macports has determined that this a clang bug
and has blacklisted the Xcode Command Line Tools version 6 or newer
(optional on 10.9, mandatory on 10.10) to build Octave for this reason.
Is this something which has been addressed in the post-3.8.2 Octave
code? Or is this not triggered on Yosemite? Or would I have to use
libstdc++, in which case I'll blacklist Xcode >= 6 and Octave won't be
available for Yosemite in Fink at all until it gets resolved, since
we're only using libc++.
--
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/