From owner-freebsd-current@FreeBSD.ORG Mon Jul 14 23:44:24 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04EA337B401 for ; Mon, 14 Jul 2003 23:44:24 -0700 (PDT) Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id D011743F93 for ; Mon, 14 Jul 2003 23:44:22 -0700 (PDT) (envelope-from rehsack@liwing.de) Received: (qmail 80238 invoked from network); 15 Jul 2003 06:44:21 -0000 Received: from stingray.liwing.de (HELO liwing.de) ([213.70.188.164]) (envelope-sender ) by mail.liwing.de (qmail-ldap-1.03) with SMTP for ; 15 Jul 2003 06:44:21 -0000 Message-ID: <3F13A2C5.1070006@liwing.de> Date: Tue, 15 Jul 2003 08:44:21 +0200 From: Jens Rehsack Organization: LiWing IT-Services User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: de-de, de, en-us, en MIME-Version: 1.0 To: FreeBSD-Current List References: <3F13A29B.6050206@liwing.de> In-Reply-To: <3F13A29B.6050206@liwing.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: buildkernel error with -CURRENT on moby with newly gcc 3.3.1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2003 06:44:24 -0000 Jens Rehsack wrote: > Hi, > > I tried to update a machine which will become a webserver in > near future. I received following error in buildkernel: > > [...] > > cc -c -O -pipe -march=pentium4 -Wall \ > -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ > -Wmissing-prototypes -Wpointer-arith -Winline \ > -Wcast-qual-fformat-extensions -std=c99 -nostdinc \ > -I- -I. -I/usr/src/sys -I/usr/src/sys/dev \ > -I/usr/src/sys/contrib/dev/acpica \ > -I/usr/src/sys/contrib/ipfilter \ > -I/usr/src/sys/contrib/dev/ath \ > -I/usr/src/sys/contrib/dev/ath/freebsd -D_KERNEL \ > -include opt_global.h -fno-common \ > -mno-align-long-strings \ > -mpreferred-stack-boundary=2 -ffreestanding \ > /usr/src/sys/dev/ata/ata-all.c > {standard input}: Assembler messages: > {standard input}:7652: Error: invalid character '_' in mnemonic > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/MOBY. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > I made some research (as good as I could) and found out/assumed sth.: 1) #APP and #NO_APP will be placed by cc around inline assembly and forces the assembler to reformat spaces as required to parse code well. 2) in /usr/obj/usr/src/sys/MOBY/ata-all.s (generated by cc -S) are 209 #APP/#NO_APP pairs are used, but only above described one fails. 3) in theory, the error described by me couldn't happen 4) the asm instruction lock ; x ; causes the processor to lock the execution of instruction x. b) lock ; x ; y ; cause the processor to lock x and executes y normal c) "lock ; x ; y ;" could be written as "lock\n\tx\n\t\y\n\t" with same generated binary code 5) if in /usr/src/sys/i386/include/atomic.h the line " movzbl %%al,%0 ; " is changed into " movzbl %%al,%0\n\t" , the ata-all.c is compiled without any warning. Regards, Jens -- L i W W W i Jens Rehsack L W W W L i W W W W i nnn gggg LiWing IT-Services L i W W W W i n n g g LLLL i W W i n n g g Friesenstraße 2 gggg 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91 ggg e-Mail: Fax: +49 - 3 45 - 5 17 05 92 http://www.liwing.de/