I have looked a little deeper in the problem trying to compile specfun.f with the right options, and I got:
% f77 -Wall -fno-second-underscore -fPIC -O3 -funroll-loops -c specfun.f specfun.f: In subroutine `rmn2sp': In file included from specfun.f:0: specfun.f:732: warning: 'gb' might be used uninitialized in this function [address=42fffffc pc=00380318] specfun.f: In subroutine `stvh0': specfun.f:5710: internal compiler error: Segmentation Fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. removing the unroll-loops option gives: % f77 -Wall -fno-second-underscore -fPIC -O3 -c specfun.f specfun.f: In subroutine `rmn2sp': In file included from specfun.f:0: specfun.f:732: warning: 'gb' might be used uninitialized in this function specfun.f: In subroutine `hygfx': specfun.f:5763: warning: 'nm' might be used uninitialized in this function specfun.f: In subroutine `hygfz': specfun.f:6090: warning: 'k' might be used uninitialized in this function specfun.f: In subroutine `chgul': specfun.f:9140: warning: 'r0' might be used uninitialized in this function So I think there is a bug in the g77 compiler installed by fink: % f77 -v Reading specs from /sw/lib/gcc/powerpc-apple-darwin7.2.0/3.4/specs Configured with: ../gcc-3.4-20031015/configure --prefix=/sw --enable-languages=f77 --infodir=/share/info --libexecdir=/lib Thread model: posix gcc version 3.4 20031015 (experimental) Note that compliling the file alone returns an error for the stvh0 subroutine, while the fink install returns one for jelp. Now if I replace line 5687 IF (DABS(R).LT.DABS(S)*1.0D-12) GO TO 15 by ERR=DABS(S)*1.0D-12-DABS(R) IF (ERR.GE.0) GO TO 15 which should be equivalent, the file compiles with the unroll-loops option. Then I reinstalled scipy-py23, suspended the process when it started to compile the FORTRAN files, did the above change and resumed to get the packaged successfully installed. I have done a few tests of the install without noticing any obvious error. I have seen on the scipy web page that there is a test suite. How do I get it? I also see the following on error: Traceback (most recent call last): File "<stdin>", line 1, in ? File "/sw/src/root-scipy-py23-20040208-1/sw/lib/python2.3/site-packages/scipy_base/ppimport.py", line 244, in __getattr__ AttributeError: 'module' object has no attribute 'general_function' Although the file /sw/lib/python2.3/site-packages/scipy_base/ppimport.py exists, /sw/src/root-scipy-py23-20040208-1/.../ppimport.py does not. Is it normal? Last question, how do I report the g77 bug? TIA Dominique d'Humieres ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
