王伟
2021-04-27 05:39:03 UTC
Dear friend:
I am compiling the freebsd kernal on ubuntu with this command :
sudo bmake -j1 buildworld KERNCONF=MODEDKERNEL COMPILER_TYPE=gcc TARGET=amd64 TARGET_ARCH=amd64
beacuse make cannot work so i use the bmake but it take the error that:
rpcgen: execvp cpp: No such file or directory *** [key_prot.h] Error code 1
how can i fix this error
i download the system code from the github, and compile it on the workpalce.
the full log is that:
install -U -T package=utilities,dev -C -o root -g wheel -m 444 /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/ftp.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/inet.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/nameser.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/nameser_compat.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/tftp.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/telnet.h /usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/include/arpa/ ===> include/protocols (includes) install -U -T package=utilities,dev -C -o root -g wheel -m 444 /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/dumprestore.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/routed.h /home/lyw
/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/rwhod.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/talkd.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/timed.h /usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/include/protocols/ ===> include/rpcsvc (includes) RPCGEN_CPP=cpp\ --sysroot=/usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp\ -B/usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/bin rpcgen -C -h -DWANT_NFS3 /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc/key_prot.x -o key_prot.h rpcgen: execvp cpp: No such file or directory *** [key_prot.h] Error code 1
bmake[4]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc 1 error
bmake[4]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc *** [includes_subdir_include/rpcsvc] Error code 2
bmake[3]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include 1 error
bmake[3]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include *** [includes_subdir_include] Error code 2
bmake[2]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error
bmake[2]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 *** [_includes] Error code 2
bmake[1]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error
bmake[1]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 *** [buildworld] Error code 2
bmake: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error
bmake: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0?
I am compiling the freebsd kernal on ubuntu with this command :
sudo bmake -j1 buildworld KERNCONF=MODEDKERNEL COMPILER_TYPE=gcc TARGET=amd64 TARGET_ARCH=amd64
beacuse make cannot work so i use the bmake but it take the error that:
rpcgen: execvp cpp: No such file or directory *** [key_prot.h] Error code 1
how can i fix this error
i download the system code from the github, and compile it on the workpalce.
the full log is that:
install -U -T package=utilities,dev -C -o root -g wheel -m 444 /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/ftp.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/inet.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/nameser.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/nameser_compat.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/tftp.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/telnet.h /usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/include/arpa/ ===> include/protocols (includes) install -U -T package=utilities,dev -C -o root -g wheel -m 444 /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/dumprestore.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/routed.h /home/lyw
/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/rwhod.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/talkd.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/timed.h /usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/include/protocols/ ===> include/rpcsvc (includes) RPCGEN_CPP=cpp\ --sysroot=/usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp\ -B/usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/bin rpcgen -C -h -DWANT_NFS3 /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc/key_prot.x -o key_prot.h rpcgen: execvp cpp: No such file or directory *** [key_prot.h] Error code 1
bmake[4]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc 1 error
bmake[4]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc *** [includes_subdir_include/rpcsvc] Error code 2
bmake[3]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include 1 error
bmake[3]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include *** [includes_subdir_include] Error code 2
bmake[2]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error
bmake[2]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 *** [_includes] Error code 2
bmake[1]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error
bmake[1]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 *** [buildworld] Error code 2
bmake: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error
bmake: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0?