[vlc-devel] Error in compilation

Hugo Beauzée-Luyssen hugo at beauzee.fr
Tue May 16 18:21:22 CEST 2017


On Tue, May 16, 2017, at 06:17 PM, francesco at bltitalia.com wrote:
> Hi to all
> i'm compiling for Windows using a Ubuntu system. I followed all
> instruction from wiky:
> 
> https://wiki.videolan.org/Win32Compile/
> 
> but during final make I receive this error:
> 
>  CXXLD    libdshow_plugin.la
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x2c):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `_ITM_RU1'
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x39):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `transaction clone for operator new[](unsigned long long)'
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x5d):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `_ITM_memcpyRtWn'
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z23_txnal_cow_string_c_strPKv+0x1):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `_ITM_RU8'
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z23_txnal_sso_string_c_strPKv+0x1):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `_ITM_RU8'
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z20_txnal_cow_string_D1Pv+0x5):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `_ITM_RU8'
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_Z20_txnal_cow_string_D1Pv+0x1e):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `_ITM_addUserCommitAction'
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_ZGTtNSt11logic_errorC1EPKc+0x2e):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `_ITM_memcpyRnWt'
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_ZGTtNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x2e):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `_ITM_memcpyRnWt'
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_ZGTtNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x36):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol
> `_ITM_RU8'
> /usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/libstdc++.a(cow-stdexcept.o):(.text$_ZGTtNSt11logic_errorD0Ev+0x1a):
> additional relocation overflows omitted from the output
> collect2: error: ld returned 1 exit status
> Makefile:12109: set di istruzioni per l'obiettivo "libdshow_plugin.la"
> non
> riuscito
> make[4]: *** [libdshow_plugin.la] Errore 1
> make[4]: uscita dalla directory "/home/alfredo/vlc/win32/modules"
> Makefile:23114: set di istruzioni per l'obiettivo "all-recursive" non
> riuscito
> make[3]: *** [all-recursive] Errore 1
> make[3]: uscita dalla directory "/home/alfredo/vlc/win32/modules"
> Makefile:9600: set di istruzioni per l'obiettivo "all" non riuscito
> make[2]: *** [all] Errore 2
> make[2]: uscita dalla directory "/home/alfredo/vlc/win32/modules"
> Makefile:1517: set di istruzioni per l'obiettivo "all-recursive" non
> riuscito
> make[1]: *** [all-recursive] Errore 1
> make[1]: uscita dalla directory "/home/alfredo/vlc/win32"
> Makefile:1402: set di istruzioni per l'obiettivo "all" non riuscito
> make: *** [all] Errore 2
> 
> How can I solve
> Regards
> Francesco
> 
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

Hi,

This is a libc++ bug which was fixed, but not yet released
(https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=247502)
In the meantime, you can try to use the docker image we provide (with a
patched compiler) by running
docker run -it registry.videolan.org:5000/vlc-debian-win64 /bin/bash
or you'll need to rebuild your toolchain.
Please note however that x86 builds are not affected

Regards,

-- 
  Hugo Beauzée-Luyssen
  hugo at beauzee.fr


More information about the vlc-devel mailing list