代码make后出现的错误----为什么会出现这个错误,怎么改?

joyce@ubuntu:/mnt/hgfs/Share_With_Ubuntu/clink_test$ make
gcc -g -D_GNU_SOURCE -c collect.c
/tmp/ccrRmuk9.s: Assembler messages:
/tmp/ccrRmuk9.s:4556: Fatal error: can't write collect.o: Illegal seek
as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 assertion fail ../../bfd/elf.c:2522
as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 assertion fail ../../bfd/elf.c:2522
as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 assertion fail ../../bfd/elf.c:2522
as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 assertion fail ../../bfd/elf.c:2522
as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 assertion fail ../../bfd/elf.c:2522
as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 assertion fail ../../bfd/elf.c:2522
as: BFD (GNU Binutils for Ubuntu) 2.21.0.20110327 assertion fail ../../bfd/elf.c:2522
/tmp/ccrRmuk9.s:4556: Fatal error: can't close collect.o: Illegal seek
make: *** [collect.o] Error 1


makefile内容如下:

CC     = gcc
CFLAGS = -g -D_GNU_SOURCE
LFLAGS =
OFILES = collect.o process.o util.o source_db.o
HEADERS = clink.h

FILES = COPYRIGHT Makefile clink.doc clink.h collect.c process.c util.c  source_db.c

%.o: %.c $(HEADERS)
    $(CC) $(CFLAGS) -c $<

clink: $(OFILES)
    $(CC) $(LFLAGS) -o clink $(OFILES) -lm

tar:
    rm -f clink.1.0/*
    cp $(FILES) clink.1.0
    tar -cvf clink.1.0.tar clink.1.0
    tar -czf clink.1.0.tar.gz clink.1.0



注意:makefile中source_db的部分是我自己加的,请小板车指点为什么会出现这个错误

你可能感兴趣的:(linux笔记)