tools: Failure while building for arm64 / NanoPI R4S
Getting an error when building the packages (base and kernel work fine). Error message looks like below and occurs for every package:
[20220201072918] ===> License OpenSSL accepted by the user ===> openssl-1.1.1m_1,1 depends on file: /usr/local/sbin/pkg - not found [20220201072918] ===> License BSD2CLAUSE accepted by the user [20220201072918] => freebsd-pkg-1.16.3_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/. [20220201072918] => Attempting to fetch https://codeload.github.com/freebsd/pkg/tar.gz/1.16.3?dummy=/freebsd-pkg-1.16.3_GH0.tar.gz fetch: https://codeload.github.com/freebsd/pkg/tar.gz/1.16.3?dummy=/freebsd-pkg-1.16.3_GH0.tar.gz: size unknown fetch: https://codeload.github.com/freebsd/pkg/tar.gz/1.16.3?dummy=/freebsd-pkg-1.16.3_GH0.tar.gz: size of remote file is not known freebsd-pkg-1.16.3_GH0.tar.gz 3744 kB 4202 kBps 01s [20220201072920] ===> Fetching all distfiles required by pkg-1.16.3_1 for building [20220201072920] ===> Extracting for pkg-1.16.3_1 [20220201072920] ===> License BSD2CLAUSE accepted by the user [20220201072920] ===> Fetching all distfiles required by pkg-1.16.3_1 for building [20220201072920] => SHA256 Checksum OK for freebsd-pkg-1.16.3_GH0.tar.gz. [20220201072920] ===> Patching for pkg-1.16.3_1 [20220201072920] ===> Applying FreeBSD patches for pkg-1.16.3_1 from /usr/ports/ports-mgmt/pkg/files /usr/bin/sed -i.bak -e "s|-llzma|-llzma -lmd|g" /usr/obj/usr/ports/ports-mgmt/pkg/work/pkg-1.16.3/auto.def /usr/obj/usr/ports/ports-mgmt/pkg/work/pkg-1.16.3/src/Makefile.autosetup /usr/obj/usr/ports/ports-mgmt/pkg/work/pkg-1.16.3/tests/Makefile.autosetup [20220201072920] ===> Configuring for pkg-1.16.3_1 No installed jimsh or tclsh, building local bootstrap jimsh0 No working C compiler found. Tried cc and gcc. [20220201072920] ===> Script "configure" failed unexpectedly.
Any clue what might be wrong ?
Building on a clean FreeBSD 13.0 release and building OPNsense stable/22.1
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 33 (20 by maintainers)
@yrzr Glad to hear that it worked out in the end and thank you for the link to the repo 😃 Will definitely have a look at it. I am actually using a modified arm.sh build script and a device config for my ROCKPRO64. If all goes well, I will submit a PR.
UPDATE: With my modified
arm.sh
script and adjustedextra.conf
, the image generation for ROCKPRO64 works. Just need to try out the image on my device later 😃 (The additional output messages are just for debugging)UPDATE 2: Up and running on my ROCKPRO64
Actually, I am still facing the problem in issue 258. Are you building the following stages with the official base package from FreeBSD 13?
Didn’t encounter any issues so far. It’s been almost 24 hours and roughly 25% of the parts are built. Kinda getting impatient as it’s taking ages. If I have time, I will look into the xtools issue and maybe will come up with something.
The issue somehow looks familiar. I recall there being a thread on the forums. What worked out for me was downgrading to pkg version 1.16.3 manually (I guess a fresh FreeBSD 13.0 install downloads 1.17.5 atm). Not all packages could be built though (specifically those ones requiring go). I had to build the latter on my arm device. It’s a little bit of a headache to go back and forth, but it worked out in the end (at least during the 22.1 beta).
Maybe @yrzr has a better solution. It would be very convenient if someone could simply provide the generic arm64 packages (base, kernel etc.) for 22.1. Unfortunately, I don’t have a powerful machine atm and building all ports, plugins, core etc. from scratch took almost 2 days.
EDIT: Here is the thread in the forums https://forum.opnsense.org/index.php?topic=25498.msg124417#msg124417