From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Alexey Brodkin via buildroot <buildroot@buildroot.org>
Cc: Alexey Brodkin <Alexey.Brodkin@synopsys.com>,
"Yann E . MORIN" <yann.morin.1998@free.fr>,
Vladimir Isaev <VVIsaev@gmail.com>,
Pavel Kozlov <Pavel.Kozlov@synopsys.com>
Subject: Re: [Buildroot] [PATCH] arch: Set max/common-page-size for libgcc & libstdc++
Date: Thu, 4 Jan 2024 22:19:41 +0100 [thread overview]
Message-ID: <20240104221941.044adcb5@windsurf> (raw)
In-Reply-To: <20240103102311.4048759-1-abrodkin@synopsys.com>
Hello Alexey,
Thanks for the patch. See below some comments.
On Wed, 3 Jan 2024 02:23:11 -0800
Alexey Brodkin via buildroot <buildroot@buildroot.org> wrote:
> I would agree that it gets more and more ugly, but so far I cannot see
> any more elegant solution. So if there're suggestions how to improve,
> let's discuss.
Indeed, it's not super great as you realized yourself. Also, I believe
it's not the first time we identify a discrepancy in CFLAGS that are in
the wrapper, but that we forget to pass when building gcc/libc. See
your own commit d2ae7eb2a24c9033f8d8a9f81c5fe2ff2febdb5f from 2020,
which also added -matomic in gcc.mk.
Things are also a bit messy in the different C libraries:
- uClibc is built with $(TARGET_ABI) and $(TARGET_DEBUGGING)
- glibc is built with $(TARGET_OPTIMIZATION) and a bunch of additional
flags
- musl is built with the full $(TARGET_CFLAGS)
Seems a bit meh to me.
So I think ideally we would to distinguish in a clear manner:
- CFLAGS that are passed through the wrapper, and which therefore need
to be manually passed when building gcc and C libraries
- CFLAGS that are passed through the environment
I think at least for now what could be done is to use
$(ARCH_TOOLCHAIN_WRAPPER_OPTS) in gcc.mk.
But I'm surprised they are not needed also in the C library build. Why
are you not seeing the same problem with the C library build, it should
also need the same page size flags, doesn't it?
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-01-04 21:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-03 10:23 [Buildroot] [PATCH] arch: Set max/common-page-size for libgcc & libstdc++ Alexey Brodkin via buildroot
2024-01-04 21:19 ` Thomas Petazzoni via buildroot [this message]
2024-01-04 21:34 ` Yann E. MORIN
2024-01-04 21:38 ` Thomas Petazzoni via buildroot
2024-01-04 22:22 ` Alexey Brodkin via buildroot
2024-01-04 22:42 ` Thomas Petazzoni via buildroot
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=20240104221941.044adcb5@windsurf \
--to=buildroot@buildroot.org \
--cc=Alexey.Brodkin@synopsys.com \
--cc=Pavel.Kozlov@synopsys.com \
--cc=VVIsaev@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=yann.morin.1998@free.fr \
/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