How to Install Codec g729 in a Docker Alpine for Raspberry Pi3 Pi4

392 views
Skip to first unread message

rosario Miccolis

unread,
Mar 19, 2020, 7:40:56 PM3/19/20
to Asterisk G.729
I'm trying to compile the codec that can be used inside an alpine docker for the raspberry but it always gives me these errors ... what can I do ??
  Thank you.

uname -a
Linux RPi3Plus 4.19.106 #1 SMP Tue Mar 3 15:52:12 EST 2020 armv7l Linux

bash-5.0# lscpu
Architecture:        armv7l
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               4
Model name:          Cortex-A53
Stepping:            r0p4
CPU max MHz:         1400.0000
CPU min MHz:         600.0000
BogoMIPS:            89.33
Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32

cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 89.33
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 89.33
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 89.33
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 89.33
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Hardware        : BCM2835
Revision        : a020d3
Serial          : 00000000383dec3c
Model           : Raspberry Pi 3 Model B Plus Rev 1.3





Step 10/16 : RUN    mkdir -p /usr/src/asterisk-g72x ;        git clone https://bitbucket.org/arkadi/asterisk-g72x.git /usr/src/asterisk-g72x ;        cd /usr/src/asterisk-g72x ;        ./autogen.sh ;        ./configure CFLAGS='-march=armv7l' --with-bcg729 --with-asterisk160 --enable-penryn ;        make ;        make install
 ---> Running in 347504d13f7d
Cloning into '/usr/src/asterisk-g72x'...
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:8: installing './compile'
configure.ac:5: installing './config.guess'
configure.ac:5: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:7: installing './missing'
Makefile.am: installing './depcomp'
checking build system type... armv7l-unknown-linux-musleabihf
checking host system type... armv7l-unknown-linux-musleabihf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/src/asterisk-g72x':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

rosario Miccolis

unread,
Mar 19, 2020, 8:22:01 PM3/19/20
to Asterisk G.729
This is the config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by codec_g72x configure 1.3, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure CFLAGS=-march=armv7l --with-bcg729 --with-asterisk160 --enable-penryn

## --------- ##
## Platform. ##
## --------- ##

hostname = RPi3Plus
uname -m = armv7l
uname -r = 4.19.106
uname -s = Linux
uname -v = #1 SMP Tue Mar 3 15:52:12 EST 2020

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = armv7l
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/lib/jvm/jdk-13.0.2-bellsoft-armv7l/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin## ----------- ##
## Core tests. ##
## ----------- ##

