From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] pcre: fix compile error for m68k coldfire
Date: Fri, 19 Aug 2016 23:13:48 +0200 [thread overview]
Message-ID: <20160819231348.2127118e@free-electrons.com> (raw)
In-Reply-To: <20160818062535.GA28475@waldemar-brodkorb.de>
Hello,
On Thu, 18 Aug 2016 08:25:35 +0200, Waldemar Brodkorb wrote:
> +# fixes gcc error: value -yyyyy out of range
> +ifeq ($(BR2_m68k_cf),y)
> +PCRE_CFLAGS = $(filter-out -msep-data,$(TARGET_CFLAGS))
> +PCRE_CONF_ENV += CFLAGS="$(PCRE_CFLAGS)"
> +endif
We discussed this on IRC, but since not everyone is on IRC, and Google
is also not archiving the IRC discussions, I believe it's good if I
give a summary of our discussion here.
Basically, I don't like the solution that this patch implements. The
reason why -msep-data is passed is because the user has selected
BR2_BINFMT_FLAT_SEP_DATA as the FLAT format, instead of the default
BR2_BINFMT_FLAT_ONE. BR2_BINFMT_FLAT_SEP_DATA is useful to separate
code from data, which is needed when you want to do XIP (code stays in
flash, but data needs to be loaded in RAM, so they have to be
separated).
By dropping -msep-data, you are basically producing a non-XIP capable
binary, while the user has explicitly requested
BR2_BINFMT_FLAT_SEP_DATA. So silently dropping -msep-data is IMO not
acceptable.
So we have several options here:
1/ Mark pcre as not available for BR2_BINFMT_FLAT_SEP_DATA. But pcre
has gazillions of reverse dependencies, and I expect the issue of
-msep-data to show up on many many packages, as soon as they have a
fairly large binary size.
2/ Actually fix up the problem, but I'm not sure it's even doable.
3/ Decide that we don't support BR2_BINFMT_FLAT_SEP_DATA at all on
m68k. On master, BR2_BINFMT_FLAT_ONE was not available for m68k due
to kernel issues, but they have been resolved, and
BR2_BINFMT_FLAT_ONE is now enabled on m68k in the next branch. So I
would suggest to also enable BR2_BINFMT_FLAT_ONE on m68k in master,
disallow the selection of BR2_BINFMT_FLAT_SEP_DATA. If in the
future someone is interested by -msep-data on m68k, this person can
always restart the work and see how to fix the issues.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-08-19 21:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-18 6:25 [Buildroot] [PATCH] pcre: fix compile error for m68k coldfire Waldemar Brodkorb
2016-08-19 21:13 ` Thomas Petazzoni [this message]
2016-08-19 21:24 ` Waldemar Brodkorb
2016-08-22 15:30 ` Peter Korsgaard
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=20160819231348.2127118e@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