help for "elf_load_section: truncated ELF file"

赵建凯 zhaojiankai2558016 at gmail.com
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
/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.


More information about the freebsd-questions mailing list