Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Sep 2007 22:03:10 -0700 (PDT)
From:      "Thomas D. Dean" <tomdean@speakeasy.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/116777: The scilab port fails in demos->signal->bode.
Message-ID:  <200710010503.l9153ACc052378@dv6000>
Resent-Message-ID: <200710010510.l915A156043646@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         116777
>Category:       ports
>Synopsis:       The scilab port fails in demos->signal->bode.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 01 05:10:00 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Thomas D. Dean
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD dv6000 6.2-STABLE FreeBSD 6.2-STABLE #2: Sat Sep 15 11:31:41 PDT 2007 root@dv6000.tddhome:/scratch/obj/usr/usr/src/sys/SMP i386


	
>Description:
The scilab port requires the lapack port, but, uses internal lapack routines.
The scilab port builds slamch.f incorrectly, causing failure.  See below.
	
>How-To-Repeat:
However, the scilab port rebuilds slamch.f, in addition to lots (253?)
of other lapack code.  See work/scilab-4.1.1/routines/lapack/*.  Why
does the scilab port rebuild 254 lapack routines?

The scilab port still fails in slamch.  But, this is the scilab port's
fault.  I get some X errors when scilab starts.

There are three parts below, build and install, download, runtime errors.

tomdean


====  build and install ===================
deinstall lapack, blas, scilab
truncate the work tree
# cd ports/math/lapack
# script /scratch/tmp/lapack.install
# make install
# grep slamch.f /scratch/tmp/lapack.install
gfortran42 -O0 -c slamch.f -o slamch.o
gfortran42 -O0 -fpic -c slamch.f -o slamch.o
gfortran42 -O0 -pg -c slamch.f -o slamch.o
# cd ../scilab
# make install
# exit
# grep slamch.f /scratch/tmp/lapack.install
gfortran42 -O0 -c slamch.f -o slamch.o
gfortran42 -O0 -fpic -c slamch.f -o slamch.o
gfortran42 -O0 -pg -c slamch.f -o slamch.o
gfortran42   -O -c slamch.f                  <==== scilab rebuilds slamch.f

==== download problem ================
deinstall scilab, lapack, and, blas.  rm the work directory.
# cvsup ports-supfile
# cd ports/math/lapack
# make fetch
===>  Vulnerabilpity check disabled, database not found
You can override FC and FFLAGS on the command line.
Set ENABLE_TESTING to YES to enable testing and timing.
=> lapack-3.1.1.tgz doesn't seem to exist in /usr/ports/distfiles/lapack.
=> Attempting to fetch from ftp://ftp.netlib.org/lapack/.
fetch: ftp://ftp.netlib.org/lapack/lapack-3.1.1.tgz: Not logged in
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/lapack/.
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/lapack/lapack-3.1.1.tgz: File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/lapack and try again.
*** Error code 1
Stop in /usr/ports/math/lapack.

# ftp ftp://ftp.netlib.org/lapack/lapack-3.1.1.tgz
# ftp://ftp.netlib.org/lapack/manpages-3.1.1.tgz
downloaded the files

=== scilab runtime errors ================
# scilab -debug
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
(gdb) r
Starting program: /usr/local/lib/scilab/bin/scilex 
Scilab : X error trapped - error message follows:
BadWindow (invalid Window parameter)
Scilab : X error trapped - error message follows:
BadWindow (invalid Window parameter)
Scilab : X error trapped - error message follows:
BadWindow (invalid Window parameter)
Scilab : X error trapped - error message follows:
BadWindow (invalid Window parameter)
Scilab : X error trapped - error message follows:
BadWindow (invalid Window parameter)
Scilab : X error trapped - error message follows:
BadWindow (invalid Window parameter)
Scilab : X error trapped - error message follows:
BadWindow (invalid Window parameter)
^C
Program received signal SIGINT, Interrupt.
0x082c9f34 in slamc1_ ()
(gdb) bt
#0  0x082c9f34 in slamc1_ ()
#1  0x082c9779 in slamc2_ ()
#2  0x082c9fbd in slamch_ ()
#3  0x0824ced2 in rpoly_ ()
#4  0x08120fc5 in introots_ ()
#5  0x08121bc1 in polelm_ ()
#6  0x08085a11 in callinterf_ ()
#7  0x080a74dd in scirun_ ()
#8  0x084553cf in VTRun ()
#9  0x08459ade in main_sci ()
#10 0x0845a119 in realmain_ ()
#11 0x08081fba in MAIN__ ()
#12 0x08089b28 in main ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y

		
>Fix:
However, removing lapack from routines/Makefile and copying liblapack.a
to libs/lapack.a fizes the problem.

The correct fix is to use /usr/local/lib/liblapack.a

	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710010503.l9153ACc052378>