unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* build-many-glibcs: powerpc-linux-gnu-soft configuration builds with hard float, link fails
@ 2019-05-21 14:01 Zack Weinberg
  2019-05-21 20:35 ` Tulio Magno Quites Machado Filho
  0 siblings, 1 reply; 4+ messages in thread
From: Zack Weinberg @ 2019-05-21 14:01 UTC (permalink / raw)
  To: GNU C Library, Joseph Myers

[-- Attachment #1: Type: text/plain, Size: 2643 bytes --]

I'm seeing a build failure under build-many-glibcs for the
powerpc-linux-gnu-soft configuration.  The syndrome is that some (but
not all) of the object files going into libc_pic.os are compiled with
-mhard-float and so the final link of libc.so.6 blows up:

/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/../../../../powerpc-glibc-linux-gnu/bin/ld:
/home/zack/projects/gnu/glibc-many/build/glibcs/powerpc-linux-gnu-soft/glibc/libc_pic.os
uses hard float,
/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/libgcc.a(_floatditf.o)
uses soft float
/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/../../../../powerpc-glibc-linux-gnu/bin/ld:
failed to merge target specific data of file
/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/libgcc.a(_floatditf.o)
/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/../../../../powerpc-glibc-linux-gnu/bin/ld:
/home/zack/projects/gnu/glibc-many/build/glibcs/powerpc-linux-gnu-soft/glibc/libc_pic.os
uses hard float,
/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/libgcc.a(ibm-ldouble.o)
uses soft float
/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/../../../../powerpc-glibc-linux-gnu/bin/ld:
failed to merge target specific data of file
/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/libgcc.a(ibm-ldouble.o)
/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/../../../../powerpc-glibc-linux-gnu/bin/ld:
/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/libgcc.a(ibm-ldouble.o):
in function `__gcc_qadd':
/home/zack/projects/gnu/glibc-many/src/gcc/libgcc/config/rs6000/ibm-ldouble.c:126:
undefined reference to `__adddf3'
/home/zack/projects/gnu/glibc-many/install/compilers/powerpc-linux-gnu-soft/lib/gcc/powerpc-glibc-linux-gnu/9.1.1/../../../../powerpc-glibc-linux-gnu/bin/ld:
/home/zack/projects/gnu/glibc-many/src/gcc/libgcc/config/rs6000/ibm-ldouble.c:128:
undefined reference to `__unorddf2'
[etc]

The complete set of logs are attached. Can someone who understands the
configuration space for PowerPC cross compilation please investigate?

zw

[-- Attachment #2: powerpc-linux-gnu-soft-logs.tar.gz --]
[-- Type: application/gzip, Size: 216166 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: build-many-glibcs: powerpc-linux-gnu-soft configuration builds with hard float, link fails
  2019-05-21 14:01 build-many-glibcs: powerpc-linux-gnu-soft configuration builds with hard float, link fails Zack Weinberg
@ 2019-05-21 20:35 ` Tulio Magno Quites Machado Filho
  2019-05-21 20:40   ` Zack Weinberg
  0 siblings, 1 reply; 4+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2019-05-21 20:35 UTC (permalink / raw)
  To: Zack Weinberg, GNU C Library, Joseph Myers

Zack Weinberg <zackw@panix.com> writes:

> I'm seeing a build failure under build-many-glibcs for the
> powerpc-linux-gnu-soft configuration.  The syndrome is that some (but
> not all) of the object files going into libc_pic.os are compiled with
> -mhard-float and so the final link of libc.so.6 blows up:

Is this happening after you apply your patch?

If so, please check if you removed the following line was removed from
sysdeps/powerpc/preconfigure:

with_fp_cond="!defined __NO_FPRS__"


This variable must be defined per configure.ac:

# A preconfigure script for a system that may or may not use fpu
# sysdeps directories sets this to a preprocessor conditional for
# whether to use such directories.
with_fp_cond=1

-- 
Tulio Magno

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: build-many-glibcs: powerpc-linux-gnu-soft configuration builds with hard float, link fails
  2019-05-21 20:35 ` Tulio Magno Quites Machado Filho
@ 2019-05-21 20:40   ` Zack Weinberg
  2019-05-22 14:16     ` Zack Weinberg
  0 siblings, 1 reply; 4+ messages in thread
From: Zack Weinberg @ 2019-05-21 20:40 UTC (permalink / raw)
  To: Tulio Magno Quites Machado Filho; +Cc: GNU C Library, Joseph Myers

On Tue, May 21, 2019 at 4:35 PM Tulio Magno Quites Machado Filho
<tuliom@ascii.art.br> wrote:
> Zack Weinberg <zackw@panix.com> writes:
>
> > I'm seeing a build failure under build-many-glibcs for the
> > powerpc-linux-gnu-soft configuration.  The syndrome is that some (but
> > not all) of the object files going into libc_pic.os are compiled with
> > -mhard-float and so the final link of libc.so.6 blows up:
>
> Is this happening after you apply your patch?
>
> If so, please check if you removed the following line was removed from
> sysdeps/powerpc/preconfigure:
>
> with_fp_cond="!defined __NO_FPRS__"

Aha, yes, that might be the problem.  I will restore that line,
retest, and report back.

zw

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: build-many-glibcs: powerpc-linux-gnu-soft configuration builds with hard float, link fails
  2019-05-21 20:40   ` Zack Weinberg
@ 2019-05-22 14:16     ` Zack Weinberg
  0 siblings, 0 replies; 4+ messages in thread
From: Zack Weinberg @ 2019-05-22 14:16 UTC (permalink / raw)
  To: Tulio Magno Quites Machado Filho; +Cc: GNU C Library, Joseph Myers

On Tue, May 21, 2019 at 4:40 PM Zack Weinberg <zackw@panix.com> wrote:
> On Tue, May 21, 2019 at 4:35 PM Tulio Magno Quites Machado Filho
> <tuliom@ascii.art.br> wrote:
> > Zack Weinberg <zackw@panix.com> writes:
> >
> > > I'm seeing a build failure under build-many-glibcs for the
> > > powerpc-linux-gnu-soft configuration.  The syndrome is that some (but
> > > not all) of the object files going into libc_pic.os are compiled with
> > > -mhard-float and so the final link of libc.so.6 blows up:
> >
> > Is this happening after you apply your patch?
> >
> > If so, please check if you removed the following line was removed from
> > sysdeps/powerpc/preconfigure:
> >
> > with_fp_cond="!defined __NO_FPRS__"
>
> Aha, yes, that might be the problem.  I will restore that line,
> retest, and report back.

This was indeed the problem.  I have posted a revised patch for the
removal of the SPE subarchitecture from glibc.  Tulio, you may get two
copies because I fat-fingered the git send-email operation, sorry
about that.

zw

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-22 14:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-21 14:01 build-many-glibcs: powerpc-linux-gnu-soft configuration builds with hard float, link fails Zack Weinberg
2019-05-21 20:35 ` Tulio Magno Quites Machado Filho
2019-05-21 20:40   ` Zack Weinberg
2019-05-22 14:16     ` Zack Weinberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).