help-octave
[Top][All Lists]
Advanced

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

Re: compiling development sources on mac


From: Ben Abbott
Subject: Re: compiling development sources on mac
Date: Thu, 17 Dec 2009 17:25:06 -0500

On Dec 16, 2009, at 6:11 PM, Rob Mahurin wrote:

> Hi,
> 
> I'm trying to build the octave development sources on OS X 10.5.8,
> using dependencies installed via MacPorts.  I haven't tried to build
> development sources since before gnulib/libtool was added to the process.
> Currently I can get stuck in one of two places.
> 
> (1) trouble with libgnu/string.h
> 
> My refresh-and-compile command is
> 
>       hg pull && 
>       hg update && 
>       LIBTOOLIZE=glibtoolize ./autogen.sh &&  
>       ./configure CC=gcc-mp-4.3 CXX=g++-mp-4.3 F77=gfortran-mp-4.3 
> LDFLAGS=-L/opt/local/lib && 
>       nice make -j4 
> 
> The compile fails with
> 
>       libtool: compile:  g++-mp-4.3 -DHAVE_CONFIG_H -I. -I.. 
> -I/opt/local/include -I../libgnu -I../libcruft/misc -I../liboctave 
> -I../liboctave -I. -I. -I/opt/local/include -g -O2 -DHAVE_CONFIG_H -mieee-fp 
> -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include 
> -Wall -W -Wshadow -Wold-style-cast -Wformat -g -O2 -D_THREAD_SAFE -g -O2 -MT 
> liboctinterp_la-lex.lo -MD -MP -MF .deps/liboctinterp_la-lex.Tpo -c lex.cc  
> -fno-common -DPIC -o .libs/liboctinterp_la-lex.o
> In file included from lex.cc:20:
>       ../libgnu/string.h:135: error: expected ',' or '...' before '__dest'
>       ../libgnu/string.h:137: error: nonnull argument with out-of-range 
> operand number (argument 1, operand 2)
>       lex.cc:281: warning: use of old-style cast
>       [many more warnings about old-style casts]
>       make[3]: *** [liboctinterp_la-lex.lo] Error 1
>       make[2]: *** [all] Error 2
>       make[1]: *** [all-recursive] Error 1
>       make: *** [all] Error 2

Not that it helps, but I'm seeing the same problem on Mac OS 10.6.2 running gcc 
4.4. I'm using Fink for the dependencies (it looks to me like Rob is using 
MacPorts).

Is anyone having success with gcc 4.3 or above? ... or might this be specific 
to Mac OSX?

Ben



reply via email to

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