From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Sep 16 06:00:13 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C1B916A417 for ; Sun, 16 Sep 2007 06:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0990213C46B for ; Sun, 16 Sep 2007 06:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l8G60CHC034703 for ; Sun, 16 Sep 2007 06:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l8G60Cvo034701; Sun, 16 Sep 2007 06:00:12 GMT (envelope-from gnats) Date: Sun, 16 Sep 2007 06:00:12 GMT Message-Id: <200709160600.l8G60Cvo034701@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: "Thomas D. Dean" Cc: Subject: Re: ports/116166: math/scilab: Scilab 4.1.1 exits with corrupt stack. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Thomas D. Dean" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2007 06:00:13 -0000 The following reply was made to PR ports/116166; it has been noted by GNATS. From: "Thomas D. Dean" To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/116166: math/scilab: Scilab 4.1.1 exits with corrupt stack. Date: Sat, 15 Sep 2007 22:57:02 -0700 (PDT) Steve Kargl pointed out the lapack problem. http://www.netlib.org/lapack/faq.html#1.25 1.25) Problems compiling dlamch.f? The routine dlamch.f (and its dependent subroutines dlamc1, dlamc2, dlamc3, dlamc4, dlamc5) MUST be compiled without optimization. If you downloaded the entire lapack distribution this will be taken care of by the LAPACK/SRC/Makefile. However, if you downloaded a specific LAPACK routine plus dependencies, you need to take care that slamch.f (if you downloaded a single precision real or single precision complex routine) or dlamch.f (if you downloaded a double precision real or double precision complex routine) has been included. # cd /usr/ports/math/lapack # make clean # script 200709152133.build # make # exit # grep -n lamc 200709152133.build 18:( cd INSTALL; make; ./testlsame; ./testslamch; ./testdlamch; ./testsecond; ./testdsecnd; cp lsame.f ../BLAS/SRC/; cp lsame.f ../SRC; cp slamch.f ../SRC/; cp dlamch.f ../SRC/; cp second.f ../SRC/; cp dsecnd.f ../SRC/; cp etime_.c ../SRC/ ) 22:gfortran42 -c slamch.f 23:gfortran42 -O -c slamchtst.f 24:gfortran42 -o testslamch slamch.o lsame.o slamchtst.o 25:gfortran42 -c dlamch.f 26:gfortran42 -O -c dlamchtst.f 27:gfortran42 -o testdlamch dlamch.o lsame.o dlamchtst.o 370:gfortran42 -O -c slamch.f 1013:gfortran42 -O -c dlamch.f 1664:gfortran42 -pg -O -o slamch.po -c slamch.f 2307:gfortran42 -pg -O -o dlamch.po -c dlamch.f 2958:gfortran42 -fpic -DPIC -O -o slamch.So -c slamch.f 3601:gfortran42 -fpic -DPIC -O -o dlamch.So -c dlamch.f slamch.f and dlamch.f are compiled three times. One time without optimizaton and two times WITH optimization! tomdean