Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Apr 2021 02:39:43 +0000
From:      "Thomas Mueller" <mueller6722@twc.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: compile freebsd on ubuntu
References:  <1619501943250.72149@ios.ac.cn>

| previous in thread | raw e-mail | index | archive | help
from <wangwei19@ios.ac.cn>:

> 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:

If you download the src tree, or src and xsrc trees, for NetBSD, there are directions of how to cross-compile NetBSD from other (quasi-)Unixes.

NetBSD now uses cvs but has been moving slowly to switch to mercurial (hg) for downloading src, xsrc and pkgsrc trees.

NetBSD has tools and documentation on how to cross-compile NetBSD userland and kernel.

There is a build.sh in the src directory that is recommended instead of using make directly.

FreeBSD has not developed this infrastructure for cross-compiling, though there has been some talk about producing such an infrastructure.

My question would be the other way around, how to cross-compile Linux from FreeBSD or NetBSD.

This would not be a full-fledged Ubuntu or other fancy distro, but more comparable to FreeBSD or NetBSD base system.

Tom




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>