This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: multiple definition of symbols" when linking executables on ARM32 and AArch64
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: "doko at ubuntu dot com" <doko at ubuntu dot com>, Andrew Pinski <pinskia at gmail dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 6 Jan 2020 12:30:26 +0000
- Subject: Re: multiple definition of symbols" when linking executables on ARM32 and AArch64
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YOkEQpepWvFoEx1IpHtZE61fGP7B9/sAI9nilBfuSxQ=; b=i1rNYJRczPWrN5h8kwJ/zWF71Rh/pLaJB437vCVpbEWllI+b93ofXqtXVAwuPfsdAXdTDFW2SeG6GseZ46iKH+P0m2zvRh78KDyb5tMWeD6Roci4piXMVVsAvCUN4vbMquTywvDzgphbtLdwVtLyrTnEr9iI/zivrCkbhRJOlZS0PQCtfuFOnVvUTEKJZtdlCgcqPIXQ6vMI3Y1M8pTA2t/n8DGg/YtkbM3kP/uP5gAyUvxa0LdBCDLv8gLafP8Ds+wvJcS8XXw48S4W7WuhutXtXY9c1IfW8zpAZkjDQHCz7NjANxkpbCXfhy5VDUsMSTQ7btMT+8VDznx4SRnWKA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bzyzateAfeytdRczMmlCJCc5qZoW3MdK7y++bm08hDdtWuOKc32YOywH0Yuvu/RtPeNDUs7lux2wXE5ob5nGdf+V/0cAE/ZlOjb+kJmn3LW5j9Yxx1+c/NV/FWE/IZuK1BBB5wx+y6EtD7X6GHdkD0g1XwI9jfmT5mt+TI12MkGw4Ws93nX5kj8509eQ3+zPS6KCLCfoCZEh8SpBlLLglg47xSeuydt74PZikewMkM7qWXYuZZCEuK/mgBY2kZDAp9K2ICevsLSS5lPD7ZeKZofbMmh8/+p7ifCExcr2DkK12g5SFZJnznbCVh+JVm3VHQJ6SIHgc4MR3x6kih3+pw==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco dot Dijkstra at arm dot com;
On 06.01.20 11:03, Andrew Pinski wrote:
> +GCC
>
> On Mon, Jan 6, 2020 at 1:52 AM Matthias Klose <doko@ubuntu.com> 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.
>
> THIS IS NOT A BINUTILS OR GCC BUG.
> GCC changed the default to -fno-common.
> It seems like for some reason, your non-aarch64/arm builds had changed
> the default back to being with -fcommon turned on.
> what would that be? I'm not aware of any active change doing that. Packages
> build on x86, ppc64el and s390x at least.
Well if you want to build old archived code using latest GCC then you may need to
force -fcommon just like you need to add many warning disables. Maybe you were
using an older GCC for the other targets? As Andrew notes, this isn't Arm-specific.
Wilco