[vlc-devel] Cross-compiling for w64 on Ubuntu x86_64 fails

Jarrad Whitaker jarrad.whitaker at gmail.com
Wed Nov 5 15:41:18 CET 2014


Hi,

Trying to crosscompile for w64-mingw32 on Ubuntu 14.04 x86_64, as per wiki.
So far the following bits have required disabling:
-gme
-sid
-x265 (I think your project lead gave this hint to a forum poster on
this same issue, don't know if it was ever resolved)

At this point, Matroska and libtag are error-ing out as well so I have
abandoned the idea of compiling by just disabling components. Is there
any reason this could be happening? I used the prebuilt contribs,
again as per wiki. My system gcc is 4.9 whereas mingw32 gcc is 4.8,
but this is stock standard Ubuntu 14.04 configuration, and I've tried
with /usr/bin/[gcc|g++] pointing at 4.8 anyway. The reason I bring
this up is that a few stackexchange queries on this issue have pointed
to compiler mismatches (as well as trying to link a c++ object file
with gcc instead of g++).

An excerpt from the start of the errors is appended to this email. The
rest continues in the same manner and is available for your kind
perusal at https://gist.github.com/akdor1154/4c1c73c3a1e1259f641a .

My config.status is at https://gist.github.com/akdor1154/7c9c43329b410853b439 .

Any help would be appreciated, once this gets building properly I want
to start work on hidpi support on Win and Linux.

Cheers!
Jarrad

Excerpt:

/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSemantic.o):
duplicate section
`.rdata$_ZTVN11libmatroska21KaxChapterProcessDataE[_ZTVN11libmatroska21KaxChapterProcessDataE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSemantic.o):
duplicate section
`.rdata$_ZTVN11libmatroska24KaxChapterProcessPrivateE[_ZTVN11libmatroska24KaxChapterProcessPrivateE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSemantic.o):
duplicate section
`.rdata$_ZTVN11libmatroska27KaxChapterSegmentEditionUIDE[_ZTVN11libmatroska27KaxChapterSegmentEditionUIDE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSemantic.o):
duplicate section
`.rdata$_ZTVN11libmatroska20KaxChapterSegmentUIDE[_ZTVN11libmatroska20KaxChapterSegmentUIDE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSemantic.o):
duplicate section
`.rdata$_ZTVN11libmatroska22KaxContentCompSettingsE[_ZTVN11libmatroska22KaxContentCompSettingsE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSemantic.o):
duplicate section
`.rdata$_ZTVN11libmatroska21KaxChapterTranslateIDE[_ZTVN11libmatroska21KaxChapterTranslateIDE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSemantic.o):
duplicate section
`.rdata$_ZTVN11libmatroska16KaxSegmentFamilyE[_ZTVN11libmatroska16KaxSegmentFamilyE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSemantic.o):
duplicate section
`.rdata$_ZTVN11libmatroska13KaxSegmentUIDE[_ZTVN11libmatroska13KaxSegmentUIDE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxInfoData.o):
duplicate section
`.rdata$_ZTVN11libmatroska10KaxNextUIDE[_ZTVN11libmatroska10KaxNextUIDE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxInfoData.o):
duplicate section
`.rdata$_ZTVN11libmatroska10KaxPrevUIDE[_ZTVN11libmatroska10KaxPrevUIDE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxInfoData.o):
duplicate section
`.rdata$_ZTVN11libmatroska13KaxSegmentUIDE[_ZTVN11libmatroska13KaxSegmentUIDE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libebml.a(EbmlSubHead.o):
duplicate section
`.rdata$_ZTVN7libebml19EDocTypeReadVersionE[_ZTVN7libebml19EDocTypeReadVersionE]'
has different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libebml.a(EbmlSubHead.o):
duplicate section
`.rdata$_ZTVN7libebml8EDocTypeE[_ZTVN7libebml8EDocTypeE]' has
different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libebml.a(StdIOCallback.o):
duplicate section
`.rdata$_ZTVN7libebml10IOCallbackE[_ZTVN7libebml10IOCallbackE]' has
different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libebml.a(MemIOCallback.o):
duplicate section
`.rdata$_ZTVN7libebml10IOCallbackE[_ZTVN7libebml10IOCallbackE]' has
different size
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSegment.o):
In function `libmatroska::KaxSegment::KaxSegment(libmatroska::KaxSegment
const&)':
/home/buildslave/vlc-contrib-win64-x86_64/build/contrib/win/libmatroska/make/mingw32/../../src/KaxSegment.cpp:56:
undefined reference to `_Unwind_Resume'
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSegment.o):KaxSegment.cpp:(.data+0x0):
undefined reference to `__gxx_personality_seh0'
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSegment.o):
In function `libmatroska::KaxSegment::Clone() const':
/home/buildslave/vlc-contrib-win64-x86_64/build/contrib/win/libmatroska/make/mingw32/../../matroska/KaxSegment.h:46:
undefined reference to `_Unwind_Resume'
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSegment.o):KaxSegment.cpp:(.xdata$_ZNK11libmatroska10KaxSegment5CloneEv+0x10):
undefined reference to `__gxx_personality_seh0'
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSegment.o):
In function `libmatroska::KaxSegment::Create()':
/home/buildslave/vlc-contrib-win64-x86_64/build/contrib/win/libmatroska/make/mingw32/../../matroska/KaxSegment.h:46:
undefined reference to `_Unwind_Resume'
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSegment.o):KaxSegment.cpp:(.xdata$_ZN11libmatroska10KaxSegment6CreateEv+0x10):
undefined reference to `__gxx_personality_seh0'
/home/jarrad/src/vlc/contrib/x86_64-w64-mingw32/lib/libmatroska.a(KaxSegment.o):KaxSegment.cpp:(.xdata+0x18):
undefined reference to `__gxx_personality_seh0'



More information about the vlc-devel mailing list