From owner-freebsd-questions@FreeBSD.ORG Thu Jul 26 12:08:57 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 80C6F106567D for ; Thu, 26 Jul 2012 12:08:57 +0000 (UTC) (envelope-from venkatduvvuru.ml@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 413A28FC1F for ; Thu, 26 Jul 2012 12:08:57 +0000 (UTC) Received: by obbun3 with SMTP id un3so3362660obb.13 for ; Thu, 26 Jul 2012 05:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OFIhcZND/X44dUo7MOGDtCQrXlvsngBzpxeAd8enC4Y=; b=SFXWqm8ajCq+Fo1AdYpOwuL7iTfNEZCz+zXxij5LuH2ukuO9arNU83yH9i5eNkUeOS FD/16dRBKxxCBWYGExtpJ+NlN7x9QMQHEbCyzCtqeN/sl/m+vUxuKwG8l5mBDLvzTPcD KawTEh2b1sLm18QufWbN0y4CuY12sAXg5HjD+Tri7miTiuLu1o3Ue7BIjsOHY/xjbs2A h/vZiw8Fg0or9L67M5M/elI4qrJcCCqoaxVZ84G57cC+Gq5L1/w1Ei44zNOqXAGHGBw9 UlL4Y8iXsJ5F9RTzw8Yo1r+p/Mz9LfSNeFuvc1lervdQQpnrszPVSdlFl6LwRD8aY8k+ uYUg== MIME-Version: 1.0 Received: by 10.182.85.8 with SMTP id d8mr41301342obz.70.1343304531264; Thu, 26 Jul 2012 05:08:51 -0700 (PDT) Received: by 10.76.8.99 with HTTP; Thu, 26 Jul 2012 05:08:51 -0700 (PDT) In-Reply-To: <501129A9.4050005@my.gd> References: <501129A9.4050005@my.gd> Date: Thu, 26 Jul 2012 17:38:51 +0530 Message-ID: From: Venkat Duvvuru To: Damien Fleuriot Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Freebsd build problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2012 12:08:57 -0000 Hi, Please find my repsonses in line. On Thu, Jul 26, 2012 at 4:57 PM, Damien Fleuriot wrote: > > On 7/26/12 12:48 PM, Venkat Duvvuru wrote: > > Hi, > > I'm unable to compile the kernel code (for that matter any kernel module > > also). The following is the error. > > My guess is that it is trying to compile the code for x86 instead of > amd64 > > as you can a symbolic link create for x86 includes. > > Please suggest the change to be done inorder to compile it for amd64. > > "Uname -a" of the system "FreeBsd 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 > #0: > > Tue Jun 12 02:52:29 UTC 2012 > > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64" > > > > > ==================================================================================================================================================================================== > > -------------------------------------------------------------- > >>>> stage 3.1: making dependencies > > -------------------------------------------------------------- > > cd /usr/obj/usr/src/sys/MYKERNEL; MAKEOBJDIRPREFIX=/usr/obj > > MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= > > GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin > > GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font > > GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac > > _SHLIBDIRPREFIX=/usr/obj/usr/src/tmp VERSION="FreeBSD 9.0-RELEASE-p3 > amd64 > > 900044" INSTALL="sh /usr/src/tools/install.sh" > > > PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin > > NO_CTF=1 make KERNEL=kernel depend -DNO_MODULES_OBJ > > machine -> /usr/src/sys/amd64/include > > x86 -> /usr/src/sys/x86/include > > cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall > > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes > > -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign > > -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option > > -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq > > -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf > > -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal > > -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa > > -I/usr/src/sys/gnu/fs/xfs/FreeBSD > -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support > > -I/usr/src/sys/gnu/fs/xfs -I/usr/src/sys/dev/cxgb > -I/usr/src/sys/dev/cxgbe > > -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h > > -finline-limit=8000 --param inline-unit-growth=100 --param > > large-function-growth=1000 -fno-omit-frame-pointer -mno-sse > -mcmodel=kernel > > -mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables > > -ffreestanding -fstack-protector /usr/src/sys/amd64/amd64/genassym.c > > In file included from ./x86/_align.h:6, > > from ./x86/_align.h:6, > > from ./x86/_align.h:6, > > from ./x86/_align.h:6, > > from ./x86/_align.h:6, > > from ./machine/_align.h:6, > > from ./machine/param.h:46, > > from /usr/src/sys/sys/param.h:115, > > from /usr/src/sys/amd64/amd64/genassym.c:42: > > ./x86/_align.h:6:24: error: #include nested too deeply > > In file included from ./x86/_align.h:6, > > from ./x86/_align.h:6, > > from ./x86/_align.h:6, > > from ./machine/_align.h:6, > > from /usr/src/sys/sys/socket.h:39, > > from /usr/src/sys/amd64/amd64/genassym.c:54: > > ./x86/_align.h:6:24: error: #include nested too deeply > > /usr/src/sys/amd64/amd64/genassym.c:69:25: error: x86/apicreg.h: No such > > file or directory > > /usr/src/sys/amd64/amd64/genassym.c:230: error: invalid use of undefined > > type 'struct LAPIC' > > *** 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. > > > ==================================================================================================================================================================================== > > > > > > The first question that comes to mind is, do you manage to compile a > GENERIC kernel ? > > cd /usr/src > make clean > make buildkernel KERNCONF=GENERIC > ==> Yes, all was well with compiling generic, proprietary kernels before > it stopped working a couple of days back. I had been compiling, installing > kernel on this machine many times. > > The second question that comes to mind is, have you rebuilt the world > prior to trying your kernel compilation ? > > ==> This is failing with an error mentioned below > install: target directory `/usr/obj/usr/src/tmp/legacy/usr/share/tmac' does not exist usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... *** Error code 64 Stop in /usr/src/gnu/usr.bin/groff/tmac. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. > I notice you're on 9.0-RELEASE from june, when did you last update your > sources ? > ==> I'm using 9.0 from quite some time probably from 3 months. > I suspect some environment getting screwed as it is trying to build for x86. I have another machine where the kernel builds properly in that case it is not trying to create a symbolic link for x86 while building. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >