[x265] Linking multilib binary fails in MSYS2/MinGW

Mario *LigH* Rohkrämer contact at ligh.de
Fri Jan 10 15:21:35 CET 2020


Is this a regression? Or did parameters in a build script have to change 
recently and I didn't notice (still using build scripts which worked a 
month ago)?

MinGW32:

...
[ 84%] Linking CXX shared library libx265.dll
E:/MABS/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: 
CMakeFiles/x265-shared.dir/objects.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x2c): 
undefined reference to 
`x265::setupIntrinsicDCT_sse3(x265::EncoderPrimitives&)'
E:/MABS/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: 
CMakeFiles/x265-shared.dir/objects.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x39): 
undefined reference to 
`x265::setupIntrinsicDCT_ssse3(x265::EncoderPrimitives&)'
E:/MABS/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: 
CMakeFiles/x265-shared.dir/objects.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x4f): 
undefined reference to 
`x265::setupIntrinsicDCT_sse41(x265::EncoderPrimitives&)'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/x265-shared.dir/build.make:229: libx265.dll] 
Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/x265-shared.dir/all] 
Error 2
make: *** [Makefile:130: all] Error 2
mv: cannot stat 'libx265.a': No such file or directory
libx265_main.a: No such file or directory
E:\MABS\msys64\mingw32\bin\ar.exe: E:\MABS\msys64\mingw32\bin\strip.exe: 
'libx265.dll': No such file
E:\MABS\msys64\mingw32\bin\strip.exe: 'x265.exe': No such file


MinGW64:

[ 85%] Linking CXX shared library libx265.dll
E:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
CMakeFiles/x265-shared.dir/objects.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x31): 
undefined reference to 
`x265::setupIntrinsicDCT_sse3(x265::EncoderPrimitives&)'
E:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
CMakeFiles/x265-shared.dir/objects.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x3e): 
undefined reference to 
`x265::setupIntrinsicDCT_ssse3(x265::EncoderPrimitives&)'
E:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
CMakeFiles/x265-shared.dir/objects.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x55): 
undefined reference to 
`x265::setupIntrinsicDCT_sse41(x265::EncoderPrimitives&)'
E:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
.\libx265_main10.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x31): 
undefined reference to 
`x265_10bit::setupIntrinsicDCT_sse3(x265_10bit::EncoderPrimitives&)'
E:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
.\libx265_main10.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x3e): 
undefined reference to 
`x265_10bit::setupIntrinsicDCT_ssse3(x265_10bit::EncoderPrimitives&)'
E:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
.\libx265_main10.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x55): 
undefined reference to 
`x265_10bit::setupIntrinsicDCT_sse41(x265_10bit::EncoderPrimitives&)'
E:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
.\libx265_main12.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x31): 
undefined reference to 
`x265_12bit::setupIntrinsicDCT_sse3(x265_12bit::EncoderPrimitives&)'
E:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
.\libx265_main12.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x3e): 
undefined reference to 
`x265_12bit::setupIntrinsicDCT_ssse3(x265_12bit::EncoderPrimitives&)'
E:/MABS/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
.\libx265_main12.a(vec-primitives.cpp.obj):vec-primitives.cpp:(.text+0x55): 
undefined reference to 
`x265_12bit::setupIntrinsicDCT_sse41(x265_12bit::EncoderPrimitives&)'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/x265-shared.dir/build.make:227: libx265.dll] 
Error 1
make[1]: *** [CMakeFiles/Makefile2:119: CMakeFiles/x265-shared.dir/all] 
Error 2
make: *** [Makefile:130: all] Error 2
mv: cannot stat 'libx265.a': No such file or directory
libx265_main.a: No such file or directory
E:\MABS\msys64\mingw64\bin\ar.exe: E:\MABS\msys64\mingw64\bin\strip.exe: 
'libx265.dll': No such file
E:\MABS\msys64\mingw64\bin\strip.exe: 'x265.exe': No such file


-- 

Fun and success!

Mario *LigH* Rohkrämer
maito:contact at ligh.de


More information about the x265-devel mailing list