help for "elf_load_section: truncated ELF file"

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Tue Aug 3 18:54:37 UTC 2010


赵建凯 <zhaojiankai2558016 at gmail.com> writes:

> 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
> /usr/obj/usr/src/sys/MYKERNEL
> yacc -b aicasm_gram  -d -o aicasm_gram.c
> /usr/src/sys/dev/aic7xxx/aicasm/aicasm_gram.y
> yacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c
> /usr/src/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y
> 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
> /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c
> elf_load_section: truncated ELF file
> cc: Internal error: Abort trap: 6 (program cc1)
> Please submit a full bug report.
> See <URL:http://gcc.gnu.org/bugs.html <http://gcc.gnu.org/bugs.html>> for
> instructions.
> *** 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.

Have you done a buildworld first?
Can you build GENERIC?


More information about the freebsd-questions mailing list