configure:2332: checking build system type
configure:2346: result: armv7l-unknown-linux-musleabihf
configure:2366: checking host system type
configure:2379: result: armv7l-unknown-linux-musleabihf
configure:2413: checking for a BSD-compatible install
configure:2481: result: /usr/bin/install -c
configure:2494: checking whether build environment is sane
configure:2549: result: yes
configure:2700: checking for a thread-safe mkdir -p
configure:2739: result: ./install-sh -c -d
configure:2746: checking for gawk
configure:2762: found /usr/bin/gawk
configure:2773: result: gawk
configure:2784: checking whether make sets $(MAKE)
configure:2806: result: yes
configure:2835: checking whether make supports nested variables
configure:2852: result: yes
configure:3026: checking for gcc
configure:3042: found /usr/bin/gcc
configure:3053: result: gcc
configure:3282: checking for C compiler version
configure:3291: gcc --version >&5
gcc (Alpine 9.2.0) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3302: $? = 0
configure:3291: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/armv7-alpine-linux-musleabihf/9.2.0/lto-wrapper
Target: armv7-alpine-linux-musleabihf
Configured with: /home/buildozer/aports/main/gcc/src/gcc-9.2.0/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --build=armv7-alpine-linux-mus>
Thread model: posix
gcc version 9.2.0 (Alpine 9.2.0)
configure:3302: $? = 0
configure:3291: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3302: $? = 1
configure:3291: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3302: $? = 1
configure:3322: checking whether the C compiler works
configure:3344: gcc -march=armv7l   conftest.c  >&5
gcc: error: unrecognized -march target: armv7l
gcc: note: valid arguments are: armv4 armv4t armv5t armv5te armv5tej armv6 armv6j armv6k armv6z armv6kz armv6zk armv6t2 armv6-m armv6s-m armv7 armv7-a armv7ve armv7-r >
gcc: error: missing argument to '-march='
configure:3348: $? = 1
configure:3386: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "codec_g72x"
| #define PACKAGE_TARNAME "codec_g72x"
| #define PACKAGE_VERSION "1.3"
| #define PACKAGE_STRING "codec_g72x 1.3"
| #define PACKAGE_BUGREPORT "http://groups.google.com/group/asterisk-g729"
| #define PACKAGE_URL ""| #define PACKAGE_URL ""
| #define PACKAGE "codec_g72x"
| #define VERSION "1.3"
| /* end confdefs.h.  */
| int
| main ()
| {
|   ;
|   return 0;
| }
configure:3391: error: in `/usr/src/asterisk-g72x/arkadi-asterisk-g72x-cfc2eb7bce73':
configure:3393: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build='armv7l-unknown-linux-musleabihf'
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set='set'
ac_cv_env_CFLAGS_value='-march=armv7l'
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_LT_SYS_LIBRARY_PATH_set=''
ac_cv_env_LT_SYS_LIBRARY_PATH_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host='armv7l-unknown-linux-musleabihf'
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK='gawk'
ac_cv_prog_ac_ct_CC='gcc'
ac_cv_prog_make_make_set='yes'
am_cv_make_support_nested_variables='yes'

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /usr/src/asterisk-g72x/arkadi-asterisk-g72x-cfc2eb7bce73/missing aclocal-1.16'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
ASTERISK_ASTERISK_H=''
ASTERISK_CFLAGS=''
ASTERISK_VERSION=''
AUTOCONF='${SHELL} /usr/src/asterisk-g72x/arkadi-asterisk-g72x-cfc2eb7bce73/missing autoconf'
AUTOHEADER='${SHELL} /usr/src/asterisk-g72x/arkadi-asterisk-g72x-cfc2eb7bce73/missing autoheader'
AUTOMAKE='${SHELL} /usr/src/asterisk-g72x/arkadi-asterisk-g72x-cfc2eb7bce73/missing automake-1.16'
AWK='gawk'
BCG729_FALSE=''
BCG729_TRUE=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-march=armv7l'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
FLTO_LDFLAGS=''
G729_NOFP_FALSE=''
G729_NOFP_TRUE=''
G72X_9_NOFP=''
G72X_BCG729=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
IPP_CFLAGS=''
IPP_LDFLAGS=''
IPP_LIBS=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /usr/src/asterisk-g72x/arkadi-asterisk-g72x-cfc2eb7bce73/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='./install-sh -c -d'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='codec_g72x'
PACKAGE_NAME='codec_g72x'
PACKAGE_STRING='codec_g72x 1.3'
PACKAGE_TARNAME='codec_g72x'
PACKAGE_URL=''
PACKAGE_VERSION='1.3'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.3'
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='armv7l-unknown-linux-musleabihf'
build_alias=''
build_cpu='armv7l'
build_os='linux-musleabihf'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='armv7l-unknown-linux-musleabihf'
host_alias=''
host_cpu='armv7l'
host_os='linux-musleabihf'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /usr/src/asterisk-g72x/arkadi-asterisk-g72x-cfc2eb7bce73/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "codec_g72x"
#define PACKAGE_TARNAME "codec_g72x"
#define PACKAGE_VERSION "1.3"
#define PACKAGE_STRING "codec_g72x 1.3"
#define PACKAGE_URL ""
#define PACKAGE "codec_g72x"
#define VERSION "1.3"

configure: exit 77




Reply all
Reply to author
Forward
0 new messages