multiple definition of symbols" when linking executables on ARM32 and AArch64

Szabolcs Nagy Szabolcs.Nagy@arm.com
Mon Jan 6 10:39:00 GMT 2020


On 06/01/2020 09:51, Matthias Klose wrote:
> In an archive test rebuild with binutils and GCC trunk, I see a lot of build
> failures on both aarch64-linux-gnu and arm-linux-gnueabihf failing with
> "multiple definition of symbols" when linking executables, e.g.

gcc trunk made -fno-common the default which can cause
such failures i think (e.g. if tentative definitions
appear in header files it will create multiple definitions
everywhere where the header is included)

try if CC='gcc -fcommon' fixes the build.


More information about the Binutils mailing list