Issue building CE 19 from source

Hi
I want to build CE from source. I need a toolchain to be able to build python module for CoreELEC (hope it will be possible). Unfortunately my compilations fails.
Here is the log:

[...]
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... (cached) yes
checking for wcrtomb... (cached) yes
checking whether _snprintf is declared... no
checking whether printf supports size specifiers as in C99... yes
checking whether printf supports 'long double' arguments... yes
checking whether printf supports infinite 'double' arguments... yes
checking whether printf supports infinite 'long double' arguments... yes
checking whether printf supports the 'a' and 'A' directives... yes
checking whether printf supports the 'F' directive... yes
checking whether printf supports the 'n' directive... no
checking whether printf supports the 'ls' directive... yes
checking whether printf supports the grouping flag... yes
checking whether printf supports the left-adjust flag correctly... yes
checking whether printf supports the zero flag correctly... yes
checking whether printf supports large precisions... yes
checking whether printf survives out-of-memory conditions... yes
checking whether to use C++... no
checking whether ungetc works on arbitrary bytes... yes
checking whether getcwd (NULL, 0) allocates memory for result... yes
checking for getcwd with POSIX signature... yes
checking for inttypes.h... (cached) yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for LC_MESSAGES... yes
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether setenv is declared... yes
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking for tsearch... yes
checking whether strdup is declared... yes
checking whether unsetenv is declared... yes
checking for alloca as a compiler built-in... yes
checking whether to enable assertions... yes
checking whether btowc(0) is correct... yes
checking whether btowc(EOF) is correct... guessing yes
checking for __builtin_expect... yes
checking whether sigaltstack is declared... yes
checking for stack_t... yes
checking whether // is distinct from /... (cached) no
checking whether dup2 works... yes
checking for error_at_line... yes
checking whether fflush works on input streams... (cached) no
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... needs runtime check
checking whether fflush works on input streams... (cached) no
checking whether conversion from 'int' to 'long double' works... yes
checking whether fopen recognizes a trailing slash... yes
checking for __fpending... yes
checking whether __fpending is declared... yes
checking whether fpurge is declared... no
checking whether frexp works... yes
checking whether frexpl is declared... yes
checking whether frexpl() can be used without linking with libm... yes
checking whether frexpl works... yes
checking for fseeko... (cached) yes
checking whether fflush works on input streams... (cached) no
checking for _fseeki64... no
checking for ftello... (cached) yes
checking whether ftello works... (cached) yes
checking whether getdtablesize works... yes
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking whether __argv is declared... no
checking whether gettimeofday clobbers localtime buffer... (cached) no
checking for gettimeofday with POSIX signature... yes
checking whether isnan(double) can be used without linking with libm... yes
checking whether isnan(float) can be used without linking with libm... yes
checking whether isnan(float) works... yes
checking whether isnan(long double) can be used without linking with libm... yes
checking whether isnanl works... yes
checking whether langinfo.h defines CODESET... yes
checking whether langinfo.h defines T_FMT_AMPM... yes
checking whether langinfo.h defines ERA... yes
checking whether langinfo.h defines YESEXPR... yes
checking for libsigsegv... (cached) no, consider installing GNU libsigsegv
checking whether locale.h conforms to POSIX:2001... yes
checking whether struct lconv is properly defined... yes
checking whether lseek detects pipes... yes
checking whether NAN macro works... yes
checking whether HUGE_VAL works... yes
checking whether mbrtowc handles incomplete characters... guessing yes
checking whether mbrtowc works as well as mbtowc... guessing yes
checking whether mbrtowc handles a NULL pwc argument... guessing yes
checking whether mbrtowc handles a NULL string argument... guessing yes
checking whether mbrtowc has a correct return value... guessing yes
checking whether mbrtowc returns 0 when parsing a NUL character... guessing yes
checking whether mbrtowc works on empty input... yes
checking whether the C locale is free of encoding errors... no
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking for mkdtemp... yes
checking for working mkstemp... yes
checking whether YESEXPR works... yes
checking for obstacks that work with any size object... no
checking whether open recognizes a trailing slash... yes
checking whether posix_spawn_file_actions_addclose works... yes
checking whether posix_spawn_file_actions_adddup2 works... yes
checking whether posix_spawn_file_actions_addopen works... yes
checking whether frexp works... (cached) yes
checking whether ldexp can be used without linking with libm... (cached) yes
checking whether frexpl() can be used without linking with libm... (cached) yes
checking whether frexpl works... (cached) yes
checking whether frexpl is declared... (cached) yes
checking whether ldexpl() can be used without linking with libm... yes
checking whether ldexpl works... yes
checking whether ldexpl is declared... yes
checking whether program_invocation_name is declared... (cached) yes
checking whether program_invocation_short_name is declared... (cached) yes
checking for raise... yes
checking for sigprocmask... yes
checking for rawmemchr... yes
checking whether readlink signature is correct... yes
checking whether readlink handles trailing slash correctly... yes
checking for working re_compile_pattern... yes
checking whether rename honors trailing slash on destination... yes
checking whether rename honors trailing slash on source... yes
checking whether rename manages hard links correctly... yes
checking whether rename manages existing destinations correctly... yes
checking whether rmdir works... yes
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for sighandler_t... yes
checking for signbit macro... yes
checking for signbit compiler built-ins... yes
checking for sigprocmask... (cached) yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for snprintf... (cached) yes
checking whether snprintf respects a size of 1... yes
checking whether printf supports POSIX/XSI format strings with positions... yes
checking for posix_spawnattr_t... yes
checking for posix_spawn_file_actions_t... yes
checking for ssize_t... yes
checking whether stat handles trailing slashes on directories... yes
checking whether stat handles trailing slashes on files... yes
checking for va_copy... yes
checking for max_align_t... (cached) yes
checking whether NULL can be used in arbitrary expressions... (cached) yes
checking which flavor of printf attribute matches inttypes macros... system
checking for strchrnul... yes
checking whether strchrnul works... yes
checking for working strerror function... yes
checking for working strndup... yes
checking for working strnlen... yes
checking for strsignal... yes
checking whether strsignal always returns a string... yes
checking whether strstr works in linear time... yes
checking whether strstr works... (cached) yes
checking whether strtod obeys C99... yes
checking for nlink_t... (cached) yes
checking for ptrdiff_t... yes
checking for vasprintf... yes
checking for vasprintf... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for waitid... yes
checking whether mbrtowc handles incomplete characters... (cached) guessing yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether wcrtomb return value is correct... guessing yes
checking whether iswcntrl works... yes
checking for towlower... yes
checking for wctype_t... yes
checking for wctrans_t... yes
checking for stdint.h... (cached) yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional french locale... (cached) none
checking for a turkish Unicode locale... none
checking for closedir... yes
checking for dirfd... yes
checking whether dirfd is declared... yes
checking whether dirfd is a macro... no
checking whether dup works... yes
checking whether fdopen sets errno... yes
checking for flexible array member... yes
checking for getpagesize... yes
checking whether getpagesize is declared... yes
checking whether INT32_MAX < INTMAX_MAX... yes
checking whether INT64_MAX == LONG_MAX... yes
checking whether UINT32_MAX < UINTMAX_MAX... yes
checking whether UINT64_MAX == ULONG_MAX... yes
checking where to find the exponent in a 'double'... (cached) word 1 bit 20
checking where to find the exponent in a 'float'... (cached) word 0 bit 23
checking where to find the exponent in a 'long double'... unknown
checking whether link obeys POSIX... yes
checking for setlocale... yes
checking for uselocale... yes
checking for getlocalename_l... no
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for opendir... yes
checking for putenv compatible with GNU and SVID... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for readdir... yes
checking whether setenv validates arguments... yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking whether sleep is declared... yes
checking for working sleep... yes
checking for working stdalign.h... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking whether symlink handles trailing slash correctly... yes
checking for unsetenv... yes
checking for unsetenv() return type... int
checking whether unsetenv obeys POSIX... yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking whether wctob works... guessing yes
checking whether wctob is declared... yes
checking whether an open file can be renamed... yes
checking if changeword is wanted... no
checking which shell to use for syscmd... /bin/sh
checking if malloc debugging is wanted... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating checks/Makefile
config.status: creating examples/Makefile
config.status: creating lib/config.h
config.status: linking /home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/GNUmakefile to GNUmakefile
config.status: executing depfiles commands
config.status: executing stamp-h commands
configure: WARNING: unrecognized options: --disable-static, --enable-shared
Executing (host): make 
make[1]: Entering directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu'
make  all-recursive
make[2]: Entering directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu'
Making all in .
make[3]: Entering directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu'
Making all in examples
make[3]: Entering directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu/examples'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu/examples'
Making all in lib
make[3]: Entering directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu/lib'
  GEN      alloca.h
  GEN      configmake.h
  GEN      c++defs.h
  GEN      arg-nonnull.h
  GEN      warn-on-use.h
  GEN      limits.h
  GEN      unused-parameter.h
  GEN      sys/types.h
  GEN      fcntl.h
  GEN      langinfo.h
  GEN      locale.h
  GEN      math.h
  GEN      signal.h
  GEN      spawn.h
  GEN      time.h
  GEN      sys/wait.h
  GEN      wchar.h
  GEN      unistd.h
  GEN      wctype.h
  GEN      sys/time.h
  GEN      sys/stat.h
  GEN      string.h
  GEN      stdlib.h
  GEN      stdio.h
