无法使用distcc进行编译,但没有它就可以

时间:2010-09-17 10:38:26

标签: c compilation

我正在尝试为usb wifi加密狗编译RaLink驱动程序。没有使用distcc一切都很好,但如果我使用distcc就有错误。 在这里制作日志:

make -C UTIL/
cp -f os/linux/Makefile.6.util /home/tobi/RaLink_driver/UTIL/os/linux/Makefile
make -C /home/tobi/linux/ SUBDIRS=/home/tobi/RaLink_driver/UTIL/os/linux modules
mkdir -p /home/tobi/RaLink_driver/UTIL/os/linux/.tmp_versions
rm -f /home/tobi/RaLink_driver/UTIL/os/linux/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/tobi/RaLink_driver/UTIL/os/linux
  mipsel-linux-gcc -Wp,-MD,/home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.rt_linux.o.d  -nostdinc  -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2  -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -ffreestanding --trap -Wno-uninitialized -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -D__KERNEL__ -I/home/tobi/RaLink_driver/UTIL/include -Wall -O2 -Wundef -Wstrict-prototypes -Wno-trigraphs -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-aliasing -fno-common -fomit-frame-pointer -o -DMODULE -mlong-calls -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(rt_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(rtutil3572sta)" -c -o /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.tmp_rt_linux.o /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/rt_linux.c
cc1: error: /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.tmp_rt_linux.d: No such file or directory
distcc[29414] ERROR: compile (null) on localhost failed
make[8]: *** [/home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/rt_linux.o] Error 1
make[7]: *** [_module_/home/tobi/RaLink_driver/UTIL/os/linux] Error 2

没有distcc日志是相同但没有错误

cc1: error: /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.tmp_rt_linux.d: No such file or directory

任何人都可以说出了什么问题吗?

1 个答案:

答案 0 :(得分:0)

gcc的-Wp,MD不参与辩论。我想你可能想改变这一行:

-Wp,-MD,/home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.rt_linux.o.d

使用-Wp,MF

-Wp,MD -Wp,MF /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.rt_linux.o.d