<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV>Hello.  </DIV>
<DIV>Being a non-programmer and linux newbie, I have been using the script at <A 
title=https://github.com/rdp/ffmpeg-windows-build-helpers 
href="https://github.com/rdp/ffmpeg-windows-build-helpers">https://github.com/rdp/ffmpeg-windows-build-helpers</A> 
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.</DIV>
<DIV>Recently it started throwing build errors like this:</DIV>
<DIV> </DIV>
<DIV>Making all in fc-cache</DIV>
<DIV>make[2]: Entering directory 
'/home/u/Desktop/ffmpeg-windows-build-helpers-master/sandbox/win32/fontconfig-2.11.94/fc-cache'</DIV>
<DIV>CC fc-cache.o</DIV>
<DIV>CCLD fc-cache.exe</DIV>
<DIV>../src/.libs/libfontconfig.a(fccache.o):fccache.c:(.text+0x6b): undefined 
reference to `_mm_mfence'</DIV>
<DIV>../src/.libs/libfontconfig.a(fccfg.o):fccfg.c:(.text+0x7): undefined 
reference to `_mm_mfence'</DIV>
<DIV>../src/.libs/libfontconfig.a(fcdefault.o):fcdefault.c:(.text+0x7): 
undefined reference to `_mm_mfence'</DIV>
<DIV>../src/.libs/libfontconfig.a(fcobjs.o):fcobjs.c:(.text+0x7): undefined 
reference to `_mm_mfence'</DIV>
<DIV>../src/.libs/libfontconfig.a(fcxml.o):fcxml.c:(.text+0x7): undefined 
reference to `_mm_mfence'</DIV>
<DIV>collect2: error: ld returned 1 exit status</DIV>
<DIV>Makefile:492: recipe for target 'fc-cache.exe' failed</DIV>
<DIV>make[2]: *** [fc-cache.exe] Error 1</DIV>
<DIV>make[2]: Leaving directory 
'/home/u/Desktop/ffmpeg-windows-build-helpers-master/sandbox/win32/fontconfig-2.11.94/fc-cache'</DIV>
<DIV>Makefile:579: recipe for target 'all-recursive' failed</DIV>
<DIV>make[1]: *** [all-recursive] Error 1</DIV>
<DIV>make[1]: Leaving directory 
'/home/u/Desktop/ffmpeg-windows-build-helpers-master/sandbox/win32/fontconfig-2.11.94'</DIV>
<DIV>Makefile:463: recipe for target 'all' failed</DIV>
<DIV>make: *** [all] Error 2</DIV>
<DIV> </DIV>
<DIV>I understand the script uses cross-compiler gcc 5.3.0, if that helps.  
</DIV>
<DIV>Any advice on how to “fix it” would be greatly appreciated. </DIV>
<DIV> </DIV>
<DIV>The build script does, in part, this:</DIV>
<DIV> </DIV>
<DIV>build_fontconfig() {</DIV>
<DIV>  download_and_unpack_file <A 
href="http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.94.tar.gz">http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.94.tar.gz</A> 
</DIV>
<DIV>#  download_and_unpack_file <A 
href="http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.93.tar.gz">http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.93.tar.gz</A> 
</DIV>
<DIV>#  cd fontconfig-2.11.93</DIV>
<DIV>  cd fontconfig-2.11.94</DIV>
<DIV>    generic_configure --disable-docs</DIV>
<DIV>    do_make_and_make_install</DIV>
<DIV>  cd .. </DIV>
<DIV>  sed -i.bak 's/-L${libdir} -lfontconfig[^l]*$/-L${libdir} 
-lfontconfig -lfreetype -lexpat/' "$PKG_CONFIG_PATH/fontconfig.pc"</DIV>
<DIV>}</DIV>
<DIV>generic_configure() {</DIV>
<DIV>  local extra_configure_options="$1"</DIV>
<DIV>  do_configure "--host=$host_target --prefix=$mingw_w64_x86_64_prefix 
--disable-shared --enable-static $extra_configure_options"</DIV>
<DIV>}</DIV>
<DIV>do_make_and_make_install() {</DIV>
<DIV>  local extra_make_options="$1"</DIV>
<DIV>  do_make "$extra_make_options"</DIV>
<DIV>  do_make_install "$extra_make_options"</DIV>
<DIV>}</DIV>
<DIV>do_make() {</DIV>
<DIV>  local extra_make_options="$1 -j $cpu_count"</DIV>
<DIV>  local cur_dir2=$(pwd)</DIV>
<DIV>  local touch_name=$(get_small_touchfile_name already_ran_make 
"$extra_make_options")</DIV>
<DIV> </DIV>
<DIV>  if [ ! -f $touch_name ]; then</DIV>
<DIV>    echo</DIV>
<DIV>    echo "making $cur_dir2 as $ PATH=$path_addition:\$PATH 
make $extra_make_options"</DIV>
<DIV>    echo</DIV>
<DIV>    if [ ! -f configure ]; then</DIV>
<DIV>      make clean # just in case helpful if old 
junk left around and this is a 're make' and wasn't cleaned at reconfigure 
time</DIV>
<DIV>    fi</DIV>
<DIV>    nice make $extra_make_options || exit 1</DIV>
<DIV>    touch $touch_name || exit 1 # only touch if the build 
was OK</DIV>
<DIV>  else</DIV>
<DIV>    echo "already did make $(basename "$cur_dir2")"</DIV>
<DIV>  fi</DIV>
<DIV>}</DIV>
<DIV>do_make_install() {</DIV>
<DIV>  local extra_make_install_options="$1"</DIV>
<DIV>  local override_make_install_options="$2" # startingly, some need/use 
something different than just 'make install'</DIV>
<DIV>  if [[ -z $override_make_install_options ]]; then</DIV>
<DIV>    local make_install_options="install 
$extra_make_options"</DIV>
<DIV>  else</DIV>
<DIV>    local 
make_install_options="$override_make_install_options"</DIV>
<DIV>  fi</DIV>
<DIV>  local touch_name=$(get_small_touchfile_name already_ran_make_install 
"$make_install_options")</DIV>
<DIV>  if [ ! -f $touch_name ]; then</DIV>
<DIV>    echo "make installing $(pwd) as $ 
PATH=$path_addition:\$PATH make $make_install_options"</DIV>
<DIV>    nice make $make_install_options || exit 1</DIV>
<DIV>    touch $touch_name || exit 1</DIV>
<DIV>  fi</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>Thank you.</DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>