help for "elf_load_section: truncated ELF file"

赵建凯 zhaojiankai2558016 at
Sun Aug 1 15:47:04 UTC 2010

Deal All:
        When I am compiling the kernel of FreeBSD-8.1RC2, I meet a problem.
In detail:
>>> stage 2.3: build tools
cd /usr/obj/usr/src/sys/MYKERNEL;
MAKESRCPATH=/usr/src/sys/dev/aic7xxx/aicasm  make SSP_CFLAGS=
-DNO_CPU_CFLAGS -DNO_CTF  -f /usr/src/sys/dev/aic7xxx/aicasm/Makefile
Warning: Object directory not changed from original
yacc -b aicasm_gram  -d -o aicasm_gram.c
yacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c
cc -O2 -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7xxx/aicasm
-std=gnu99  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow
-Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wno-pointer-sign -c
elf_load_section: truncated ELF file
cc: Internal error: Abort trap: 6 (program cc1)
Please submit a full bug report.
See <URL: <>> for
*** 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.

More information about the freebsd-questions mailing list