From nobody@FreeBSD.ORG  Fri Jun 30 20:34:48 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id ABEDA37BF58; Fri, 30 Jun 2000 20:34:48 -0700 (PDT)
Message-Id: <20000701033448.ABEDA37BF58@hub.freebsd.org>
Date: Fri, 30 Jun 2000 20:34:48 -0700 (PDT)
From: patrick@kessen.yi.org
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: cannot build current kernel (30-june-2000)
X-Send-Pr-Version: www-1.0

>Number:         19615
>Category:       kern
>Synopsis:       cannot build current kernel (30-june-2000)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 30 20:40:01 PDT 2000
>Closed-Date:    Sun Feb 25 03:05:24 PST 2001
>Last-Modified:  Sun Feb 25 03:05:47 PST 2001
>Originator:     Patrick Kessen
>Release:        4.0-20000608-stable
>Organization:
>Environment:
FreeBSD kessen.yi.org 4.0-20000608-STABLE FreeBSD 4.0-20000608-STABLE #0: Tue Jun 27 02:51:03 CEST 2000     admin@gateway.kessen.home:/usr/src/sys/compile/GATEWAY  i386

>Description:
I got the current kernel sourcetree from ftp.freebsd.org (30-june-2000)
and I set-up a configfile. after make depend and copying the /usr/src/sys/crypto dir from an older kerneltree (it was missing in the current one and without it the kernel doesn't compile, see earlier reported prob) I started make.

I get the following error:
cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmis
sing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -a
nsi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL -include
opt_global.h -elf  -mpreferred-stack-boundary=2  ../../i386/i386/bios.c
cc -c -x
assembler-with-cpp -DLOCORE -O -Wall -Wredundant-decls -Wnested-externs -Wst
rict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERN
EL -include opt_global.h -elf  -mpreferred-stack-boundary=2
../../i386/i386/bioscall.s
/tmp/cca13049.s: Assembler messages:
/tmp/cca13049.s:773: Error: operands given don't match any known 386
instruction
/tmp/cca13049.s:838: Error: operands given don't match any known 386
instruction
*** Error code 1

Stop in /usr/src/sys/compile/GATEWAY.

>How-To-Repeat:
get the current kernel sources, copy the crypto/blowfish over from your old /usr/src/sys dir and make a kernel config file and build it.
>Fix:
I copied the src/sys/i386/i386/bioscall.s file from my original srctree to
the current tree.

I did a diff check between the current and the 4.0-20000608-stable one that I now use and the output is:

root@kessen / > diff bioscall.old bioscall.new
26c26
<  * $FreeBSD: src/sys/i386/i386/bioscall.s,v 1.6 1999/08/28 00:43:41 peter
Exp $
---
>  * $FreeBSD: src/sys/i386/i386/bioscall.s,v 1.7 2000/05/22 17:02:53 obrien
Exp $
68c68
<       lcall   _bioscall_vector
---
>       lcall   *_bioscall_vector
133c133
<       lcall   _bioscall_vector        /* 16-bit call */
---
>       lcall   *_bioscall_vector       /* 16-bit call */

hmm. I don't see a problem, maybe I used diff wrongly but this solves the
problem anyway.



>Release-Note:
>Audit-Trail:

From: Johan Karlsson <k@numeri.campus.luth.se>
To: freebsd-gnats-submit@FreeBSD.org
Cc: patrick@kessen.yi.org
Subject: Re: kern/19615: cannot build current kernel (30-june-2000)
Date: Thu, 03 Aug 2000 16:53:47 +0200

 Hi Patrick
 
 I belive that the problems you have are due to src/sys tree out of sync.
 
 Even thou you say in the subject that it is current I belive you use 
 stable-src.
 
 Yes,
 sys/crypto seems to be missing in FreeBSD-Stable src on ftp.freebsd.org
 and this needs to be fixed.
 
 You mention that you copied your old sys/crypto into place which will
 make that part out of sync with the rest.
 
 Please remove src/sys and see the handbook about obtaining FreeBSD
 http://www.FreeBSD.org/handbook/mirrors.html
 
 I recommend using CVSup to fetch your src.
 This works greate for me and I get sys/crypto as I should.
 
 I think that the other PR you submitted is also a  
 problem that comes from this out-of-sync.
 
 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19616
 
 Please try to get new src and report back if it works or not.
 
 Thanks 
 Johan K
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: johan 
State-Changed-When: Thu Aug 24 01:41:55 PDT 2000 
State-Changed-Why:  
Have you been able to solve this problem? 


http://www.freebsd.org/cgi/query-pr.cgi?pr=19615 
State-Changed-From-To: feedback->closed 
State-Changed-By: johan 
State-Changed-When: Sun Feb 25 03:05:24 PST 2001 
State-Changed-Why:  
Feedback timed-out. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19615 
>Unformatted:
