[x265] GCC 4.8.2 in MSYS v1 fails building v1.7+211 main10 lib for multilib target

Steve Borho steve at borho.org
Tue Jun 23 17:13:25 CEST 2015


On 06/23, Mario *LigH* Rohkr??mer wrote:
> I ran a script closely based on your new 'multilib.sh', using XhmiksoR's
> MSYS archive for Win32 cross-compilation with GCC 4.8.2 on Win7 SP1 x64.
> 
> cmake -G "MSYS Makefiles" ../../../source -DHIGH_BIT_DEPTH=ON
> -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
> make
> 
> +----
> h:/MSYS/home/Entwicklung/x265/source/common/x86/sad16-a.asm:380: error:
> undefined symbol `m8' (first use)
> h:/MSYS/home/Entwicklung/x265/source/common/x86/sad16-a.asm:380: error:
> (Each undefined symbol is reported only once.)
> h:/MSYS/home/Entwicklung/x265/source/common/x86/sad16-a.asm:380: error:
> (HADDUWD:1) undefined symbol `sizeofm8' in preprocessor
> h:/MSYS/home/Entwicklung/x265/source/common/x86/sad16-a.asm:380: error:
> (HADDD:1) undefined symbol `sizeofm8' in preprocessor
> h:/MSYS/home/Entwicklung/x265/source/common/x86/sad16-a.asm:380: error:
> (HADDD:8) undefined symbol `sizeofm8' in preprocessor
> make[2]: *** [common/CMakeFiles/common.dir/x86/sad16-a.asm.obj] Error 1
> make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
> make: *** [all] Error 2

this is unrelated to multilib (-DEXPORT_C_API=OFF). The problem is that
the main10 assembly cannot be compiled for 32bit, so you should add
-DENABLE_ASSEMBLY=OFF to the 10bit cmake command line if you need it to
build a 32bit target (or even better, tell the compiler to target Win64).

-- 
Steve Borho


More information about the x265-devel mailing list