Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Feb 2012 10:57:40 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        freebsd-stable@freebsd.org
Subject:   ld: kernel.debug: Not enough room for program headers
Message-ID:  <alpine.BSF.2.00.1202041035400.59919@wonkity.com>

next in thread | raw e-mail | index | archive | help
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).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1202041035400.59919>