Fw: cross-compile stopped working circa mid Jan2016

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello. 
Being a non-programmer and linux newbie, I have been using the script at https://github.com/rdp/ffmpeg-windows-build-helpers to cross-compile a static ffmpeg for windows using mingw, with a VM host having Ububtu 15.10.  One of the dependencies it builds is fontconfig which had been successful until about mid Jan 2016.
Recently it started throwing build errors like this:
 
Making all in fc-cache
make[2]: Entering directory '/home/u/Desktop/ffmpeg-windows-build-helpers-master/sandbox/win32/fontconfig-2.11.94/fc-cache'
CC fc-cache.o
CCLD fc-cache.exe
../src/.libs/libfontconfig.a(fccache.o):fccache.c:(.text+0x6b): undefined reference to `_mm_mfence'
../src/.libs/libfontconfig.a(fccfg.o):fccfg.c:(.text+0x7): undefined reference to `_mm_mfence'
../src/.libs/libfontconfig.a(fcdefault.o):fcdefault.c:(.text+0x7): undefined reference to `_mm_mfence'
../src/.libs/libfontconfig.a(fcobjs.o):fcobjs.c:(.text+0x7): undefined reference to `_mm_mfence'
../src/.libs/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x7): undefined reference to `_mm_mfence'
collect2: error: ld returned 1 exit status
Makefile:492: recipe for target 'fc-cache.exe' failed
make[2]: *** [fc-cache.exe] Error 1
make[2]: Leaving directory '/home/u/Desktop/ffmpeg-windows-build-helpers-master/sandbox/win32/fontconfig-2.11.94/fc-cache'
Makefile:579: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/u/Desktop/ffmpeg-windows-build-helpers-master/sandbox/win32/fontconfig-2.11.94'
Makefile:463: recipe for target 'all' failed
make: *** [all] Error 2
 
I understand the script uses cross-compiler gcc 5.3.0, if that helps. 
Any advice on how to “fix it” would be greatly appreciated.
 
The build script does, in part, this:
 
build_fontconfig() {
#  cd fontconfig-2.11.93
  cd fontconfig-2.11.94
    generic_configure --disable-docs
    do_make_and_make_install
  cd ..
  sed -i.bak 's/-L${libdir} -lfontconfig[^l]*$/-L${libdir} -lfontconfig -lfreetype -lexpat/' "$PKG_CONFIG_PATH/fontconfig.pc"
}
generic_configure() {
  local extra_configure_options="$1"
  do_configure "--host=$host_target --prefix=$mingw_w64_x86_64_prefix --disable-shared --enable-static $extra_configure_options"
}
do_make_and_make_install() {
  local extra_make_options="$1"
  do_make "$extra_make_options"
  do_make_install "$extra_make_options"
}
do_make() {
  local extra_make_options="$1 -j $cpu_count"
  local cur_dir2=$(pwd)
  local touch_name=$(get_small_touchfile_name already_ran_make "$extra_make_options")
 
  if [ ! -f $touch_name ]; then
    echo
    echo "making $cur_dir2 as $ PATH=$path_addition:\$PATH make $extra_make_options"
    echo
    if [ ! -f configure ]; then
      make clean # just in case helpful if old junk left around and this is a 're make' and wasn't cleaned at reconfigure time
    fi
    nice make $extra_make_options || exit 1
    touch $touch_name || exit 1 # only touch if the build was OK
  else
    echo "already did make $(basename "$cur_dir2")"
  fi
}
do_make_install() {
  local extra_make_install_options="$1"
  local override_make_install_options="$2" # startingly, some need/use something different than just 'make install'
  if [[ -z $override_make_install_options ]]; then
    local make_install_options="install $extra_make_options"
  else
    local make_install_options="$override_make_install_options"
  fi
  local touch_name=$(get_small_touchfile_name already_ran_make_install "$make_install_options")
  if [ ! -f $touch_name ]; then
    echo "make installing $(pwd) as $ PATH=$path_addition:\$PATH make $make_install_options"
    nice make $make_install_options || exit 1
    touch $touch_name || exit 1
  fi
}
 
Thank you.
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux