Date: Mon, 8 Mar 1999 15:27:18 +0900 (JST) From: kh@mogami-wire.co.jp To: FreeBSD-gnats-submit@freebsd.org Subject: ports/10481: /usr/ports/cad/spice problem Message-ID: <199903080627.PAA03120@eve.mogami-wire.co.jp>
next in thread | raw e-mail | index | archive | help
>Number: 10481 >Category: ports >Synopsis: /usr/ports/cad/spice fails to solve many actual problems >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 7 22:30:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Kouichi Hirabayashi >Release: FreeBSD 2.2.8-RELEASE i386 >Organization: Mogami Wire & Cable Corp. >Environment: Perhaps FreeBSD-2.2.X and all after release. >Description: Many problem can not be solved because of <floating point exception> error. >How-To-Repeat: With an example circuit (examples/ltra_1.cir) in source distribution, Spice 1 -> source ltra_1.cir Circuit: BJTdriver -- 24inch lossy line -- DiodeCircuit Spice 2 -> tran 0.1ns 60ns 0 0.5ns Error: floating point exception. Spice 2 -> >Fix: *** ORGmain.c Sun Mar 7 09:57:11 1999 --- main.c Sun Mar 7 09:58:36 1999 *************** *** 45,50 **** --- 45,54 ---- #include "patchlev.h" #include "suffix.h" + #ifdef __FreeBSD__ + #include <floatingpoint.h> + #endif + int Patch_Level = PATCHLEVEL; char *ft_rawfile = "rawspice.raw"; *************** *** 305,310 **** --- 309,317 ---- #endif + #ifdef __FreeBSD__ + fpsetmask(fpgetmask() & ~FP_X_INV); + #endif /* MFB tends to jump to 0 on errors. This tends to catch it. */ if (started) { fprintf(cp_err, "main: Internal Error: jump to zero\n"); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903080627.PAA03120>