We've run into a similar issue cross-compiling fontconfig (mingw-w64 git)
demo:
$ cat test_mme.c
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
//#include <intrin.h>
int main(void) { MemoryBarrier(); return 1; }
$ ./sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc test_mme.c
$ ./sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc
test_mme.c -march=sandybridge
/var/folders/_s/c0kwjqxn2txglx5kdpcvmj0jb5h2bk/T//ccTXcYo6.o:test_mme.c:(.text+0xc):
undefined reference to `_mm_mfence'
collect2: error: ld returned 1 exit status
refs:
https://lists.libav.org/pipermail/libav-devel/2015-October/072425.html
https://github.com/rdp/ffmpeg-windows-build-helpers/issues/137
Thanks.
-roger-
On 5/11/16, Erik van Pienbroek <[email protected]> wrote:
> Erik van Pienbroek schreef op wo 11-05-2016 om 19:35 [+0200]:
>> The following packages FAILED to rebuild:
>>
>> mingw-clucene-2.3.3.4-14
>> Package owner: greghellings
>> Time to build: 1 minute, 16 seconds
>> Build logs:
>> http://build1.vanpienbroek.nl/fedora-mingw-rebuild/20160511/mingw-clucene-2.3.3.4-14
>
> CMake Error at src/shared/cmake/MacroEnsureVersion.cmake:27 (MATH):
> math cannot parse the expression: "x86_64-w64-mingw326*10000 +
> x86_64-w64-mingw321*100 + x86_64-w64-mingw320": syntax error, unexpected
> exp_NUMBER, expecting $end (7)
> Call Stack (most recent call first):
> src/shared/cmake/MacroCheckGccVisibility.cmake:35 (macro_ensure_version)
> src/core/CMakeLists.txt:10 (MACRO_CHECK_GCC_VISIBILITY)
>
>
> This sounds an issue where the version of the GCC compiler (6.1.0) can't be
> detected properly by the CMake script.
>
>> mingw-cximage-600-14
>> ** Package failed to build while it succeeded during the previous mass
>> rebuild **
>> Package owner: elmarco
>> Time to build: 45 seconds
>> Build logs:
>> http://build1.vanpienbroek.nl/fedora-mingw-rebuild/20160511/mingw-cximage-600-14
>
> i686-w64-mingw32-g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> --param=ssp-buffer-size=4 -D_USRDLL -D_USRCxImageCrtDll
> -DCxImageCrtDll_EXPORTS -shared -o libcximage.dll -Wl,--out-
> implib,libcximage.dll.a ../CxImage/tif_xfile.cpp ../CxImage/ximabmp.cpp
> ../CxImage/ximadsp.cpp ../CxImage/ximaenc.cpp ../CxImage/ximaexif.cpp
> ../CxImage/ximage.cpp ../CxImage/ximagif.cpp
> ../CxImage/ximahist.cpp ../CxImage/ximaico.cpp ../CxImage/ximainfo.cpp
> ../CxImage/ximaint.cpp ../CxImage/ximajas.cpp ../CxImage/ximajbg.cpp
> ../CxImage/ximajpg.cpp ../CxImage/ximalpha.cpp
> ../CxImage/ximalyr.cpp ../CxImage/ximamng.cpp ../CxImage/ximapal.cpp
> ../CxImage/ximapcx.cpp ../CxImage/ximapng.cpp ../CxImage/ximaraw.cpp
> ../CxImage/ximasel.cpp ../CxImage/ximaska.cpp
> ../CxImage/ximatga.cpp ../CxImage/ximath.cpp ../CxImage/ximatif.cpp
> ../CxImage/ximatran.cpp ../CxImage/ximawbmp.cpp ../CxImage/ximawmf.cpp
> ../CxImage/ximawnd.cpp ../CxImage/xmemfile.cpp
> ../CxImage/CxImageDLL/CxImageCrtDll.cpp -lgdi32 -lws2_32 -ljpeg -ltiff
> -ljasper -I/usr/i686-w64-mingw32/sys-root/mingw/include/libpng16
> -I/usr/i686-w64-mingw32/sys-root/mingw/include -L/usr/i686-w64-
> mingw32/sys-root/mingw/lib -lpng16 -lz
> In file included from
> /usr/i686-w64-mingw32/sys-root/mingw/include/c++/deque:60:0,
> from
> /usr/i686-w64-mingw32/sys-root/mingw/include/c++/queue:60,
> from ../CxImage/ximadsp.cpp:3457:
> /usr/i686-w64-mingw32/sys-root/mingw/include/c++/bits/stl_algobase.h:243:56:
> error: macro "min" passed 3 arguments, but takes just 2
> min(const _Tp& __a, const _Tp& __b, _Compare __comp)
>
>
> This failure is likely caused by a compatibility issue with GCC6
>
>> mingw-LibRaw-0.17.1-2
>> ** Package failed to build while it succeeded during the previous mass
>> rebuild **
>> Package owner: smani
>> Time to build: 52 seconds
>> Build logs:
>> http://build1.vanpienbroek.nl/fedora-mingw-rebuild/20160511/mingw-LibRaw-0.17.1-2
>
> ../internal/dcraw_common.cpp: In member function 'void
> LibRaw::vng_interpolate()':
> ../internal/dcraw_common.cpp:4539:3: error: narrowing conversion of '128'
> from 'int' to 'signed char' inside { } [-Wnarrowing]
> }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
> ^
>
> This one is probably caused by more strict behavior of GCC6
>
>
>> mingw-llvm-3.0-11
>> ** Package failed to build while it succeeded during the previous mass
>> rebuild **
>> Package owner: brouhaha
>> Time to build: 4 minutes, 31 seconds
>> Build logs:
>> http://build1.vanpienbroek.nl/fedora-mingw-rebuild/20160511/mingw-llvm-3.0-11
>
> /builddir/build/BUILD/llvm-3.0.src/tools/bugpoint/ToolRunner.cpp: In
> function 'int RunProgramRemotelyWithTimeout(const llvm::sys::Path&, const
> char**, const llvm::sys::Path&, const llvm::sys::Path&,
> const llvm::sys::Path&, unsigned int, unsigned int)':
> /builddir/build/BUILD/llvm-3.0.src/tools/bugpoint/ToolRunner.cpp:131:12:
> error: no match for 'operator<<' (operand types are 'llvm::raw_ostream' and
> 'std::ostringstream {aka
> std::__cxx11::basic_ostringstream<char>}')
> errs() << OS;
> ~~~~~~~^~~~~
>
> Also sounds like more strict behavior of GCC6
>
>
>> mingw-OpenEXR-2.2.0-3
>> ** Package failed to build while it succeeded during the previous mass
>> rebuild **
>> Package owner: smani
>> Time to build: 1 minute, 7 seconds
>> Build logs:
>> http://build1.vanpienbroek.nl/fedora-mingw-rebuild/20160511/mingw-OpenEXR-2.2.0-3
>
> i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I../../exrenvmap -I../config -I..
> -I../../IlmImf -I../../config
> -I/usr/i686-w64-mingw32/sys-root/mingw/include/OpenEXR -pipe -O2 -g -pipe
> -Wall -Wp,-
> D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -MT blurImage.o
> -MD -MP -MF .deps/blurImage.Tpo -c -o blurImage.o
> ../../exrenvmap/blurImage.cpp
> ../../exrenvmap/blurImage.cpp: In function 'void blurImage(EnvmapImage&,
> bool)':
> ../../exrenvmap/blurImage.cpp:74:1: internal compiler error: Segmentation
> fault
> blurImage (EnvmapImage &image1, bool verbose)
> ^~~~~~~~~
> Please submit a full bug report,
> with preprocessed source if appropriate.
>
>
> Don't know if this already has been reported to upstream GCC developers..
>
>> mingw-qt5-qtwebkit-5.5.1-3
>> ** Package failed to build while it succeeded during the previous mass
>> rebuild **
>> Package owner: epienbro
>> Time to build: 15 minutes, 3 seconds
>> Build logs:
>> http://build1.vanpienbroek.nl/fedora-mingw-rebuild/20160511/mingw-qt5-qtwebkit-5.5.1-3
>
> i686-w64-mingw32-g++ -c -include .pch/release/QtWebKitWidgetsDepends -Wall
> -Wextra -Wreturn-type -Wchar-subscripts -Wformat-security -Wreturn-type
> -Wno-unused-parameter -Wno-sign-compare -Wno-switch
> -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -O2 -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 --param=ssp-buffer-size=4 -fno-keep-inline-dllexport
> -Wno-c++0x-compat -g1 -msse2 -mstackrealign
> -mfpmath=sse -fno-strict-aliasing -std=c++1z -fno-exceptions -frtti
> -DUNICODE -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB
> -DQT_NO_LIBINPUT -DQT_BUILD_WEBKITWIDGETS_LIB
> -DQT_BUILD_WEBKITWIDGETS_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS
> -D_USE_MATH_DEFINES <<trimmed various Qt internal -D and -I flags>> -o
> .obj/release/QWebUndoCommand.o
> /builddir/build/BUILD/qtwebkit-opensource-src-5.5.1/Source/WebKit/qt/WidgetSupport/QWebUndoCommand.cpp
> In file included from
> /builddir/build/BUILD/qtwebkit-opensource-src-5.5.1/Source/WTF/wtf/Threading.h:66:0,
> from
> /builddir/build/BUILD/qtwebkit-opensource-src-5.5.1/Source/WTF/wtf/ThreadRestrictionVerifier.h:35,
> from
> /builddir/build/BUILD/qtwebkit-opensource-src-5.5.1/Source/WTF/wtf/RefCounted.h:28,
> from
> /builddir/build/BUILD/qtwebkit-opensource-src-5.5.1/Source/WebCore/editing/UndoStep.h:35,
> from
> /builddir/build/BUILD/qtwebkit-opensource-src-5.5.1/Source/WebKit/qt/WebCoreSupport/UndoStepQt.h:24,
> from
> /builddir/build/BUILD/qtwebkit-opensource-src-5.5.1/Source/WebKit/qt/WidgetSupport/QWebUndoCommand.cpp:23:
> /builddir/build/BUILD/qtwebkit-opensource-src-5.5.1/Source/WTF/wtf/Atomics.h:
> In function 'void WTF::x86_mfence()':
> /builddir/build/BUILD/qtwebkit-opensource-src-5.5.1/Source/WTF/wtf/Atomics.h:259:19:
> error: '_mm_mfence' was not declared in this scope
> MemoryBarrier();
> ^
>
> This one might be an issue in the mingw-w64 headers.
>
>
>> mingw-wine-gecko-2.44-1
>> ** Package failed to build while it succeeded during the previous mass
>> rebuild **
>> Package owner: awjb
>> Time to build: 7 minutes, 51 seconds
>> Build logs:
>> http://build1.vanpienbroek.nl/fedora-mingw-rebuild/20160511/mingw-wine-gecko-2.44-1
>
> 4:40.63 In file included from
> /builddir/build/BUILD/wine-mozilla-2.44/wine-mozilla-2.44/gfx/graphite2/src/NameTable.cpp:31:0,
> 4:40.63 from
> /builddir/build/BUILD/wine-mozilla-2.44/wine_gecko-2.44-x86/gfx/graphite2/src/Unified_cpp_gfx_graphite2_src0.cpp:128:
> 4:40.63
> /builddir/build/BUILD/wine-mozilla-2.44/wine-mozilla-2.44/gfx/graphite2/src/inc/UtfCodec.h:
> In instantiation of 'graphite2::_utf_iterator<C>&
> graphite2::_utf_iterator<C>::operator++() [with C
> = const short unsigned int]':
> 4:40.63
> /builddir/build/BUILD/wine-mozilla-2.44/wine-mozilla-2.44/gfx/graphite2/src/NameTable.cpp:172:90:
> required
> from here
> 4:40.63
> /builddir/build/BUILD/wine-mozilla-2.44/wine-mozilla-2.44/gfx/graphite2/src/inc/UtfCodec.h:182:46:
> error: invalid operands of types 'const short unsigned int*' and
> '__gnu_cxx::__enable_if<true, double>::__type {aka double}' to binary
> 'operator+'
> 4:40.63 _utf_iterator & operator ++ () { cp += abs(sl); return
> *this; }
> 4:40.63 ~~~^~~~~~~~~~
> <<snip>>
> 4:40.71 In the
> directory
> /builddir/build/BUILD/wine-mozilla-2.44/wine_gecko-2.44-x86/gfx/graphite2/src
> 4:40.71 The following command failed to execute properly:
> 4:40.71 i686-w64-mingw32-g++ -mwindows -o Unified_cpp_gfx_graphite2_src0.o
> -c -DGRAPHITE2_STATIC -DPACKAGE_VERSION="moz"
> -DPACKAGE_BUGREPORT="http://bugzilla.mozilla.org/" -DGRAPHITE2_NFILEFACE
> -DGRAPHITE2_NTRACING -DGRAPHITE2_NSEGCACHE
> -DGRAPHITE2_CUSTOM_HEADER="MozGrMalloc.h" -DAB_CD=en-US -DNO_NSPR_10_SUPPORT
> -I/builddir/build/BUILD/wine-mozilla-2.44/wine-mozilla-2.44/gfx/graphite2/src
> -I. -I../../../dist/include
> -I/builddir/build/BUILD/wine-mozilla-2.44/wine_gecko-2.44-x86/dist/include/nspr
> -I/builddir/build/BUILD/wine-mozilla-2.44/wine_gecko-2.44-x86/dist/include/nss
> -DMOZILLA_CLIENT -include ../../../mozilla-config.h -MD -MP -MF
> .deps/Unified_cpp_gfx_graphite2_src0.o.pp -Wall -Wempty-body
> -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Wno-invalid-offsetof
> -Wcast-align -Wno-format -DWINE_GECKO_SRC -fpermissive -fno-exceptions
> -fno-strict-aliasing -mms-bitfields -mstackrealign
> -fno-keep-inline-dllexport -fno-rtti -fno-exceptions -fno-math-errno
> -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -g -O -fomit-frame-pointer
> /builddir/build/BUILD/wine-mozilla-2.44/wine_gecko-2.44-x86/gfx/graphite2/src/Unified_cpp_gfx_graphite2_src0.cpp
> 4:40.71
> /builddir/build/BUILD/wine-mozilla-2.44/wine-mozilla-2.44/config/rules.mk:958:
> recipe for target 'Unified_cpp_gfx_graphite2_src0.o' failed
> 4:40.71 gmake[5]: *** [Unified_cpp_gfx_graphite2_src0.o] Error 1
> 4:40.71
> /builddir/build/BUILD/wine-mozilla-2.44/wine-mozilla-2.44/config/recurse.mk:71:
> recipe for target 'gfx/graphite2/src/target' failed
> 4:40.71 gmake[4]: *** [gfx/graphite2/src/target] Error 2
>
>
> The failure also seems to be caused by more strict GCC6 behavior
>
>
> Regards,
>
> Erik van Pienbroek
>
>
> ------------------------------------------------------------------------------
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public