From owner-freebsd-questions Tue Dec 24 00:59:49 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id AAA15717 for questions-outgoing; Tue, 24 Dec 1996 00:59:49 -0800 (PST) Received: from edison.ebicom.net (ttsai@Edison.EbiCom.net [205.218.114.2]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id AAA15710 for ; Tue, 24 Dec 1996 00:59:47 -0800 (PST) Received: (from ttsai@localhost) by edison.ebicom.net From: Tim Tsai Message-Id: <199612240859.CAA04748@edison.ebicom.net> Subject: compiling 2.1.6 with pgcc To: freebsd-questions@freebsd.org Date: Tue, 24 Dec 1996 02:59:41 -0600 (CST) Receipt-To: ttsai@pobox.com Reply-To: ttsai@pobox.com X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk When I tried to compile 2.1.6 kernel with pgcc, I get the following error: ../../i386/clock.c:300: inconsistent operand constraints in an `asm' ../../i386/clock.c:302: inconsistent operand constraints in an `asm' the offending code is: __asm __volatile(".byte 0xf,0x31" : "=A" (last_count)); DELAY(1000000); __asm __volatile(".byte 0xf,0x31" : "=A" (count)); any ideas? I just hard code it to my CPU speed for now. Thanks, Tim