[x265] MinGW GCC 4.7.1: Link failure with c881d82f9d85

Steve Borho steve at borho.org
Mon Aug 26 01:38:14 CEST 2013


On Sat, Aug 24, 2013 at 2:50 PM, Nikos Barkas <nikbar2004 at yahoo.com> wrote:

> Hi
>
> Just came back after a few days of vacation and tried to build the latest
> and greatest x265 on my MinGW GCC 4.7.1-TDM setup. It builds fine, but I am
> getting this at the final step during link:
>
> encoder/libencoder.a(framefilter.cpp.obj):framefilter.cpp:(.text+0x75d):
> undefined reference to `__sync_val_compare_and_swap_4'
> collect2.exe: error: ld returned 1 exit status
> make[2]: *** [x265.exe] Error 1
> make[1]: *** [CMakeFiles/x265.dir/all] Error 2
> make: *** [all] Error 2
>
> After some quick investigation on the internet, it looks like one solution
> to the problem is to add -march=i486 to the compiler flags. This enables a
> successful link and the executable runs correctly as far as I can see.
> Other (better) solutions might exist and personally I'd be happy to not
> have to specify -march switches for the build if possible.
>

Thanks, we were already doing this for a few files in common/ so I just
needed to copy the same workaround for this one file in the encoder/ folder.

-- 
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.videolan.org/private/x265-devel/attachments/20130825/8ab27538/attachment.html>


More information about the x265-devel mailing list