Menu

#7 Fix build on -fno-common compilers (gcc-10+)

Unstable (example)
open
nobody
None
5
2021-09-25
2021-09-25
No

Hia! It's an upstream report of downstream build failure at https://github.com/NixOS/nixpkgs/pull/137502

There omxil fails to build as:

ld: base/.libs/libomxbase.a(libomxbase_la-OMXComponentRMExt.o):(.bss+0x10): multiple definition of `listOfcomponentRegistered'; .libs/libomxil_bellagio_la-st_static_component_loader.o:(.bss+0x350): first defined here
ld: base/.libs/libomxbase.a(libomxbase_la-OMXComponentRMExt.o):(.bss+0x18): multiple definition of `globalIndex'; .libs/libomxil_bellagio_la-st_static_component_loader.o:(.bss+0x358): first defined here
collect2: error: ld returned 1 exit status

gcc-10 changed the default from -fcommon to fno-common: https://gcc.gnu.org/PR85678.

Attached the patch that seems to be enough to fix it.

1 Attachments

Discussion


Log in to post a comment.