Trying to build 8-stable i386 for the last couple of days gives this error when building the kernel: /usr/local/libexec/ccache/world/cc -c -O -pipe -march=prescott -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include 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 -fstack-protector -Werror vers.c linking kernel.debug ld: kernel.debug: Not enough room for program headers (allocated 5, need 6) ld: final link failed: Bad value *** Error code 1 1 error *** Error code 2 1 error *** Error code 2 1 error Use (or not) of ccache doesn't change the error. The kernel config file is include GENERIC nocpu I486_CPU ident LIGHTNING nooptions INET6 nooptions WITNESS nooptions INVARIANTS nodevice eisa nodevice fdc device ahci #options ATA_CAM ... (followed by a lot of nodevice and nooption entries to disable unneeded stuff from GENERIC).
Jason Hellenthal
2012-Feb-04 18:43 UTC
ld: kernel.debug: Not enough room for program headers
On Sat, Feb 04, 2012 at 10:57:40AM -0700, Warren Block wrote:> Trying to build 8-stable i386 for the last couple of days gives this > error when building the kernel: > > /usr/local/libexec/ccache/world/cc -c -O -pipe -march=prescott -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include 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 -fstack-protector -Werror vers.c > linking kernel.debug > ld: kernel.debug: Not enough room for program headers (allocated 5, need 6) > ld: final link failed: Bad value > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > > > Use (or not) of ccache doesn't change the error. > > The kernel config file is > > include GENERIC > nocpu I486_CPU > ident LIGHTNING > > nooptions INET6 > nooptions WITNESS > nooptions INVARIANTS > > nodevice eisa > > nodevice fdc > > device ahci > #options ATA_CAM > ... > (followed by a lot of nodevice and nooption entries to disable unneeded > stuff from GENERIC).Not sure if this has anything to do with it but (/usr/local/libexec/ccache/world/cc) My last kernel build completed perfectly (...completed on Sat Feb 4 11:18:21 EST 2012) You might have to clean your cache. -- ;s =;
Jason Hellenthal
2012-Feb-04 18:45 UTC
ld: kernel.debug: Not enough room for program headers
On Sat, Feb 04, 2012 at 10:57:40AM -0700, Warren Block wrote:> Trying to build 8-stable i386 for the last couple of days gives this > error when building the kernel: > > /usr/local/libexec/ccache/world/cc -c -O -pipe -march=prescott -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include 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 -fstack-protector -Werror vers.c > linking kernel.debug > ld: kernel.debug: Not enough room for program headers (allocated 5, need 6) > ld: final link failed: Bad value > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > > > Use (or not) of ccache doesn't change the error. > > The kernel config file is > > include GENERIC > nocpu I486_CPU > ident LIGHTNING > > nooptions INET6 > nooptions WITNESS > nooptions INVARIANTS > > nodevice eisa > > nodevice fdc > > device ahci > #options ATA_CAM > ... > (followed by a lot of nodevice and nooption entries to disable unneeded > stuff from GENERIC).Aslso for reference: Path: /usr/src Working Copy Root Path: /usr/src URL: file:///exports/nsvn/stable/8 Repository Root: file:///exports/nsvn Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 230983 Node Kind: directory Schedule: normal Last Changed Author: mav Last Changed Rev: 230983 Last Changed Date: 2012-02-04 10:43:16 -0500 (Sat, 04 Feb 2012) -- ;s =;
Jeremy Chadwick
2012-Feb-04 18:48 UTC
ld: kernel.debug: Not enough room for program headers
On Sat, Feb 04, 2012 at 10:57:40AM -0700, Warren Block wrote:> Trying to build 8-stable i386 for the last couple of days gives this > error when building the kernel: > > /usr/local/libexec/ccache/world/cc -c -O -pipe -march=prescott -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include 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 -fstack-protector -Werror vers.c > linking kernel.debug > ld: kernel.debug: Not enough room for program headers (allocated 5, need 6) > ld: final link failed: Bad value > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 errorThe freebsd-stable mailing list has been filled with tinderbox failures for this exact problem with the LINT kernel, and it appears to be specific to RELENG_8 on i386. http://lists.freebsd.org/pipermail/freebsd-stable/2012-February/thread.html Start from the bottom and search upwards for the string: "[releng_8 tinderbox] failure on i386/i386" Point being: the problem is not you. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |