iconv implementation "gnu" not found on cerbero bootstrap command
When I run ./cerbero-uninstalled bootstrap I figured out every dependencies but glibtools :
Unpacking /Users/Saursinet/.cache/cerbero-sources/glib-tools-2.56.1/glib-2.56.1.tar.xz in /Users/Saursinet/cerbero/build/sources/ios_universal/armv7s
[(19/23) glib-tools -> configure ]
Running command '/Users/Saursinet/cerbero/build/build-tools/bin/meson --prefix /Users/Saursinet/cerbero/build/build-tools --libdir lib --default-library=both --buildtype=debugoptimized --backend=ninja --wrap-mode=nodownload .. --cross-file=/Users/Saursinet/cerbero/build/sources/ios_universal/armv7/glib-tools-2.56.1/_builddir/meson-cross-file.txt -Dgtk_doc=false -Dinternal_pcre=true -Dlibmount=false -Ddtrace=false -Diconv=gnu -Dselinux=false -Dxattr=false -Db_bitcode=true'
The Meson build system
Version: 0.48.1
Source dir: /Users/Saursinet/cerbero/build/sources/ios_universal/armv7/glib-tools-2.56.1
Build dir: /Users/Saursinet/cerbero/build/sources/ios_universal/armv7/glib-tools-2.56.1/_builddir
Build type: cross build
Project name: glib
Project version: 2.56.1
Native C compiler: cc (clang 10.0.0 "Apple LLVM version 10.0.0 (clang-1000.11.45.5)")
Cross C compiler: clang (clang 10.0.0)
WARNING: Base option 'b_bitcode' is enabled, which is incompatible with many linker options. Incompatible options such as such as 'b_asneeded' have been disabled.
WARNING: Please see https://mesonbuild.com/Builtin-options.html#Notes_about_Apple_Bitcode_support for more details.
Native C++ compiler: c++ (clang 10.0.0 "Apple LLVM version 10.0.0 (clang-1000.11.45.5)")
Cross C++ compiler: clang++ (clang 10.0.0)
Host machine cpu family: arm
Host machine cpu: armv7
Target machine cpu family: arm
Target machine cpu: armv7
Build machine cpu family: x86_64
Build machine cpu: x86_64
Compiler for C supports arguments -fno-strict-aliasing: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Has header "stdlib.h": YES
Has header "string.h": YES
Has header "strings.h": YES
Has header "memory.h": YES
Has header "alloca.h": YES
Has header "locale.h": YES
Has header "xlocale.h": YES
Has header "float.h": YES
Has header "limits.h": YES
Has header "pwd.h": YES
Has header "grp.h": YES
Has header "poll.h": YES
Has header "termios.h": YES
Has header "sys/param.h": YES
Has header "sys/resource.h": YES
Has header "mach/mach_time.h": YES
Has header "sys/select.h": YES
Has header "stdint.h": YES
Has header "inttypes.h": YES
Has header "sched.h": YES
Has header "malloc.h": NO
Has header "sys/vfs.h": NO
Has header "sys/vmount.h": NO
Has header "sys/statfs.h": NO
Has header "sys/statvfs.h": YES
Has header "sys/filio.h": YES
Has header "mntent.h": NO
Has header "sys/mnttab.h": NO
Has header "sys/vfstab.h": NO
Has header "sys/mntctl.h": NO
Has header "fstab.h": YES
Has header "linux/magic.h": NO
Has header "termios.h": YES
Has header "dirent.h": YES
Has header "sys/time.h": YES
Has header "sys/times.h": YES
Has header "sys/wait.h": YES
Has header "unistd.h": YES
Has header "values.h": NO
Has header "sys/types.h": YES
Has header "sys/uio.h": YES
Has header "sys/mkdev.h": NO
Has header "sys/mount.h": YES
Has header "sys/sysctl.h": YES
Has header "crt_externs.h": NO
Has header "sys/inotify.h": NO
Has header "sys/event.h": YES
Has header "sys/stat.h": YES
Has header "linux/netlink.h": NO
Header <locale.h> has symbol "LC_MESSAGES": YES
Checking whether type "struct stat" has member "st_mtimensec" : NO
Checking whether type "struct stat" has member "st_mtim.tv_nsec" : NO
Checking whether type "struct stat" has member "st_atimensec" : NO
Checking whether type "struct stat" has member "st_atim.tv_nsec" : NO
Checking whether type "struct stat" has member "st_ctimensec" : NO
Checking whether type "struct stat" has member "st_ctim.tv_nsec" : NO
Checking whether type "struct stat" has member "st_birthtime" : YES
Checking whether type "struct stat" has member "st_birthtimensec" : NO
Checking whether type "struct stat" has member "st_birthtim" : NO
Checking whether type "struct stat" has member "st_birthtim.tv_nsec" : NO
Checking whether type "struct stat" has member "st_blksize" : YES
Checking whether type "struct stat" has member "st_blocks" : YES
Checking whether type "struct statfs" has member "f_fstypename" : YES
Checking whether type "struct statfs" has member "f_bavail" : YES
Checking whether type "struct dirent" has member "d_type" : YES
Checking for function "alloca" : YES
Checking for function "mmap" : YES
Checking for function "memalign" : NO
Checking for function "valloc" : YES
Checking for function "fsync" : YES
Checking for function "pipe2" : NO
Checking for function "issetugid" : YES
Checking for function "timegm" : YES
Checking for function "gmtime_r" : YES
Checking for function "strerror_r" : YES
Checking for function "lstat" : YES
Checking for function "strsignal" : YES
Checking for function "vsnprintf" : YES
Checking for function "poll" : YES
Checking for function "vasprintf" : YES
Checking for function "setenv" : YES
Checking for function "unsetenv" : YES
Checking for function "getc_unlocked" : YES
Checking for function "readlink" : YES
Checking for function "symlink" : YES
Checking for function "fdwalk" : NO
Checking for function "lchmod" : YES
Checking for function "lchown" : YES
Checking for function "fchmod" : YES
Checking for function "fchown" : YES
Checking for function "utimes" : YES
Checking for function "getresuid" : NO
Checking for function "getmntent_r" : NO
Checking for function "setmntent" : NO
Checking for function "endmntent" : NO
Checking for function "hasmntopt" : NO
Checking for function "getfsstat" : YES
Checking for function "getvfsstat" : NO
Checking for function "fallocate" : NO
Checking for function "localtime_r" : YES
Checking for function "gmtime_r" : YES
Checking for function "getpwuid_r" : YES
Checking for function "getgrgid_r" : YES
Checking for function "prlimit" : NO
Checking for function "strnlen" : YES
Checking for function "wcslen" : YES
Checking for function "wcsnlen" : YES
Checking for function "mbrtowc" : YES
Checking for function "wcrtomb" : YES
Checking for function "newlocale" : YES
Checking for function "uselocale" : YES
Checking for function "strtod_l" : YES
Checking for function "strtoll_l" : YES
Checking for function "strtoull_l" : YES
Checking for function "inotify_init1" : NO
Checking for function "kqueue" : YES
Checking for function "kevent" : YES
Checking for function "endservent" : YES
Checking for function "sendmmsg" : NO
Checking for function "recvmmsg" : NO
Checking for function "statvfs" : YES
Checking for function "statfs" : YES
Checking for function "if_indextoname" : YES
Checking for function "if_nametoindex" : YES
Checking for function "splice" : NO
Checking for function "stpcpy" : YES
Checking for function "posix_memalign" : YES
Checking if "strerror_r() returns char _" compiles: NO
Checking for function "snprintf" : YES
Checking for function "strcasecmp" : YES
Checking for function "strncasecmp" : YES
Header <sys/sysmacros.h> has symbol "major": NO
Header <sys/mkdev.h> has symbol "major": NO
Header <dlfcn.h> has symbol "RTLD_LAZY": YES
Header <dlfcn.h> has symbol "RTLD_NOW": YES
Header <dlfcn.h> has symbol "RTLD_GLOBAL": YES
Message: Checking whether to use statfs or statvfs .. statfs
Checking if "Mac OS X Carbon support" compiles: NO
Checking if "Mac OS X Cocoa support" compiles: NO
Checking if "futex(2) system call" links: NO
Checking if "eventfd(2) system call" links: NO
Checking if "clock_gettime" links: YES
Checking if "number of arguments to statfs() (n=2)" compiles: YES
Checking if "open() option O_DIRECTORY" compiles: YES
Checking if "nl_langinfo and CODESET" links: YES
Checking if "nl_langinfo (PM_STR)" links: YES
Checking if "nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)" links: NO
Checking if "nl_langinfo (ALTMON_n)" links: NO
Checking if "nl_langinfo (_NL_ALTMON_n)" links: NO
Checking if "signed" compiles: YES
Header <stddef.h> has symbol "ptrdiff_t": YES
Checking if "sig_atomic_t" links: YES
Checking if "long long" compiles: YES
Checking if "long double" compiles: YES
Header <stddef.h> has symbol "wchar_t": YES
Header <wchar.h> has symbol "wint_t": YES
Checking if "uintmax_t in inttypes.h" compiles: YES
Checking if "uintmax_t in stdint.h" compiles: YES
Checking for size of "char": 1
Checking for size of "short": 2
Checking for size of "int": 4
Checking for size of "void_": 4
Checking for size of "long": 4
Checking for size of "long long": 8
Checking for size of "size_t": 4
Checking for size of "ssize_t": 4
Checking for alignment of "char" : 1
Checking for alignment of "short" : 2
Checking for alignment of "int" : 4
Checking for alignment of "void*" : 4
Checking for alignment of "long" : 4
Checking for alignment of "long long" : 4
Checking for alignment of "size_t" : 4
Checking if "__va_copy check" compiles: YES
Checking if "va_copy check" compiles: YES
Checking if "ISO C99 varargs macros in C" compiles: YES
Checking if "ISO C99 varargs macros in C++" compiles: YES
Checking if "GNUC varargs macros" compiles: YES
Has header "alloca.h": YES
Has header "sys/poll.h": YES
Has header "sys/types.h": YES
Has header "winsock2.h": NO
Computing int of "POLLIN": 1
Computing int of "POLLOUT": 4
Computing int of "POLLPRI": 2
Computing int of "POLLERR": 8
Computing int of "POLLHUP": 16
Computing int of "POLLNVAL": 32
Computing int of "AF_UNIX": 1
Computing int of "AF_INET": 2
Computing int of "AF_INET6": 30
Computing int of "MSG_OOB": 1
Computing int of "MSG_PEEK": 2
Computing int of "MSG_DONTROUTE": 4
Checking if "atomic ops" links: YES
Cross dependency threads found: YES
Header <pthread.h> has symbol "pthread_attr_setstacksize": YES
Header <pthread.h> has symbol "pthread_condattr_setclock": NO
Header <pthread.h> has symbol "pthread_cond_timedwait_relative_np": YES
Header <pthread.h> has symbol "pthread_getname_np": YES
Checking if "pthread_setname_np(const char*)" links: YES
Header <iconv.h> has symbol "libiconv_open": NO
meson.build:1499:4: ERROR: Problem encountered: iconv implementation "gnu" not found
A full log can be found at /Users/Saursinet/cerbero/build/sources/ios_universal/armv7/glib-tools-2.56.1/_builddir/meson-logs/meson-log.txt
Recipe 'glib-tools' failed at the build step 'configure'
Select an action to proceed:
[0] Enter the shell
[1] Rebuild the recipe from scratch
[2] Rebuild starting from the failed step
[3] Skip recipe
[4] Abort
Here is the log :
Compiler stderr:
/tmp/tmp6uf67m7s/testfile.c:6:17: error: use of undeclared identifier 'libiconv_open'; did you mean 'iconv_open'?
libiconv_open;
^~~~~~~~~~~~~
iconv_open
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/usr/include/iconv.h:68:40: note: 'iconv_open' declared here
extern __LIBICONV_DLL_EXPORTED iconv_t iconv_open (const char* __tocode, const char* __fromcode);
^
/tmp/tmp6uf67m7s/testfile.c:6:17: warning: expression result unused [-Wunused-value]
libiconv_open;
^~~~~~~~~~~~~
1 warning and 1 error generated.
Header <iconv.h> has symbol "libiconv_open": NO
meson.build:1499:4: ERROR: Problem encountered: iconv implementation "gnu" not found
I tried to see my version of iconv with this command :
iconv --version
I got
> iconv (GNU libiconv 1.11)
> Copyright (C) 2000-2006 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.
> Written by Bruno Haible.
Do you have any idea on how to solve this one ?
Edited by Nirbheek Chauhan