kiwix / kiwix-build

Kiwix & openZIM build engine
GNU General Public License v3.0
89 stars 43 forks source link

Failing: kiwix-build --target-platform native_static kiwix-tools #317

Closed JoaoPir closed 4 years ago

JoaoPir commented 5 years ago

kiwix-build --target-platform native_static kiwix-tools fails, with the following commands:

export LC_ALL=C
virtualenv -p python3 ./
source bin/activate
pip install .
hash -r
export SKIP_BIG_MEMORY_TEST=1
kiwix-build --target-platform native_static kiwix-tools

Log:

Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/joao/kiwix-build-0.0.23/bin/python3
Also creating executable in /home/joao/kiwix-build-0.0.23/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
Processing /home/joao/kiwix-build-0.0.23
Collecting meson==0.49.2 (from kiwix-build==0.1)
Building wheels for collected packages: kiwix-build
  Building wheel for kiwix-build (setup.py) ... done
  Stored in directory: /home/joao/.cache/pip/wheels/85/ad/bb/e68de5436683b43dc9641fb0c6aed2050b6066a38888f89498
Successfully built kiwix-build
Installing collected packages: meson, kiwix-build
Successfully installed kiwix-build-0.1 meson-0.49.2
[INSTALL PACKAGES]
 - automake : SKIP
 - libtool : SKIP
 - cmake : SKIP
 - git : SKIP
 - subversion : SKIP
 - ccache : SKIP
 - pkg-config : SKIP
 - gcc : SKIP
 - autopoint : SKIP
 - libbz2-dev : SKIP
 - libmagic-dev : SKIP
SKIP, No package to install.
[SETUP PLATFORMS]
[PREPARE]
prepare sources pugixml :
  download pugixml : OK1.50%
  extract pugixml : OK
  patch pugixml : OK
prepare sources zlib :
  download zlib : OK0.41%
  extract zlib : OK
  patch zlib : OK
prepare sources lzma :
  download lzma : OK0.03%
  extract lzma : OK
prepare sources uuid :
  download uuid : OK0.75%
  extract uuid : OK
prepare sources xapian-core :
  download xapian-core : OK0.27%
  extract xapian-core : OK
  patch xapian-core : OK
prepare sources icu4c :
  download icu4c : OK0.01%
  extract icu4c : OK
  patch icu4c : OK
prepare sources libzim :
  gitclone libzim : OK
  gitupdate libzim : OK
prepare sources libcurl :
  download libcurl : OK0.09%
  extract libcurl : OK
prepare sources mustache :
  download mustache : OK
  extract mustache : OK
  patch mustache : OK
prepare sources kiwix-lib :
  gitclone kiwix-lib : OK
  gitupdate kiwix-lib : OK
prepare sources libmicrohttpd :
  download libmicrohttpd : OK0.31%
  extract libmicrohttpd : OK
prepare sources kiwix-tools :
  gitclone kiwix-tools : OK
  gitupdate kiwix-tools : OK
[BUILD]
build pugixml (native_static):
  configure pugixml : OK
  compile pugixml : OK
  test pugixml : OK
  install pugixml : OK
build zlib (native_static):
  pre_build_script zlib : OK
  configure zlib : OK
  compile zlib : OK
  install zlib : OK
build lzma (native_static):
  configure lzma : OK
  compile lzma : OK
  install lzma : OK
build uuid (native_static):
  configure uuid : OK
  compile uuid : OK
  install uuid : OK
build xapian-core (native_static):
  configure xapian-core : OK
  compile xapian-core : .OK
  install xapian-core : OK
build icu4c (native_static):
  configure icu4c : OK
  compile icu4c : ..OK
  install icu4c : OK
build libzim (native_static):
  configure libzim : OK
  compile libzim : OK
  test libzim : OK
  install libzim : OK
build libcurl (native_static):
  configure libcurl : OK
  compile libcurl : OK
  install libcurl : OK
build mustache (native_static):
  copy_header mustache : OK
build kiwix-lib (native_static):
  configure kiwix-lib : OK
  compile kiwix-lib : OK
  test kiwix-lib : OK
  install kiwix-lib : OK
build libmicrohttpd (native_static):
  configure libmicrohttpd : OK
  compile libmicrohttpd : OK
  install libmicrohttpd : OK
build kiwix-tools (native_static):
  configure kiwix-tools : OK
  compile kiwix-tools : ERROR
