From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC] best way to fix a valgrind gcc 5 compile error on MIPS Octeon2
Date: Wed, 19 Jul 2017 10:16:20 +0200 [thread overview]
Message-ID: <20170719101620.065670bb@windsurf> (raw)
In-Reply-To: <88778A28-0DC4-4E6C-ADBC-D2D8E48392E2@exablox.com>
Hello,
Adding Vicente in Cc.
On Wed, 19 Jul 2017 00:04:39 +0000, Charles Hardin wrote:
> Looks like pilot error - we were using a gcc compiled toolchain and even though
> this sets the ?march? to octeon2 - the gcc results and wrappers don?t override the setup
> for march flags. This just means that in valgrind - our build results in the FLAG_MIPS64
> getting set to ?-march=mips64? and not in a using a default config with something like
> BR2_mips_64r2=y.
Sorry, but I don't really understand what you say here. So you added
additional MIPS architecture variants (octeon, octeon2, octeon3), and
you were using this new BR2_mips_octeon2=y option. So far so good,
octeon, octeon2 and octeon3 are valid MIPS architecture variants for
gcc (and perhaps it would be good to have them in Buildroot).
However, did you adjust the BR2_GCC_TARGET_ARCH definition in
arch/Config.in.mips to properly associate those MIPS cores to the right
-march option? Indeed you must add something like:
config BR2_GCC_TARGET_ARCH
...
default "octeon" if BR2_mips_octeon
default "octeon2" if BR2_mips_octeon2
default "octeon3" if BR2_mips_octeon3
This will set --with-arch=octeon2 when building gcc.
Can you try with this? I believe it would be useful to have the Octeon
family supported in Buildroot, as they seem to be quite popular.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
prev parent reply other threads:[~2017-07-19 8:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-18 3:00 [Buildroot] [RFC] best way to fix a valgrind gcc 5 compile error on MIPS Octeon2 Charles Hardin
2017-07-18 8:01 ` Thomas Petazzoni
[not found] ` <88778A28-0DC4-4E6C-ADBC-D2D8E48392E2@exablox.com>
2017-07-19 8:16 ` 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=20170719101620.065670bb@windsurf \
--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