From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 22 07:52:49 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAF99106564A for ; Tue, 22 Feb 2011 07:52:49 +0000 (UTC) (envelope-from gnehzuil@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8F8428FC1B for ; Tue, 22 Feb 2011 07:52:49 +0000 (UTC) Received: by pxi20 with SMTP id 20so453136pxi.13 for ; Mon, 21 Feb 2011 23:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=u8GQkinbLBM1lXr57xQ8aMbg7f/tlH/V+cS/S1XDUg8=; b=xrBxVNz2SlCKvEl6bxAnM53t3DT79YKywPed3DQKtC/MCn4QS57mtHyRAb0VVIc2Nz duKCMBrT5gcGvB6SniEUa2/27Bm6qSngr4GrzjS7BKEH+/Okwt7wlpXRtmd4MaFk0NfT JmJc87tVLmxBCl0AYTZ9Hy8mgOwLvMc9f2SyI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=wR9Vq8tH8+hzRvrIH03Y843+M6E2lyy8JVW4jBBPaiJkNMWbByh8ivF9jNzo9QcGex o2l/nt/UmVRFnUY5H72p8ZtO4KXxHT3RgW8RT1I0h50gxYSRRqi+8+C5T4AqPTgKV91q TNY9PmG66n6s9/xHRQmmEABfUTV1lozA/X+Ec= Received: by 10.142.144.2 with SMTP id r2mr1909006wfd.244.1298359843869; Mon, 21 Feb 2011 23:30:43 -0800 (PST) Received: from [192.168.1.157] ([166.111.68.197]) by mx.google.com with ESMTPS id o11sm8852895wfa.0.2011.02.21.23.30.41 (version=SSLv3 cipher=OTHER); Mon, 21 Feb 2011 23:30:43 -0800 (PST) Message-ID: <4D63661D.2090205@gmail.com> Date: Tue, 22 Feb 2011 15:30:37 +0800 From: gnehzuil User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: buildkernel error X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2011 07:52:49 -0000 Hi all, I updated my kernel source code and try to make a new kernel using make buildkernel command. But I got an error as follow: ------------------------ :> hack.c cc -shared -nostdlib hack.c -o hack.So rm -f hack.c MAKE=make sh /usr/src/sys/conf/newvers.sh GENERIC cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float -ffreestanding -fstack-protector -Werror vers.c linking kernel.debug ld:/usr/src/sys/conf/ldscript.i386:66: syntax error *** Error code 1 Stop in /usr/obj/usr/src/sys/MYKERNEL. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. gnehzuil-freebsd# -------------------------- I run a freebsd OS in virtualbox. Best regards, lz