NetBSD Problem Report #25760

Received: (qmail 21603 invoked by uid 605); 31 May 2004 11:16:40 -0000
Message-Id: <20040531104523.74D784C90@allegory.demon.co.uk>
Date: Mon, 31 May 2004 11:45:23 +0100 (BST)
From: bsd@allegory.demon.co.uk
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: bsd@allegory.demon.co.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: sysutils/toshutils fails to compile
X-Send-Pr-Version: 3.95

>Number:         25760
>Category:       pkg
>Synopsis:       sysutils/toshutils fails to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    riz
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 31 11:17:00 +0000 2004
>Closed-Date:    Sun Apr 24 19:58:11 +0000 2005
>Last-Modified:  Sun Apr 24 19:58:11 +0000 2005
>Originator:     Bob
>Release:        NetBSD 1.6ZL
>Organization:

>Environment:


System: NetBSD tenebres.loc 1.6ZL NetBSD 1.6ZL (TENEBRES) #0: Sat Mar 27 02:04:18 GMT 2004 rob@tenebres.loc:/usr/src/sys/arch/i386/compile/TENEBRES i386
Architecture: i386
Machine: i386
>Description:

    sysutils/toshutils no longer compiles.

>How-To-Repeat:

    Typing make produces the error

	gcc -m486 -Wall -c sci.c
	`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
	sci.c: In function `SciSupportCheck':
	sci.c:91: error: impossible constraint in `asm'
	*** Error code 1

    I thought that changing the Makefile to replace occurrences of
    -m486 with -mcpu=i486 might help.  This doesn't fix the main
    problem however, since the "impossible constraint" error remains.

	cd src; /usr/bin/make all
	gcc -mcpu=i486 -Wall -c sci.c
	sci.c: In function `SciSupportCheck':
	sci.c:91: error: impossible constraint in `asm'
	*** Error code 1

	Stop.
	make: stopped in /usr/pkgsrc/sysutils/toshutils/work/toshutils-991217/src
	*** Error code 1

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->hubertf 
Responsible-Changed-By: recht 
Responsible-Changed-When: Thu Jun 3 22:45:55 UTC 2004 
Responsible-Changed-Why:  
over to maintainer 
From: Jeff Rizzo <riz@netbsd.org>
To: gnats@netbsd.org
Cc: 
Subject: Re: pkg/25760
Date: Thu, 14 Apr 2005 13:08:35 -0700

 This patch, from Kailash Sethuraman via port-i386 and adapted to
 pkgsrc by me, allows sysutils/toshutils to build on NetBSD-2.0/i386.
 Apply in pkgsrc/sysutils/toshutils.


 --- /dev/null	2005-04-14 13:00:29.000000000 -0700
 +++ patches/patch-an	2005-04-14 11:31:18.000000000 -0700
 @@ -0,0 +1,14 @@
 +$NetBSD$
 +--- src/hci.c.orig	2005-04-14 10:44:42.000000000 -0700
 ++++ src/hci.c	2005-04-14 11:10:30.000000000 -0700
 +@@ -115,8 +115,8 @@
 + 		ax = 0x0000;		
 + 	} else {
 + 		asm ("inb $0xb2,%%al\n" \
 +-			:"=ax" (ax), "=bx" (bx), "=cx" (cx), "=dx" (dx) \
 +-			:"ax" (ax), "bx" (bx), "cx" (cx), "dx" (dx) \
 ++			:"=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) \
 ++			:"a" (ax), "b" (bx), "c" (cx), "d" (dx) \
 + 			: "memory" );
 + 	}
 + 	
 --- /dev/null	2005-04-14 13:00:29.000000000 -0700
 +++ patches/patch-ao	2005-04-14 11:31:11.000000000 -0700
 @@ -0,0 +1,43 @@
 +$NetBSD$
 +--- src/sci.c.orig	1999-12-17 05:07:03.000000000 -0800
 ++++ src/sci.c	2005-04-14 11:25:05.000000000 -0700
 +@@ -98,7 +98,7 @@
 + 		"popl %%ecx\n\t" \
 + 		"popl %%ebx\n\t" \
 + 		"popl %%eax\n" \
 +-		:"=dx" (dx), "=ah" (ah) : : "memory" );
 ++		:"=d" (dx), "=a" (ah) : : "memory" );
 + 
 + 	*version = (int) dx;
 + 
 +@@ -149,7 +149,7 @@
 + 		"popl %%ecx\n\t" \
 + 		"popl %%ebx\n\t" \
 + 		"popl %%eax\n" \
 +-		:"=ah" (ah) : : "memory" );
 ++		:"=a" (ah) : : "memory" );
 + 
 + 	return (int) (ah & 0xff);
 + }
 +@@ -173,8 +173,8 @@
 + 		"inb $0xb2,%%al\n\t" \
 + 		"popl %%edi\n\t" \
 + 		"popl %%esi\n" \
 +-		:"=ax" (ax), "=bx" (bx), "=cx" (cx), "=dx" (dx) \
 +-		:"bx" (bx), "cx" (cx) \
 ++		:"=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) \
 ++		:"b" (bx), "c" (cx) \
 + 		: "memory" );
 + 
 + 	reg->attribute = (ax & 0xff);
 +@@ -205,8 +205,8 @@
 + 		"inb $0xb2,%%al\n\t" \
 + 		"popl %%edi\n\t" \
 + 		"popl %%esi\n" \
 +-		:"=ax" (ax) \
 +-		:"bx" (bx), "cx" (cx), "dx" (dx) \
 ++		:"=a" (ax) \
 ++		:"b" (bx), "c" (cx), "d" (dx) \
 + 		: "memory" );
 + 
 + 	reg->attribute = (ax & 0xff);
 ? patches/patch-an
 ? patches/patch-ao
 Index: distinfo
 ===================================================================
 RCS file: /cvsroot/pkgsrc/sysutils/toshutils/distinfo,v
 retrieving revision 1.4
 diff -u -r1.4 distinfo
 --- distinfo	24 Feb 2005 13:40:58 -0000	1.4
 +++ distinfo	14 Apr 2005 20:01:33 -0000
 @@ -16,3 +16,5 @@
  SHA1 (patch-ak) = c9ede3de555ab14c8a0702a80e904547f31da386
  SHA1 (patch-al) = f2a06cf56e11a4ebb95a6d7ebda4b1c15dd0733d
  SHA1 (patch-am) = 43bba59c837c951e0b71c80365cf620ff3e05419
 +SHA1 (patch-an) = 4d682ceb01d89ae676ba2fd1b342a50979c8694e
 +SHA1 (patch-ao) = ce863073a18463643a8c02b1d81efa3e8c31d805

Responsible-Changed-From-To: hubertf->riz
Responsible-Changed-By: riz@netbsd.org
Responsible-Changed-When: Thu, 14 Apr 2005 20:38:25 +0000
Responsible-Changed-Why:
I'll take this.  (hubertf agrees)


From: Jeff Rizzo <riz@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/25760 CVS commit: pkgsrc/sysutils/toshutils
Date: Sat, 23 Apr 2005 20:37:18 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	riz
 Date:		Sat Apr 23 20:37:18 UTC 2005

 Modified Files:
 	pkgsrc/sysutils/toshutils: distinfo
 Added Files:
 	pkgsrc/sysutils/toshutils/patches: patch-an patch-ao

 Log Message:
 Adapt gcc asm constraints to work with gcc > 3.  From a patch posted
 on port-i386 by Kailash Sethuraman, with whitespace fix by me.

 Fixes PR#25760 - Approved by jmcneill.


 To generate a diff of this commit:
 cvs rdiff -r1.4 -r1.5 pkgsrc/sysutils/toshutils/distinfo
 cvs rdiff -r0 -r1.1 pkgsrc/sysutils/toshutils/patches/patch-an \
     pkgsrc/sysutils/toshutils/patches/patch-ao

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: riz@netbsd.org
State-Changed-When: Sat, 23 Apr 2005 20:39:22 +0000
State-Changed-Why:
Awaiting feedback from original submitter that problem is fixed.


From: Bob Kemp <bsd@allegory.demon.co.uk>
To: riz@netbsd.org
Cc: pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/25760
Date: Sun, 24 Apr 2005 11:19:07 +0100

 Hi,
 yes, it compiles fine.  I've tried a few of the functions, eg alarm and fan,
 and they seem to work fine.

 For me tuxtime-conf gives lots of warnings but that's not so important.

 It's fixed.  Thank you!

 Bob

From: Bob Kemp <bsd@allegory.demon.co.uk>
To: riz@netbsd.org
Cc: pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/25760
Date: Sun, 24 Apr 2005 11:19:07 +0100

 Hi,
 yes, it compiles fine.  I've tried a few of the functions, eg alarm and fan,
 and they seem to work fine.

 For me tuxtime-conf gives lots of warnings but that's not so important.

 It's fixed.  Thank you!

 Bob

State-Changed-From-To: feedback->closed
State-Changed-By: riz@netbsd.org
State-Changed-When: Sun, 24 Apr 2005 19:58:11 +0000
State-Changed-Why:
Submitter says the package works for him.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.