You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stable-x86_64-pc-windows-gnu: Conflicts with static libgcc #67960
Attempting to compile statically FFmpeg with rav1e's c api causes some linking error
D:/DEV/media-autobuild/media-autobuild_suite/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/DEV/media-autobuild/media-autobuild_suite/local64/lib/librav1e.a(compiler_builtins-477d6ada7584f678.compiler_builtins.1c0g4lf3-cgu.0.rcgu.o): in function `___chkstk_ms':
C:\Users\VssAdministrator\.cargo\registry\src\github.life-white.uk-1ecc6299db9ec823\compiler_builtins-0.1.18\src/x86_64.rs:15: multiple definition of `___chkstk_ms'; D:/DEV/media-autobuild/media-autobuild_suite/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/libgcc.a(_chkstk_ms.o):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Sure, I can try once I have time.
The way I encountered it was trying to compile rav1e(rust but using cargo-c to generate a c library) https://github.com/xiph/rav1e with FFmpeg(C) and compiling them both static. I will try to see if I can get steps to reproduce exactly or if there's a simpler way
./ffmpeg/ffmpeg -h encoder=librav1e
ffmpeg version git-2020-08-12-bb59bdb Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.2.0 (Rev1, Built by MSYS2 project)
configuration: --enable-librav1e --disable-shared --enable-static --disable-ffprobe --pkg-config-flags=--static
libavutil 56. 58.100 / 56. 58.100
libavcodec 58.100.100 / 58.100.100
libavformat 58. 50.100 / 58. 50.100
libavdevice 58. 11.101 / 58. 11.101
libavfilter 7. 87.100 / 7. 87.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
Encoder librav1e [librav1e AV1]:
General capabilities: delay threads
Threading capabilities: auto
Supported pixel formats: yuv420p yuvj420p yuv420p10le yuv420p12le yuv422p yuvj422p yuv422p10l420p yuv420p10le yuv420p12le yuv422p yuvje yuv444p12le422p yuv422p10le yuv422p12le yuv444p yuvj444p yuv444p10le yuv444p12le ... use constant quantizer mode (from -1 to 255) (defaul
librav1e AVOptions:
-qp <int> E..V...... what speed preset to use (from -1 to 10) (default -1... use constant quantizer mode (from -1
to 255) (default -1) ... number of tiles encode with (from -1 to I64_MAX) (de
-speed <int> E..V...... what speed preset to use (from -1 to 10) (default -1)
-tiles <int> E..V...... number of tiles encode with (from -1 to I64_MAX) (default 0)
-tile-rows <int> E..V...... number of tiles rows to encode with (from -1 to I64_MAX) (default 0)
-tile-columns <int> E..V...... number of tiles columns to encode with (from -1 to I64_MAX) (default 0)
-rav1e-params <dictionary> E..V...... set the rav1e configuration using a :-separated list of key=value parameters
Activity
Rollup merge of rust-lang#70846 - tmiasko:compiler-builtins-codegen-u…
Rollup merge of rust-lang#70846 - tmiasko:compiler-builtins-codegen-u…
mati865 commentedon Aug 12, 2020
@1480c1 could you retest with nightly or provide steps to reproduce the error?
1480c1 commentedon Aug 12, 2020
Sure, I can try once I have time.
The way I encountered it was trying to compile rav1e(rust but using cargo-c to generate a c library) https://github.com/xiph/rav1e with FFmpeg(C) and compiling them both static. I will try to see if I can get steps to reproduce exactly or if there's a simpler way
1480c1 commentedon Aug 13, 2020
Hmm, seems like I am no longer able to reproduced inside a clean VM with just msys2 installed
I guess I will close this issue now
mati865 commentedon Aug 13, 2020
Thank you for testing this again.
build: build_wheel.py 打全 5 个 target 的 wheel