Date: Thu, 01 May 2008 09:27:11 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: Chris Maness <chris@chrismaness.com> Cc: freebsd-questions@FreeBSD.org Subject: Re: Kernel Compile Error Message-ID: <44ej8mxihc.fsf@be-well.ilk.org> In-Reply-To: <4817F889.80006@chrismaness.com> (Chris Maness's message of "Tue\, 29 Apr 2008 21\:41\:45 -0700") References: <4817F889.80006@chrismaness.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Chris Maness <chris@chrismaness.com> writes: > I was trying to compile a 7.0 Release and the compile failed. I have > never had a kernel compilation fail before. > > Here is the last of the output: > > 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 -ffreestanding -Werror > /usr/src/sys/kern/kern_descrip.c > /usr/src/sys/kern/kern_descrip.c:211:36: error: macro > "FILEDESC_LOCK_ASSERT" passed 2 arguments, but takes just 1 > /usr/src/sys/kern/kern_descrip.c: In function 'fdused': > /usr/src/sys/kern/kern_descrip.c:211: error: 'FILEDESC_LOCK_ASSERT' > undeclared (first use in this function) > /usr/src/sys/kern/kern_descrip.c:211: error: (Each undeclared > identifier is reported only once > /usr/src/sys/kern/kern_descrip.c:211: error: for each function it > appears in.) > /usr/src/sys/kern/kern_descrip.c:227:36: error: macro > "FILEDESC_LOCK_ASSERT" passed 2 arguments, but takes just 1 > /usr/src/sys/kern/kern_descrip.c: In function 'fdunused': > /usr/src/sys/kern/kern_descrip.c:227: error: 'FILEDESC_LOCK_ASSERT' > undeclared (first use in this function) > cc1: warnings being treated as errors > /usr/src/sys/kern/kern_descrip.c: In function 'kern_fcntl': > /usr/src/sys/kern/kern_descrip.c:383: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c:386: warning: implicit declaration of > function 'FILEDESC_UNLOCK' > /usr/src/sys/kern/kern_descrip.c:386: warning: nested extern > declaration of 'FILEDESC_UNLOCK' > /usr/src/sys/kern/kern_descrip.c:540: warning: implicit declaration of > function 'FILEDESC_LOCK_FAST' > /usr/src/sys/kern/kern_descrip.c:540: warning: nested extern > declaration of 'FILEDESC_LOCK_FAST' > /usr/src/sys/kern/kern_descrip.c:543: warning: implicit declaration of > function 'FILEDESC_UNLOCK_FAST' > /usr/src/sys/kern/kern_descrip.c:543: warning: nested extern > declaration of 'FILEDESC_UNLOCK_FAST' > /usr/src/sys/kern/kern_descrip.c: In function 'do_dup': > /usr/src/sys/kern/kern_descrip.c:631: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c:670: error: 'UF_OPENING' undeclared > (first use in this function) > /usr/src/sys/kern/kern_descrip.c: In function 'kern_close': > /usr/src/sys/kern/kern_descrip.c:994: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c:997: error: 'UF_OPENING' undeclared > (first use in this function) > /usr/src/sys/kern/kern_descrip.c:1202:36: error: macro > "FILEDESC_LOCK_ASSERT" passed 2 arguments, but takes just 1 > /usr/src/sys/kern/kern_descrip.c: In function 'fdgrowtable': > /usr/src/sys/kern/kern_descrip.c:1202: error: 'FILEDESC_LOCK_ASSERT' > undeclared (first use in this function) > /usr/src/sys/kern/kern_descrip.c:1224: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c:1263:36: error: macro > "FILEDESC_LOCK_ASSERT" passed 2 arguments, but takes just 1 > /usr/src/sys/kern/kern_descrip.c: In function 'fdalloc': > /usr/src/sys/kern/kern_descrip.c:1263: error: 'FILEDESC_LOCK_ASSERT' > undeclared (first use in this function) > /usr/src/sys/kern/kern_descrip.c:1313:36: error: macro > "FILEDESC_LOCK_ASSERT" passed 2 arguments, but takes just 1 > /usr/src/sys/kern/kern_descrip.c: In function 'fdavail': > /usr/src/sys/kern/kern_descrip.c:1313: error: 'FILEDESC_LOCK_ASSERT' > undeclared (first use in this function) > /usr/src/sys/kern/kern_descrip.c: In function 'falloc': > /usr/src/sys/kern/kern_descrip.c:1351: warning: implicit declaration > of function 'suser_cred' > /usr/src/sys/kern/kern_descrip.c:1351: warning: nested extern > declaration of 'suser_cred' > /usr/src/sys/kern/kern_descrip.c:1351: error: 'SUSER_RUID' undeclared > (first use in this function) > /usr/src/sys/kern/kern_descrip.c:1376: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c: In function 'fdinit': > /usr/src/sys/kern/kern_descrip.c:1409: error: 'struct filedesc' has no > member named 'fd_mtx' > /usr/src/sys/kern/kern_descrip.c:1409: error: 'FILEDESC_LOCK_DESC' > undeclared (first use in this function) > /usr/src/sys/kern/kern_descrip.c:1411: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c: In function 'fddrop': > /usr/src/sys/kern/kern_descrip.c:1460: error: 'struct filedesc' has no > member named 'fd_mtx' > /usr/src/sys/kern/kern_descrip.c: In function 'fdcopy': > /usr/src/sys/kern/kern_descrip.c:1514: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c:1524: error: 'UF_OPENING' undeclared > (first use in this function) > /usr/src/sys/kern/kern_descrip.c:1535: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c: In function 'fdfree': > /usr/src/sys/kern/kern_descrip.c:1570: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c:1598: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c:1612: error: 'struct filedesc' has no > member named 'fd_mtx' > /usr/src/sys/kern/kern_descrip.c:1622: error: 'struct filedesc' has no > member named 'fd_mtx' > /usr/src/sys/kern/kern_descrip.c:1653: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c: In function 'setugidsafety': > /usr/src/sys/kern/kern_descrip.c:1733: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c:1751: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c: In function 'fdclose': > /usr/src/sys/kern/kern_descrip.c:1761: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c: In function 'fdcloseexec': > /usr/src/sys/kern/kern_descrip.c:1786: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c:1808: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c: In function 'closef': > /usr/src/sys/kern/kern_descrip.c:1904: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c:1921: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c: In function '_fget': > /usr/src/sys/kern/kern_descrip.c:1962: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c: In function 'fgetsock': > /usr/src/sys/kern/kern_descrip.c:2073: warning: implicit declaration > of function 'NET_ASSERT_GIANT' > /usr/src/sys/kern/kern_descrip.c:2073: warning: nested extern > declaration of 'NET_ASSERT_GIANT' > /usr/src/sys/kern/kern_descrip.c: In function 'dupfdopen': > /usr/src/sys/kern/kern_descrip.c:2238: warning: statement with no effect > /usr/src/sys/kern/kern_descrip.c: In function 'filedesc_to_leader_alloc': > /usr/src/sys/kern/kern_descrip.c:2378: warning: statement with no effect > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/GENERIC. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > [root@ns2 /usr/src]# exit > exit That's really weird. Is that an unchanged GENERIC kernel, with an empty make.conf? If so, youseem to have something inconsistent in your sources. How did you install the sources? Can you wipe them clean and try again? -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ej8mxihc.fsf>