[Buildroot] Analysis of build results for 2016-02-21
olivier.schonken at gmail.com
Tue Feb 23 07:34:31 UTC 2016
Hi Thomas, All
The suggestion from Romain to disable -fPIE as below works for both
architectures. Can I submit a patch for this? Or do you want to wait for a
response from Alexey and Waldemar?
# Remove -fPIE -pie from CFLAGS
CUPS_CONF_OPTS += LSB_BUILD=y
On 23 February 2016 at 00:21, Thomas Petazzoni <
thomas.petazzoni at free-electrons.com> wrote:
> Hello Olivier,
> On Mon, 22 Feb 2016 21:05:00 +0200, Olivier Schonken wrote:
> > arm | cups-2.1.2 | NOK |
> > arc | cups-2.1.2 | NOK |
> > Both error cases looks like it has to do with uclibc not behaving as
> > expected at link time for the ippserver build (Both builds link
> > with position independent execution also set). For the arm platform it
> > can't find the Scrt1.o file, and for the ARC compiler, __init_array_end
> > undefined.
> > I haven't considered all the options yet, but two that come to mind are
> > disabling cups support for uclibc type compilers, or else to disable the
> > cups test-framework.
> Disabling for uClibc is completely overkill: this problem only occurs
> on ARM with static linking and on ARC. CUPS builds perfectly fine on
> ARM/uClibc when dynamic linking is used.
> The problem is that CUPS forcefully uses PIE support, and:
> 1/ Our static-only toolchain for ARM that uses uClibc-ng does not
> contain Scrt1.o, while a dynamic-linking enabled uClibc-ng ARM
> toolchain does have it. Due to this, trying to link a minimal C
> program with -fPIE -pie fails. I'm Cc'ing Waldemar, the uClibc-ng
> maintainer, to get his input on this.
> 2/ PIE is not supported by the ARC architecture, and should not be
> used. Unfortunately, the configure script of CUPS only does an
> AC_TRY_COMPILE() test to verify the support of PIE in the compiler,
> but on ARC, it only fails at link time, so the test should be an
> AC_TRY_LINK(). Olivier, could you try to fix the cups stuff so that
> we can autoreconf it properly, and therefore fix such issues in the
> cups configure.ac ? I'm also Cc'ing Alexey from Synopsys, who can
> give more details about the PIE issue on ARC.
> Thanks for your investigation!
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the buildroot