failed build with current mercurial sources
Ben Abbott
bpabbott at mac.com
Sat Mar 8 16:38:48 CST 2008
On Mar 8, 2008, at 5:18 PM, Thomas Treichl wrote:
> Ben Abbott schrieb:
>> On Mar 8, 2008, at 5:25 AM, Jaroslav Hajek wrote:
>>> btw. I'm surprised not to see -fPIC amongst your FFLAGS. Is it
>>> unnecessary on Mac?
>> I have a faint recollection regarding a discussion of the
>> parameter, -FPiC, but don't recall the detail. I'll try browsing
>> some old emails and see what I can come up with.
>> Thomas, have you tried to build with the latest sources? ... if I
>> recall correctly your using f2c to build on the Mac correct?
>
> Hi Ben,
>
> I've just finished compiling the latest sources. Yes right, I'm
> building with gcc 4.0.1 and f2c on an IA32 Mac. My 'tests output'
> for the release-3-0-x branch is
>
> Summary:
> PASS 3818
> FAIL 0
>
> and for the default branch the output is
>
> Summary:
> PASS 4070
> FAIL 1
>
> but I can't reproduce the 'panic: Segmentation fault'. Do you have a
> chance to find exactly that part of code in the test script that
> produces the 'panic'?
>
> Thomas
Hi Thomas,
Not yet ... in fact, I don't even know how to do that. Please advise.
In the event, you might spot something, the Fink build is equivalent to
#! /bin/sh
#./autogen.sh
./configure --prefix=/sw 'FLIBS=/sw/lib/gcc4.2/lib/libgfortran.dylib'
'F77=/sw/bin/gfortran' '--infodir=${prefix}/share/info' '--mandir=$
{prefix}/share/man' '--libexecdir=${prefix}/lib' '-enable-shared' '-
enable-dl' '--disable-static' '--without-mpi' '--with-hdf5' '--with-
fftw' '--with-lapack=-Wl,-framework,Accelerate,-dylib_file,/System/
Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/
vecLib.framework/Versions/A/libLAPACK.dylib:/System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/
libLAPACK.dylib' '--with-blas=-Wl,-framework,Accelerate,-dylib_file,/
System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/
vecLib.framework/Versions/A/libBLAS.dylib:/System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/
libBLAS.dylib' 'CFLAGS=-O3' 'LDFLAGS=-L/sw/lib' 'CPPFLAGS=-I/sw/
include' 'CXXFLAGS=-O3' 'FFLAGS=-O3' --cache-file=/dev/null --srcdir=.
make
make check
I tried changing the optimization to -O0, but that was even worse :-
( ... the result is below.
../run-octave --norc --silent --no-history ./fntests.m .
Integrated test scripts:
src/DLD-FUNCTIONS/bsxfun.cc ............................panic: Bus
error -- stopping myself...
I'll try to compile again with debugging enabled (I'll add "-g" to the
*FLAGS).
Ben
More information about the Bug-octave
mailing list