Building on non-FreeBSD Hosts

I am trying to build for purpose of learning new OS development
following the handbook building-on-non-freebsd-hosts
after the running the command
Code:
MAKEOBJDIRPREFIX=/home/kp/freebsd tools/build/make.py --bootstrap-toolchain TARGET=amd64 TARGET_ARCH=amd64 buildworld
i have installed headers for libarchive and libbz2 and even clang (often packaged as libarchive-dev and libbz2-dev)
1698512322279.png

1698512458360.png

I'm getting this error
/home/kp/freebsd/home/kp/freebsd-src/amd64.amd64/tmp/legacy/usr/sbin/ld: cannot find -lprivatezstd: No such file or directory
 
Please, don't post pictures of text. Just copy/paste the information, preferably in a [code]...[/code] block.
 
You may be better off asking this on one of the FreeBSD mailing lists or on freebsd discord or ask the guy who last updated the handbook page for this. Also mention the build host OS, its version and the architecture. Once your problem is solved, don't forget to submit a patch to update this page!

An alternative may be to create a FreeBSD VM on this and build there.
 
Code:
dpkg -l | grep libbz2
ii  libbz2-1.0:amd64                           1.0.8-5build1                                                    amd64        high-quality block-sorting file compressor library - runtime
ii  libbz2-1.0:i386                            1.0.8-5build1                                                    i386         high-quality block-sorting file compressor library - runtime
ii  libbz2-dev:amd64                           1.0.8-5build1                                                    amd64        high-quality block-sorting file compressor library - development
Code:
dpkg -l | grep libarchive
ii  libarchive-cpio-perl                       0.10-1.1                                                         all          module for manipulations of cpio archives
ii  libarchive-dev:amd64                       3.6.0-1ubuntu1                                                   amd64        Multi-format archive and compression library (development files)
ii  libarchive-tools                           3.6.0-1ubuntu1                                                   amd64        FreeBSD implementations of 'tar' and 'cpio' and other archive tools
ii  libarchive-zip-perl                        1.68-1                                                           all          Perl module for manipulation of ZIP archives
ii  libarchive13:amd64                         3.6.0-1ubuntu1                                                   amd64        Multi-format archive and compression library (shared library)
Code:
dpkg -l | grep libzstd   
ii  libzstd-dev:amd64                          1.4.8+dfsg-3build1                                               amd64        fast lossless compression algorithm -- development files
ii  libzstd1:amd64                             1.4.8+dfsg-3build1                                               amd64        fast lossless compression algorithm
ii  libzstd1:i386                              1.4.8+dfsg-3build1                                               i386         fast lossless compression algorithm
Code:
dpkg -l | grep zstd   
ii  libzstd-dev:amd64                          1.4.8+dfsg-3build1                                               amd64        fast lossless compression algorithm -- development files
ii  libzstd1:amd64                             1.4.8+dfsg-3build1                                               amd64        fast lossless compression algorithm
ii  libzstd1:i386                              1.4.8+dfsg-3build1                                               i386         fast lossless compression algorithm
ii  python3-zstd                               1.5.0.2-1build1                                                  amd64        python bindings to Yann Collet ZSTD compression library
ii  zstd                                       1.4.8+dfsg-3build1                                               amd64        fast lossless compression algorithm -- CLI tool

this is done on Linux mint 21.2 (Ubuntu 22.04.2)
 
You may be better off asking this on one of the FreeBSD mailing lists or on freebsd discord or ask the guy who last updated the handbook page for this. Also mention the build host OS, its version and the architecture. Once your problem is solved, don't forget to submit a patch to update this page!

An alternative may be to create a FreeBSD VM on this and build there.
I have asked on discord, it did not worked out . So that why i'm got over here
 
There is a update
I have changed my OS to Debian 12
The privatezstd issue is gone
now there is some issue with all files with src/include/rpcsvc
This is occuring at >>> stage 4.1: building includes

It seems that compiler is forcefully asking to change the code in these .x files everytime it is compiling

Ex:
Code:
ld: error: /home/kp/src/include/rpcsvc/ypxfrd.x:83: unknown directive: enum
>>> enum xfrstat {
>>> ^
Code:
ld: error: /home/kp/src/include/rpcsvc/ypupdate_prot.x:60: unknown directive: program
>>> program YPU_PROG {
>>> ^
Code:
ld: error: /home/kp/src/include/rpcsvc/yp.x:48: unknown directive: enum
>>> enum ypstat {
>>> ^
Code:
ld: error: /home/kp/src/include/rpcsvc/spray.x:50: unknown directive: struct
>>> struct spraytimeval {
>>> ^
 
Back
Top