Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Dec 2001 12:36:00 -0800
From:      Wes Santee <wes@bogon.net>
To:        freebsd-stable@freebsd.org
Subject:   Kernel compile error for last few days
Message-ID:  <4.3.2.7.2.20011202122254.00bd4c90@mail.bogon.net>

next in thread | raw e-mail | index | archive | help
Greetings all.  I've been trying to build a -STABLE kernel for the past few 
days, and have been running into the same compile error.  cvsup's aren't 
appearing to fix the problem, but I haven't seen anyone else post with this 
error, so I'm guessing the problem is me (bad cvsup'd file is my 
guess).  However, I don't really know where to look for the problem.

Here's what I'm doing (running a FreeBSD 4.4-STABLE system from a few weeks 
ago):

1)  cvsup cvs-supfile (I get the whole 'src' cvs tree)
2)  newfs my /usr/src and /usr/obj partitions
3)  checkout the RELENG_4 branch
4)  make buildworld
5)  make installworld
6)  make KERNCONF=MYCONF buildkernel

Everything before 6 works just fine with no errors.  Step 6 gives me this 
(snipped for space considerations):

===> wi
[...]
cc -c -pipe  -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I/usr/src/sys 
-I/usr/src/sys/../include -I/usr/src/sys/contrib/ipfilter  -D_KERNEL 
-include opt_global.h -elf  -mpreferred-stack-boundary=2 
-fomit-frame-pointer /usr/src/sys/i386/i386/atomic.c
In file included from /usr/src/sys/i386/i386/atomic.c:47:
machine/atomic.h: In function `atomic_set_char':
machine/atomic.h:106: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_clear_char':
machine/atomic.h:107: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_add_char':
machine/atomic.h:108: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_subtract_char':
machine/atomic.h:109: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_set_short':
machine/atomic.h:111: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_clear_short':
machine/atomic.h:112: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_add_short':
machine/atomic.h:113: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_subtract_short':
machine/atomic.h:114: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_set_int':
machine/atomic.h:116: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_clear_int':
machine/atomic.h:117: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_add_int':
machine/atomic.h:118: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_subtract_int':
machine/atomic.h:119: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_set_long':
machine/atomic.h:121: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_clear_long':
machine/atomic.h:122: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_add_long':
machine/atomic.h:123: inconsistent operand constraints in an `asm'
machine/atomic.h: In function `atomic_subtract_long':
machine/atomic.h:124: inconsistent operand constraints in an `asm'
*** Error code 1

Stop in /usr/obj/usr/src/sys/LISTER.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

I've tried replacing atomic.h in the cvs tree, but no go.  I've a feeling 
that something more fundamental is wrong with my build.  Anyone have any 
ideas?  I did a quick search on the stable mailing list for this problem, 
but I didn't turn anything up.

Cheers,
-Wes Santee
wes@bogon.net


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.2.20011202122254.00bd4c90>