[Top][All Lists]

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

Re: Octave-Forge: Segmentation Fault

From: Ben Abbott
Subject: Re: Octave-Forge: Segmentation Fault
Date: Fri, 23 Nov 2007 11:22:14 -0500

On Nov 22, 2007, at 3:35 PM, Thomas Treichl wrote:

Ben Abbott schrieb:
There's a thread on sourceforge here I've never encountered a seg-fault using a ppc. Further, I only encounter a seg-fault when I install SuiteSparse *without* libcsparse.a, build Octave-2.9.17, and try to install Octave-Forge-20071014. When I include libcsparse.a in the SuiteSparse install, or remove SuiteSparse entirely, I have no problem ... I've duplicated that effort twice.

Sounds to me being an optimization problem or something like that when building SuiteSparse?! I'm compiling SuiteSparse 3.0.0 since I compile Octave 2.9.12 and use libcsparse.a before I compile Octave. I also apply the patch SuiteSparse-3.0.0.diff before building SuiteSparse without metis (don't know if you have a current SVN of Octave-forge checked out, here is the link)

Modify Line 77 (+F77 = f2c) of that *.diff file into your needs for gfortran and then build another SuiteSparse,

  bash~:$ export CC=gcc
  bash~:$ export CFLAGS="-fno-common -no-cpp-precomp -fexceptions -D_POSIX_C_SOURCE -D__NOEXTENSIONS__ -DNPARTITION"
  bash~:$ make

try to use that created libcsparse.a instead... I don't know which option actually fails for you but you can add one flag by another in F77FLAGS of ./SuiteSparse/UFconfig/ or in CFLAGS above (eg. -O3 -mieee-fp ...) - doesn't Fink already have a SuiteSparse package ready?


The sourceforge link you brought to my attention looks like it will be useful in resolving the problem with Octave and Octave-Forge using Fink.

Unfortunately, I've not been able to get the diff's to apply using 'patch'. Can you tell me what specific syntax is needed? ... hmmm, perhaps I should tell you what I did, and you can tell me what I did wrong ;-)

After placing the SuiteSparse folder and SuiteSparse-3.0.0.diff in the same location, I tried ...

patch <./SuiteSparse-3.0.0.diff 

Which produced the result below

can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
|--- ./SuiteSparse/Makefile     2007-05-08 00:28:44.000000000 +0200
|+++ ./SuiteSparse/Makefile     2007-06-25 22:39:26.000000000 +0200
File to patch: 

Meanwhile 'ls -l ./SuiteSparse/Makefile' returns

-rw-r--r-- 1 bpabbott bpabbott 2644 May  7  2007 ./SuiteSparse/Makefile

If you (or someone else) can relieve me of my ignorance, I'd be very appreciative ;-)


reply via email to

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