Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2012 19:26:34 +0530
From:      Venkat Duvvuru <venkatduvvuru.ml@gmail.com>
To:        Damien Fleuriot <ml@my.gd>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Freebsd build problem
Message-ID:  <CAGdae7Y0CsenaKES2+2uG73ucOdR4DemaGpgSCZ9AtA8Uf+mqw@mail.gmail.com>
In-Reply-To: <501135C5.3020707@my.gd>
References:  <CAGdae7bzi4WH7qqX=CvphBAS0nFzGL9oiwzWdc59g0FDXtCNwQ@mail.gmail.com> <501129A9.4050005@my.gd> <CAGdae7ZJDhc6LaG20Zmz3ELO9mqmAH+e+J87mTsMsyKHxmLi+w@mail.gmail.com> <501135C5.3020707@my.gd>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
reinstalling the sources fixed the problem. Thanks.

/Venkat

On Thu, Jul 26, 2012 at 5:49 PM, Damien Fleuriot <ml@my.gd> 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 <ml@my.gd
>  > <mailto:ml@my.gd>> 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.
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAGdae7Y0CsenaKES2+2uG73ucOdR4DemaGpgSCZ9AtA8Uf+mqw>