libatomic support for mips32
Hi ffmpeg user, We are cross compiling ffmpeg with mips32 architecture but our toolchain does not support libatomic and is facing the following error. "Undefined reference to __sync_fetch_and_add_8" Please provide us with support. -- *With best regards,* ARAVINTH K VVDN Technologies Pvt Ltd Cell: +91 8754832799 Web : www.vvdntech.com -- _Disclaimer: _© 2022 VVDN Technologies Pvt. Ltd. This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful._ _ _ _ __
On Tue, 26 Jul 2022 at 10:02, Aravinth Kathiravan < aravinth.kathiravan@vvdntech.in> wrote:
Hi ffmpeg user, We are cross compiling ffmpeg with mips32 architecture but our toolchain does not support libatomic and is facing the following error. "Undefined reference to __sync_fetch_and_add_8" Please provide us with support.
-- *With best regards,* ARAVINTH K VVDN Technologies Pvt Ltd Cell: +91 8754832799 Web : www.vvdntech.com
Hello there, Your query is compiler related, and is not specific to ffmpeg. You'll need to fix your toolchain first. Generally, you'll need to have GCC built without libatomic to build the target cross-compiler with libatomic enabled. The intermediary compiler will serve to build your Compiler Runtime AND libatomic, so that the target compiler can use these missing features. See this recipe for an example: https://github.com/malaterre/OpenELEC.tv/blob/70dbe25c1647f01eb83c108939c470... You may also be interested in replicating the same with crosstool-ng: https://crosstool-ng.github.io/docs/configuration/ Warm regards, Dennis.
On 26 juil. 2022 12:31, Aravinth Kathiravan <aravinth.kathiravan@vvdntech.in> wrote:
Hi ffmpeg user, We are cross compiling ffmpeg with mips32 architecture but our toolchain does not support libatomic and is facing the following error. "Undefined reference to __sync_fetch_and_add_8"
Add "--extra-libs=-latomic" confgure option. Christian
participants (3)
-
Aravinth Kathiravan -
Christian Marillat -
Dennis Mungai