make  all-am
make[4]: Entering directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu/lib'
  CC       gl_avltree_oset.o
  CC       c-ctype.o
  CC       binary-io.o
  CC       c-strcasecmp.o
  CC       c-stack.o
  CC       dirname.o
In file included from /usr/include/signal.h:328,
                 from ./signal.h:52,
                 from /home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/lib/c-stack.c:49:
/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/lib/c-stack.c:55:26: error: missing binary operator before token "("
   55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
      |                          ^~~~~~~~
/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/lib/c-stack.c:107:1: warning: 'die' defined but not used [-Wunused-function]
  107 | die (int signo)
      | ^~~
make[4]: *** [Makefile:1910: c-stack.o] Error 1
make[4]: *** Waiting for unfinished jobs....
  CC       basename.o
make[4]: Leaving directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu/lib'
make[3]: *** [Makefile:1674: all] Error 2
make[3]: Leaving directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu/lib'
make[2]: *** [Makefile:1572: all-recursive] Error 1
make[2]: Leaving directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu'
make[1]: *** [Makefile:1528: all] Error 2
make[1]: Leaving directory '/home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/build/m4-1.4.18/.x86_64-linux-gnu'
FAILURE: scripts/build m4:host during make_host (default)
*********** FAILED COMMAND ***********
make ${PKG_MAKE_OPTS_HOST}
**************************************
FAILURE: scripts/build m4:host has failed!

The following log for this failure is available:
  /home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/.threads/logs/12.log

>>> m4:host seq 12 >>>
[022/345] [FAIL] build   m4:host

The following log for this failure is available:
  /home/savage/CoreELEC/build.CoreELEC-Amlogic-ng.arm-19/.threads/logs/12.log

Parallel build failure - see log for details. Time of failure: Sat Oct 29 12:55:17 CEST 2022
make: *** [Makefile:12: image] Błąd 1

I’m building with
PROJECT=Amlogic-ce ARCH=arm make image

Which host distro you are using? Use Ubuntu 20 which is mostly used by us.

Oh, so you say 20.04 Ubuntu. I’m using 22.04. Maybe it’s the problem. I will check it on 20.04
#edit
Looks like it’s building just fine on Ubuntu 20.04. Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.