[1/11] /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/bin/kiwix-compile-resources --cxxfile static/server/server-resources.cpp --hfile static/server/server-resources.h ../../SOURCE/kiwix-tools/static/server/resources_list.txt
jquery-ui/jquery-ui.structure.min.css ['jquery_ui', 'jquery_ui_structure_min_css']
jquery-ui/jquery-ui.min.js ['jquery_ui', 'jquery_ui_min_js']
jquery-ui/external/jquery/jquery.js ['jquery_ui', 'external', 'jquery', 'jquery_js']
jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png ['jquery_ui', 'images', 'ui_bg_flat_0_aaaaaa_40x100_png']
jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png ['jquery_ui', 'images', 'ui_bg_flat_75_ffffff_40x100_png']
jquery-ui/images/ui-icons_222222_256x240.png ['jquery_ui', 'images', 'ui_icons_222222_256x240_png']
jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png ['jquery_ui', 'images', 'ui_bg_glass_55_fbf9ee_1x400_png']
jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png ['jquery_ui', 'images', 'ui_bg_highlight_soft_75_cccccc_1x100_png']
jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png ['jquery_ui', 'images', 'ui_bg_glass_65_ffffff_1x400_png']
jquery-ui/images/ui-icons_2e83ff_256x240.png ['jquery_ui', 'images', 'ui_icons_2e83ff_256x240_png']
jquery-ui/images/ui-icons_cd0a0a_256x240.png ['jquery_ui', 'images', 'ui_icons_cd0a0a_256x240_png']
jquery-ui/images/ui-icons_888888_256x240.png ['jquery_ui', 'images', 'ui_icons_888888_256x240_png']
jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png ['jquery_ui', 'images', 'ui_bg_glass_75_e6e6e6_1x400_png']
jquery-ui/images/animated-overlay.gif ['jquery_ui', 'images', 'animated_overlay_gif']
jquery-ui/images/ui-bg_glass_75_dadada_1x400.png ['jquery_ui', 'images', 'ui_bg_glass_75_dadada_1x400_png']
jquery-ui/images/ui-icons_454545_256x240.png ['jquery_ui', 'images', 'ui_icons_454545_256x240_png']
jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png ['jquery_ui', 'images', 'ui_bg_glass_95_fef1ec_1x400_png']
jquery-ui/jquery-ui.theme.min.css ['jquery_ui', 'jquery_ui_theme_min_css']
jquery-ui/jquery-ui.min.css ['jquery_ui', 'jquery_ui_min_css']
home.html.tmpl ['home_html_tmpl']
include.html.part ['include_html_part']
taskbar.css ['taskbar_css']
taskbar.html.part ['taskbar_html_part']
global_taskbar.html.part ['global_taskbar_html_part']
opensearchdescription.xml ['opensearchdescription_xml']
[2/11] ccache c++ -Isrc/reader/cd3f9f2@@kiwix-read@exe -Isrc/reader -I../../SOURCE/kiwix-tools/src/reader -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include/ -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Werror -std=c++11 -O2 -g -pthread -DCURL_STATICLIB  -MD -MQ 'src/reader/cd3f9f2@@kiwix-read@exe/kiwix-read.cpp.o' -MF 'src/reader/cd3f9f2@@kiwix-read@exe/kiwix-read.cpp.o.d' -o 'src/reader/cd3f9f2@@kiwix-read@exe/kiwix-read.cpp.o' -c ../../SOURCE/kiwix-tools/src/reader/kiwix-read.cpp
[3/11] ccache c++ -Isrc/searcher/eb86e1d@@kiwix-search@exe -Isrc/searcher -I../../SOURCE/kiwix-tools/src/searcher -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include/ -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Werror -std=c++11 -O2 -g -pthread -DCURL_STATICLIB  -MD -MQ 'src/searcher/eb86e1d@@kiwix-search@exe/kiwix-search.cpp.o' -MF 'src/searcher/eb86e1d@@kiwix-search@exe/kiwix-search.cpp.o.d' -o 'src/searcher/eb86e1d@@kiwix-search@exe/kiwix-search.cpp.o' -c ../../SOURCE/kiwix-tools/src/searcher/kiwix-search.cpp
[4/11] ccache c++ -Isrc/manager/2de60dd@@kiwix-manage@exe -Isrc/manager -I../../SOURCE/kiwix-tools/src/manager -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include/ -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Werror -std=c++11 -O2 -g -pthread -DCURL_STATICLIB  -MD -MQ 'src/manager/2de60dd@@kiwix-manage@exe/kiwix-manage.cpp.o' -MF 'src/manager/2de60dd@@kiwix-manage@exe/kiwix-manage.cpp.o.d' -o 'src/manager/2de60dd@@kiwix-manage@exe/kiwix-manage.cpp.o' -c ../../SOURCE/kiwix-tools/src/manager/kiwix-manage.cpp
[5/11] ccache c++ -Isrc/server/e19e62e@@kiwix-serve@exe -Isrc/server -I../../SOURCE/kiwix-tools/src/server -Istatic/server -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include/ -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Werror -std=c++11 -O2 -g -pthread -DCURL_STATICLIB  -MD -MQ 'src/server/e19e62e@@kiwix-serve@exe/request_context.cpp.o' -MF 'src/server/e19e62e@@kiwix-serve@exe/request_context.cpp.o.d' -o 'src/server/e19e62e@@kiwix-serve@exe/request_context.cpp.o' -c ../../SOURCE/kiwix-tools/src/server/request_context.cpp
[6/11] ccache c++ -Isrc/server/e19e62e@@kiwix-serve@exe -Isrc/server -I../../SOURCE/kiwix-tools/src/server -Istatic/server -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include/ -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Werror -std=c++11 -O2 -g -pthread -DCURL_STATICLIB  -MD -MQ 'src/server/e19e62e@@kiwix-serve@exe/meson-generated_.._.._.._static_server_server-resources.cpp.o' -MF 'src/server/e19e62e@@kiwix-serve@exe/meson-generated_.._.._.._static_server_server-resources.cpp.o.d' -o 'src/server/e19e62e@@kiwix-serve@exe/meson-generated_.._.._.._static_server_server-resources.cpp.o' -c static/server/server-resources.cpp
[7/11] ccache c++  -o src/reader/kiwix-read 'src/reader/cd3f9f2@@kiwix-read@exe/kiwix-read.cpp.o' -L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib -L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu -Wl,--no-undefined -Wl,--as-needed -static-libstdc++ --static -Wl,--start-group /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzim.a -pthread /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/liblzma.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libz.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libuuid.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicui18n.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicuuc.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicudata.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libpugixml.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a -lrt -lpthread -lm /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libmicrohttpd.a -lrt -Wl,--end-group  
/usr/bin/ld: /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): in function `Resolver::Resolver(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int)':
(.text._ZN8ResolverC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii[_ZN8ResolverC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii]+0x151): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
[8/11] ccache c++  -o src/searcher/kiwix-search 'src/searcher/eb86e1d@@kiwix-search@exe/kiwix-search.cpp.o' -L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib -L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu -Wl,--no-undefined -Wl,--as-needed -static-libstdc++ --static -Wl,--start-group /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzim.a -pthread /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/liblzma.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libz.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libuuid.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicui18n.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicuuc.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicudata.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libpugixml.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a -lrt -lpthread -lm /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libmicrohttpd.a -lrt -Wl,--end-group  
/usr/bin/ld: /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): in function `Resolver::Resolver(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int)':
(.text._ZN8ResolverC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii[_ZN8ResolverC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii]+0x151): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
[9/11] ccache c++  -o src/manager/kiwix-manage 'src/manager/2de60dd@@kiwix-manage@exe/kiwix-manage.cpp.o' -L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib -L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu -Wl,--no-undefined -Wl,--as-needed -static-libstdc++ --static -Wl,--start-group /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzim.a -pthread /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/liblzma.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libz.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libuuid.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicui18n.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicuuc.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicudata.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libpugixml.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a -lrt -lpthread -lm /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libmicrohttpd.a -lrt -Wl,--end-group  
FAILED: src/manager/kiwix-manage 
ccache c++  -o src/manager/kiwix-manage 'src/manager/2de60dd@@kiwix-manage@exe/kiwix-manage.cpp.o' -L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib -L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu -Wl,--no-undefined -Wl,--as-needed -static-libstdc++ --static -Wl,--start-group /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libkiwix.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libzim.a -pthread /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/liblzma.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libz.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libuuid.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicui18n.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicuuc.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libicudata.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libpugixml.a /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a -lrt -lpthread -lm /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libmicrohttpd.a -lrt -Wl,--end-group  
/usr/bin/ld: /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libcurl.a(libcurl_la-netrc.o): in function `Curl_parsenetrc':
(.text+0x30c): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/libxapian.a(tcpclient.o): in function `Resolver::Resolver(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int)':
(.text._ZN8ResolverC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii[_ZN8ResolverC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEii]+0x151): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a(lookup.o): in function `idn2_lookup_u8':
(.text+0x21e): undefined reference to `u8_strlen'
/usr/bin/ld: (.text+0x236): undefined reference to `u8_to_u32'
/usr/bin/ld: (.text+0x5bd): undefined reference to `uninorm_nfc'
/usr/bin/ld: (.text+0x5c5): undefined reference to `u32_normalize'
/usr/bin/ld: (.text+0x6a9): undefined reference to `u32_to_u8'
/usr/bin/ld: (.text+0x6c5): undefined reference to `u8_strlen'
/usr/bin/ld: (.text+0x74a): undefined reference to `u32_to_u8'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a(lookup.o): in function `idn2_lookup_ul':
(.text+0x922): undefined reference to `locale_charset'
/usr/bin/ld: (.text+0x92f): undefined reference to `u8_strconv_from_encoding'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a(lookup.o): in function `idn2_to_ascii_4i':
(.text+0x9f4): undefined reference to `u32_cpy'
/usr/bin/ld: (.text+0xa0f): undefined reference to `u32_to_u8'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a(lookup.o): in function `idn2_to_ascii_4z':
(.text+0xae9): undefined reference to `u32_strlen'
/usr/bin/ld: (.text+0xafa): undefined reference to `u32_to_u8'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a(idna.o): in function `_idn2_u8_to_u32_nfc':
(.text+0x32): undefined reference to `u8_to_u32'
/usr/bin/ld: (.text+0x97): undefined reference to `uc_combining_class'
/usr/bin/ld: (.text+0xac): undefined reference to `uninorm_nfc'
/usr/bin/ld: (.text+0xbc): undefined reference to `u32_normalize'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a(idna.o): in function `_idn2_label_test':
(.text+0x36e): undefined reference to `UC_CATEGORY_M'
/usr/bin/ld: (.text+0x375): undefined reference to `UC_CATEGORY_M'
/usr/bin/ld: (.text+0x37a): undefined reference to `uc_is_general_category'
/usr/bin/ld: (.text+0x39a): undefined reference to `uninorm_nfc'
/usr/bin/ld: (.text+0x39f): undefined reference to `u32_normalize'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a(bidi.o): in function `_idn2_bidi':
(.text+0x28): undefined reference to `uc_bidi_category'
/usr/bin/ld: (.text+0x55): undefined reference to `uc_bidi_category'
/usr/bin/ld: (.text+0xb6): undefined reference to `uc_bidi_category'
/usr/bin/ld: (.text+0x146): undefined reference to `uc_bidi_category'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a(context.o): in function `_idn2_contextj_rule':
(.text+0x52): undefined reference to `uc_combining_class'
/usr/bin/ld: (.text+0x88): undefined reference to `uc_combining_class'
/usr/bin/ld: (.text+0xb7): undefined reference to `uc_joining_type'
/usr/bin/ld: (.text+0xf3): undefined reference to `uc_joining_type'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libidn2.a(context.o): in function `_idn2_contexto_rule':
(.text+0x196): undefined reference to `uc_script'
/usr/bin/ld: (.text+0x25e): undefined reference to `uc_script'
/usr/bin/ld: (.text+0x32f): undefined reference to `uc_script'
collect2: error: ld returned 1 exit status
[10/11] ccache c++ -Isrc/server/e19e62e@@kiwix-serve@exe -Isrc/server -I../../SOURCE/kiwix-tools/src/server -Istatic/server -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include/ -I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Werror -std=c++11 -O2 -g -pthread -DCURL_STATICLIB  -MD -MQ 'src/server/e19e62e@@kiwix-serve@exe/kiwix-serve.cpp.o' -MF 'src/server/e19e62e@@kiwix-serve@exe/kiwix-serve.cpp.o.d' -o 'src/server/e19e62e@@kiwix-serve@exe/kiwix-serve.cpp.o' -c ../../SOURCE/kiwix-tools/src/server/kiwix-serve.cpp
ninja: build stopped: subcommand failed.
run command 'ninja -v'
current directory is '/home/joao/kiwix-build-0.0.23/BUILD_native_static/kiwix-tools'
env is :
  SHELL : '/bin/bash'
  SESSION_MANAGER : 'local/ThinkDream:@/tmp/.ICE-unix/1472,unix/ThinkDream:/tmp/.ICE-unix/1472'
  WINDOWID : '113246215'
  QT_ACCESSIBILITY : '1'
  COLORTERM : 'truecolor'
  XDG_SESSION_PATH : '/org/freedesktop/DisplayManager/Session1'
  LANGUAGE : 'pt:pt_BR:en'
  SSH_AUTH_SOCK : '/tmp/ssh-0Qb7NiaUU8YM/agent.1376'
  SHELL_SESSION_ID : 'eee3c553eb164923a2f8096c493288dc'
  DESKTOP_SESSION : '/usr/share/xsessions/plasma'
  SSH_AGENT_PID : '1409'
  GTK_MODULES : 'gail:atk-bridge'
  XDG_SEAT : 'seat0'
  PWD : '/home/joao/kiwix-build-0.0.23'
  LOGNAME : 'joao'
  XDG_SESSION_DESKTOP : 'KDE'
  XDG_SESSION_TYPE : 'x11'
  GPG_AGENT_INFO : '/run/user/1000/gnupg/S.gpg-agent:0:1'
  XAUTHORITY : '/home/joao/.Xauthority'
  HOME : '/home/joao'
  LANG : 'pt_PT.UTF-8'
  LS_COLORS : 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
  XDG_CURRENT_DESKTOP : 'KDE'
  KONSOLE_DBUS_SERVICE : ':1.218'
  VIRTUAL_ENV : '/home/joao/kiwix-build-0.0.23'
  KONSOLE_DBUS_SESSION : '/Sessions/1'
  PROFILEHOME : '/home/joao/kiwix-build-0.0.23'
  XDG_SEAT_PATH : '/org/freedesktop/DisplayManager/Seat0'
  KDE_SESSION_UID : '1000'
  XDG_SESSION_CLASS : 'user'
  TERM : 'xterm-256color'
  USER : 'joao'
  COLORFGBG : '15;0'
  KDE_SESSION_VERSION : '5'
  PAM_KWALLET5_LOGIN : '/run/user/1000/kwallet5.socket'
  DISPLAY : ':0'
  SHLVL : '2'
  XDG_VTNR : '7'
  XDG_SESSION_ID : '3'
  GS_LIB : '/home/joao/.fonts'
  XDG_RUNTIME_DIR : '/run/user/1000'
  PS1 : '(kiwix-build-0.0.23) '
  LC_ALL : 'C'
  QT_AUTO_SCREEN_SCALE_FACTOR : '0'
  XCURSOR_THEME : 'breeze_cursors'
  XDG_DATA_DIRS : '/usr/share:/usr/share:/usr/local/share'
  KDE_FULL_SESSION : 'true'
  PATH : '/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/bin:/usr/lib/ccache:/home/joao/kiwix-build-0.0.23/bin:/home/joao/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games'
  KONSOLE_PROFILE_NAME : ''
  DBUS_SESSION_BUS_ADDRESS : 'unix:path=/run/user/1000/bus'
  SKIP_BIG_MEMORY_TEST : '1'
  KONSOLE_DBUS_WINDOW : '/Windows/1'
  _ : '/home/joao/kiwix-build-0.0.23/bin/kiwix-build'
  PKG_CONFIG_PATH : ':/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/pkgconfig'
  LD_LIBRARY_PATH : ':/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib:/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu'
  QMAKE_CXXFLAGS : '-I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include '
  CPPFLAGS : '-I/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/include '
  QMAKE_LFLAGS : '-L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib -L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu '
  LDFLAGS : '-L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib -L/home/joao/kiwix-build-0.0.23/BUILD_native_static/INSTALL/lib/x86_64-linux-gnu '

Stopping build due to errors
kelson42 commented 5 years ago

@JoaoPir Thank you for your bug report. What is your exact GNU/Linux distribution? It is just a guess, but might that be that libiconv (dev) package is not installed?

JoaoPir commented 5 years ago

@kelson42 Thank you for the fast reply! I'm on Debian 10. Installing libiconv-hook-dev didn't seem to change the output (tried in a fresh kiwix-build directory).

kelson42 commented 5 years ago

@mgautierfr Any clue what is going on here?

kelson42 commented 4 years ago

Now I have the same problem myself :(

kelson42 commented 4 years ago

The problem seems to be that with need libunistring... but this is not compiled against it!

mgautierfr commented 4 years ago

I cannot reproduce on my Fedora. While I'm installing a virtual debian 10, can I have the content of your WORKING_DIR/BUILD_native_static/LOGS/cmd_configure_libcurl.log ?

mgautierfr commented 4 years ago

I've just tried on a fresh (clean) installed debian 10. I cannot reproduce this issue. It is probably some libraries installed on your system that interfer with the build process of kiwix-build. It would be great to have an archive of your build directory to investigate what happened.

kelson42 commented 4 years ago

@mgautierfr Here my cmd_configure_libcurl.log cmd_configure_libcurl.log

kelson42 commented 4 years ago

@JoaoPir I have finally been able to fix that problem by removing any local version of libidn2.a with sudo apt-get remove --purge libidn2-dev. Then removing kiwix-build directory and starting from scratch works. @mgautierfr Thx for your help

JoaoPir commented 4 years ago

@kelson42 Thank you, removing libidn2-dev did indeed solve this issue. Seems to be related to libcurl?