From owner-freebsd-current@FreeBSD.ORG Mon Jul 14 23:43:43 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 5125437B401 for ; Mon, 14 Jul 2003 23:43:43 -0700 (PDT) Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id D21B543FAF for ; Mon, 14 Jul 2003 23:43:41 -0700 (PDT) (envelope-from rehsack@liwing.de) Received: (qmail 80065 invoked from network); 15 Jul 2003 06:43:39 -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:43:39 -0000 Message-ID: <3F13A29B.6050206@liwing.de> Date: Tue, 15 Jul 2003 08:43:39 +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 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: 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:43:43 -0000 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 Stop in /usr/src. The uname -a output is: FreeBSD moby.helpers.liwing.de 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon Jul 14 11:11:54 GMT 2003 root@moby.helpers.liwing.de:/usr/obj/usr/src/sys/MOBY i386 The lines around the location are: ata_enclosure_status: pushl %ebp movl %esp, %ebp pushl %edi pushl %esi pushl %ebx subl $24, %esp movl 8(%ebp), %edi movl $6, -16(%ebp) testb $8, 20(%edi) ds ; je .L2817 movl (%edi), %eax movl $1, 4(%esp) movl %eax, (%esp) call *248(%eax) movl (%edi), %ecx movl $0, %eax movl $128, %edx #APP lock ; cmpxchgl %edx,244(%ecx) ; setz %al ; movzbl %al,%eax ; 1: # atomic_cmpset_int #NO_APP testl %eax, %eax jne .L2830 movl $0, %esi movl $128, %ebx .L2822: The line 7652 is the "#NO_APP". I must blame myself and say, that I don't know where #NO_APP stands for, so I don't have any idea where the error comes from nor how it could be fixed. The error doesn't appear compiling the file using -march=pentium3, where the begin of "ata_enclosure_status" looks like: ata_enclosure_status: pushl %ebp movl %esp, %ebp pushl %edi pushl %esi pushl %ebx subl $24, %esp movl 8(%ebp), %edi movl $6, -16(%ebp) testb $8, 20(%edi) je .L2817 movl (%edi), %eax movl $1, 4(%esp) movl %eax, (%esp) call *248(%eax) movl (%edi), %ecx movl $0, %eax movl $128, %edx #APP lock ; cmpxchgl %edx,244(%ecx) ; setz %al ; movzbl %al,%eax ; 1: # atomic_cmpset_int #NO_APP testl %eax, %eax jne .L2830 movl $0, %esi movl $128, %ebx .p2align 4,,15 .L2822: Does anyone know what's going on here? Regards, Jens