Hi All,
I need a bit of help please. I have an amd64 system running 12.1-RELEASE-p10 that I am trying to create an embedded arm image using the release(7) mechanism rather than crochet.
I am getting a compile error when attempting to compile the arm image on this amd64 box when following the instructions in release(7).
If I use the following commands from the manual, then it generates an amd64 set of images all OK:
But if I attempt the following commands:
that results in the following core dump at the package install stage:
If I manually run the command
Can someone advise what magic sauce is needed or the important bit that I am missing in my approach please?
Thank you,
James
I need a bit of help please. I have an amd64 system running 12.1-RELEASE-p10 that I am trying to create an embedded arm image using the release(7) mechanism rather than crochet.
I am getting a compile error when attempting to compile the arm image on this amd64 box when following the instructions in release(7).
If I use the following commands from the manual, then it generates an amd64 set of images all OK:
Code:
cd /usr
svn co svn://svn.freebsd.org/base/releng/12.2 src
cd src
make buildworld buildkernel
cd release
make obj
make release
make install DESTDIR=/var/freebsd-snapshot
But if I attempt the following commands:
Code:
cd /usr
svn co svn://svn.freebsd.org/base/releng/12.2 src
cd src
make buildworld buildkernel
cd release
make obj
cd /usr/src/release
sh release.sh -c arm/RPI-B.conf
that results in the following core dump at the package install stage:
Code:
...
--- installconfig_subdir_lib/clang/libclang ---
===> lib/clang/libclang (installconfig)
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
===> Deinstalling for u-boot-rpi3
/bin/sh: /usr/local/sbin/pkg-static: not found
===> u-boot-rpi3 not installed, skipping
===> License GPLv2 accepted by the user
===> u-boot-rpi3-2020.10 depends on file: /usr/local/sbin/pkg - not found
===> License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by pkg-1.15.10 for building
===> Extracting for pkg-1.15.10
===> License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by pkg-1.15.10 for building
=> SHA256 Checksum mismatch for freebsd-pkg-1.15.10_GH0.tar.gz.
===> Refetch for 1 more times files: freebsd-pkg-1.15.10_GH0.tar.gz
===> License BSD2CLAUSE accepted by the user
=> freebsd-pkg-1.15.10_GH0.tar.gz doesn't seem to exist in /tmp/distfiles/.
=> Attempting to fetch https://codeload.github.com/freebsd/pkg/tar.gz/1.15.10?dummy=/freebsd-pkg-1.15.10_GH0.tar.gz
fetch: https://codeload.github.com/freebsd/pkg/tar.gz/1.15.10?dummy=/freebsd-pkg-1.15.10_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/freebsd/pkg/tar.gz/1.15.10?dummy=/freebsd-pkg-1.15.10_GH0.tar.gz: size of remote file is not known
freebsd-pkg-1.15.10_GH0.tar.gz Bad system call (core dumped)
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/freebsd-pkg-1.15.10_GH0.tar.gz
freebsd-pkg-1.15.10_GH0.tar.gz Bad system call (core dumped)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /tmp/distfiles/ and try again.
*** Error code 1
Stop.
make[3]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1
Stop.
fetch http://distcache.FreeBSD.org/ports-distfiles/freebsd-pkg-1.15.10_GH0.tar.gz
it completes OK and also pkg
version 1.15.10 is installed from ports OK.Can someone advise what magic sauce is needed or the important bit that I am missing in my approach please?
Thank you,
James