From owner-freebsd-questions@FreeBSD.ORG Thu Jul 26 11:27: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 1DF7F106564A for ; Thu, 26 Jul 2012 11:27:41 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 978DA8FC08 for ; Thu, 26 Jul 2012 11:27:40 +0000 (UTC) Received: by eaa11 with SMTP id 11so205059eaa.13 for ; Thu, 26 Jul 2012 04:27:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=8RjpMr2mBRh1qudw6TZPyM5cNs3reeqCa4dzuIC8rmI=; b=b80dyLTFTrA0Ndb9erJb972UPLjN0xR0AwkaeW9qxPb4JBzAMA8SAkxnpkApPC6LAx xlRJ2bx8XDGPkl0BjbToHCtddDxBbuolnKQTTQPacC608iJOqbAZLeAub4x/H8WL5NF7 22LJ6Kc5JVf+qtazCIL8TQqGedKG4KOX15nXv6RkIk7bA5tE2PqFagi+ImfI8S4oRrmu t80F7yxaaoaUMyNlz1IEH/O9X1frvvJmkPxCCNQ7cDetfoDwNGTNNk2cybdWR0Js8VTJ bPk66z1bw9Gt0kDH8PBK28CgAV+ne5EinpNz+ASQ/XBi1GaO9n466XCo3yl8p8NUSrZy u3lw== Received: by 10.14.5.67 with SMTP id 43mr819626eek.15.1343302059110; Thu, 26 Jul 2012 04:27:39 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id i46sm7898391eem.0.2012.07.26.04.27.37 (version=SSLv3 cipher=OTHER); Thu, 26 Jul 2012 04:27:38 -0700 (PDT) Message-ID: <501129A9.4050005@my.gd> Date: Thu, 26 Jul 2012 13:27:37 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnJMaD5U4IA7mVoYle46FE+nH39+yRhhragLSqXs8a1h6huqC5cjMwGQX3NT8M/sQNPJFqM 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 11:27:41 -0000 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 The second question that comes to mind is, have you rebuilt the world prior to trying your kernel compilation ? I notice you're on 9.0-RELEASE from june, when did you last update your sources ?