I’m currently creating a full omnia build environment (on x86-64). With the goal of recreating the official medkit images, building additional packages like docker and custom patched kernel.
I’ve managed to :
- (almost) fully compile, sign & package the whole turris-os using the turris-build repo (v5.1.6)
- generate_lists for updater-ng
- create local repository (for updater-ng)
- generate_medkit from local repo (that is override the default nic.cz repo) (don’t know if image actually works though)
- compile additional packages
- compile modified packages (apply patches)
However i’m having a hard time with the following failing packages:
not in TOS opkg repo, but causing build to fail : (so not ok?)
=> fixed this one by renaming the Makefile so it doesn’t get picked up…
ERROR: package/devel/perf failed to build.
# Makefile.config:313: *** No gnu/libc-version.h found, please install glibc-dev[el]. Stop.
in TOS opkg repo : (so not ok)
ERROR: package/feeds/packages/ulogd failed to build.
# cp: cannot stat 'build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/ulogd-2.0.7/ipkg-install/usr/lib/ulogd/ulogd_output_MYSQL.so': No such file or directory
ERROR: package/feeds/packages/apr-util failed to build.
# Package libaprutil-dbd-mysql is missing dependencies for the following libraries: ibcrypto.so.1.1 libmariadb.so.3 libssl.so.1.1 libz.so.1
ERROR: package/feeds/telephony/gsmlib failed to build.
# Makefile:206: *** missing separator. Stop.
ERROR: package/feeds/telephony/freeswitch-stable-mod-bcg729 failed to build.
# mod_bcg729.c:30:10: fatal error: switch.h: No such file or directory
not in TOS opkg repo : (so probably ok)
ERROR: package/feeds/packages/botan failed to build.
# Could not figure out what compiler type 'staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-7.5.0_musl_eabi/bin/ccache_cxx' is, use --cc to set
ERROR: package/feeds/packages/crtmpserver failed to build.
# staging_dir/host/bin/ccache: invalid option -- 'O'
ERROR: package/feeds/packages/ola failed to build.
# configure: error: Missing resolv, please install it
ERROR: package/feeds/packages/newt failed to build.
# undefined reference to `libintl_gettext'
ERROR: package/feeds/packages/gammu failed to build.
# Package gammu is missing dependencies for the following libraries: libmariadb.so.3
ERROR: package/feeds/packages/libmraa failed to build.
# staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided
ERROR: package/feeds/packages/gnunet-secushare failed to build.
# staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/lib/libintl-full/lib/libintl.so.8: error adding symbols: DSO missing from command line
ERROR: package/feeds/packages/libgphoto2 failed to build.
# Package libgphoto2 is missing dependencies for the following libraries: libintl.so.8
ERROR: package/feeds/packages/gphoto2 failed to build.
# actions.h:24:10: fatal error: gphoto2/gphoto2-camera.h: No such file or directory
ERROR: package/feeds/node/node-ejdb2_node failed to build.
# build/src/extern_iowow/src/kv/iwal.c:401:30: error: 'MADV_SEQUENTIAL' undeclared (first use in this function); did you mean 'POSIX_MADV_SEQUENTIAL'?
cascading failures (because of errors above):
ERROR: package/feeds/telephony/freeswitch-stable failed to build.
ERROR: package/feeds/packages/apache failed to build.
ERROR: package/feeds/packages/ola [host] failed to build.
ERROR: package/feeds/packages/libupm failed to build.
as i’m a complete make newbie (but i work with maven/gradle/node daily) how the hell do i fix these?
or are these just broken for everyone? or am i missing some deps?
some have clearly missing dependencies… but i’m not getting what’s wrong… as far as i can understand it can’t find the mentioned so-files (like libmariadb.so.3). but i can find them under “staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/lib/” (at least that’s were i think they should be… i’m guessing when reading the Makefiles), i’m clearly missing something and don’t understand what’s wrong here… (poking in the dark, i’ve tried adding libmariadb from openwrt-community repo to the build (which builds fine) and installing libmariadb-dev on debian but so far no luck…)
do i need to use something else than debian 10 (buster)? what are you guys using?
Also the medkit generation throws some errors but still completes. so i’m wondering if the medkits ok or broken?! :
ERROR:Unable to open os-release (/home/bernstein/target/medkit/root/etc/os-release): No such file or directory
ERROR:The uci library is not available. Continuing without it and expecting this is a test run on development PC.
ERROR:Can't open directory: /home/bernstein/target/medkit/root//etc/updater/hook_preupdate: No such file or directory
WARN:Collision with existing path. Moving /home/bernstein/target/medkit/root//usr/bin/wget to /home/bernstein/target/medkit/root/usr/share/updater/collided/home/bernstein/target/medkit/root/usr/bin
Setup
host : x86-64 (xeon coffee lake), Proxmox VE 6.x
lxc container : (unprivileged) debian 10 (buster)
using : complile_pkgs -t omnia -f1
and for failing packages: make packages/…/compile -j1 V=sc