sergei-mironov / asterisk-dongle-setup

Playground project aimed at setting up Asterisk server and the GSM stack on Nix.
31 stars 4 forks source link

Has anyone installed on raspberry pi? #8

Open 2Frez opened 2 years ago

2Frez commented 2 years ago

Faced the error during installation on Raspbian 10 (RaspberryPi 3B+) and didn't find any solution. Here are my steps:

At first I installed nix for ARMv7 from https://hydra.nixos.org/job/nix/master/binaryTarballCross.x86_64-linux.armv7l-linux (tried different version). Then run installation of asterisk-dongle and got the error:

unpacking source archive /nix/store/mcayf992diwks293vs12iwx1ywgm4ijg-m4-1.4.19.tar.bz2
source root is m4-1.4.19
setting SOURCE_DATE_EPOCH to timestamp 1622228112 of file m4-1.4.19/ChangeLog
patching sources
configuring
configure flags: --disable-dependency-tracking --prefix=/nix/store/zmbbkgnfphpbkiqqmnyzy0vhbqlfc9ra-gnum4-1.4.19 --with-syscmd-shell=/nix/store/cvzil995dqk628n017d02s1zaa6fjh4i-bootstrap-tools/bin/bash
/nix/store/fxppfqrv0vdqqjcilki0ghz177ws2fq5-bootstrap-stage1-stdenv-linux/setup: ./configure: /bin/sh: bad interpreter: No such file or directory
error: builder for '/nix/store/40ay0h3g6r886xrpiplpad760c7h3mnn-gnum4-1.4.19.drv' failed with exit code 126;
       last 8 log lines:
       > unpacking sources
       > unpacking source archive /nix/store/mcayf992diwks293vs12iwx1ywgm4ijg-m4-1.4.19.tar.bz2
       > source root is m4-1.4.19
       > setting SOURCE_DATE_EPOCH to timestamp 1622228112 of file m4-1.4.19/ChangeLog
       > patching sources
       > configuring
       > configure flags: --disable-dependency-tracking --prefix=/nix/store/zmbbkgnfphpbkiqqmnyzy0vhbqlfc9ra-gnum4-1.4.19 --with-syscmd-shell=/nix/store/cvzil995dqk628n017d02s1zaa6fjh4i-bootstrap-tools/bin/bash
       > /nix/store/fxppfqrv0vdqqjcilki0ghz177ws2fq5-bootstrap-stage1-stdenv-linux/setup: ./configure: /bin/sh: bad interpreter: No such file or directory
       For full logs, run 'nix log /nix/store/40ay0h3g6r886xrpiplpad760c7h3mnn-gnum4-1.4.19.drv'.
error: 1 dependencies of derivation '/nix/store/g4kbw6bv96mgarbcfqgygq1c0qzxpcr7-autoconf-2.71.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jlhr0jvqvva77mh5hryxqiqn6i58wxvz-autoconf-2.71.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9jvcb43h8plk45pgxfq08lhgghl1fwlz-bison-3.8.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rmbvwvva01f3n441p25j8c2fbp54p2zd-gmp-with-cxx-6.2.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/24gil06rwgm2biij6lw45cqa1rrgvg01-bash-5.1-p16.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bzarwkcy8mkzg2il85ml5w5q0xkkxdg9-bash-5.1-p16.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9ps2925c2fsky80222i38v8qh50y92dw-binutils-2.38.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rrdjfvfy5qc47s755a257w0xsj0105j5-binutils-2.38.drv' failed to build
error: 1 dependencies of derivation '/nix/store/cjm4dz0gvfn5608yij773s259asd4hb6-coreutils-9.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x7jrij8bhwa37zbgpcvzsq1q4a4n16ys-gcc-10.3.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a76636d85xw27y035jb0ii13caxssj3a-gfortran-10.3.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ixv6frfd7j436cps70aavafpqzz6jy4r-glibc-2.34-210.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4b8xyvazkv1p3g0hzgc75jppg5q8jk50-hook.drv' failed to build
building '/nix/store/3cyivbmiz5qsq7hj6a4vpw5hj1wn2bgg-zlib-1.2.12.drv'...
error: 1 dependencies of derivation '/nix/store/w1z9ml11mdv2pmmzn02p61nl506nli91-sox-unstable-2021-05-09.drv' failed to build

Did anyone solve this?

sergei-mironov commented 2 years ago

I guess no, at least I don't know about any attempts to install it on RaspbianPi. But I thought about it. Can you suggest the idea of how to reproduce the build on some kind of x86 emulator?

sergei-mironov commented 2 years ago
./configure: /bin/sh: bad interpreter: No such file or directory

This line looks very suspicious. Your system can't build m4 tool, which is strange because m4 is a very common thing. Btw the whole build process in your snippet tries to re-build the toolchain from scratch. Why is this? I suppose that your system does have a working toolchain already, so you probably need to adjust asterisk-dongle to use it somehow. Consider checking other application projects which do build for arm, probably there should be a hint.

2Frez commented 2 years ago

I guess no, at least I don't know about any attempts to install it on RaspbianPi. But I thought about it. Can you suggest the idea of how to reproduce the build on some kind of x86 emulator?

I suppose raspberry pi OS might be run on virtualbox: https://roboticsbackend.com/install-raspbian-desktop-on-a-virtual-machine-virtualbox/