From owner-freebsd-questions@FreeBSD.ORG Fri Jul 27 13:56:41 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 85D31106564A for ; Fri, 27 Jul 2012 13:56:41 +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 46BAF8FC08 for ; Fri, 27 Jul 2012 13:56:41 +0000 (UTC) Received: by obbun3 with SMTP id un3so5591543obb.13 for ; Fri, 27 Jul 2012 06:56:35 -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=38YCiDfPsHeESCUCrebcjOfdTS/CUnkFLl/lhtddMrQ=; b=DsFbNonvBFit0TzCaO7S9Yo3AExBQZZuStRx7bK/I0HoBdrLNSEaOMDwTWOUauaK8q xJII9t7wtGoDp84AmgDVjowfQd243ZIs83tPYN9+pAszN3pCz8bpE0gArvnyf69TLcbP QqLjlEQbP4G+g/CV53VSh8EVN6VEjaEBRqkmF9O7CIBu3cjcmYfwKBT0pEStm0KMHsn0 hEzUBKJy7X6t5hRtiR6OY9tkDCA4SP8LPJ+8LBQjNAv66QR5tkw+XdXGcyHO1jrAf4Wk Ly22jHofPyZJ+jar9paYtFHc6NiuKQLdFdipj1AO5KqFWfhgjcZyq+GKSWJcqezpWE9l 1HNQ== MIME-Version: 1.0 Received: by 10.182.85.8 with SMTP id d8mr3576118obz.70.1343397394951; Fri, 27 Jul 2012 06:56:34 -0700 (PDT) Received: by 10.76.8.99 with HTTP; Fri, 27 Jul 2012 06:56:34 -0700 (PDT) In-Reply-To: <501135C5.3020707@my.gd> References: <501129A9.4050005@my.gd> <501135C5.3020707@my.gd> Date: Fri, 27 Jul 2012 19:26:34 +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: Fri, 27 Jul 2012 13:56:41 -0000 reinstalling the sources fixed the problem. Thanks. /Venkat On Thu, Jul 26, 2012 at 5:49 PM, Damien Fleuriot wrote: > > > On 7/26/12 2:08 PM, Venkat Duvvuru wrote: > > 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. > > > > > > I would suggest that you fully delete your sources and csup them again. > > rm -Rf /usr/src/* /usr/obj/* /var/db/sup/* > > > Then rebuild a world, rebuild GENERIC , and if that works rebuild MYKERNEL. >