From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Disable gcc-4.8.x + binutils-2.25 + MIPS combination
Date: Thu, 2 Jul 2015 23:46:17 +0200 [thread overview]
Message-ID: <20150702234617.4d33bb5f@free-electrons.com> (raw)
In-Reply-To: <1435850348-19416-1-git-send-email-Vincent.Riera@imgtec.com>
Dear Vicente Olivert Riera,
On Thu, 2 Jul 2015 17:19:08 +0200, Vicente Olivert Riera wrote:
> This combination causes a compilation failure of the host-gcc-final
> recipe like this one:
>
> /br/output/host/usr/mips-buildroot-linux-gnu/bin/ld:
> .libs/gload.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not
> be used when making a shared object; recompile with -fPIC
>
> The problem is the file 'libatomic/gload.c' is compiled without -fPIC
> when using binutils-2.25. All gcc (with libatomic) versions below 4.9.3
> are affected by this issue.
>
> Here is a summary of affected/unaffected versions in Buildroot:
>
> 4.7.x: unaffected (doesn't have libatomic)
> 4.8.x: affected
> 4.9.x: unaffected (we have 4.9.3 which is fixed)
> 5.1.x: unaffected
>
> The fix can be found here:
>
> https://github.com/gcc-mirror/gcc/commit/57f5c0954f95cb37f995d60167ddde06c7d6e697
>
> However, given the following reasons...
>
> - Upstream gcc 4.8 branch is closed.
> - The fix is very hard to backport from 4.9 to 4.8.
> - This stuff is insanely sensitive and not working at all could be
> better than looking like it works but not quite.
>
> ...I think the best choice is to disable that combination in Buildroot.
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
> package/gcc/Config.in.host | 2 ++
> 1 file changed, 2 insertions(+)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
prev parent reply other threads:[~2015-07-02 21:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 15:19 [Buildroot] [PATCH] Disable gcc-4.8.x + binutils-2.25 + MIPS combination Vicente Olivert Riera
2015-07-02 20:55 ` Yann E. MORIN
2015-07-02 21:46 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150702234617.4d33bb5f@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox