public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/26360] New: glibc 2.32 fails to crosscompile to ppc64le-linux-gnu using gcc 10.2.0
@ 2020-08-10  3:45 bero at lindev dot ch
  2020-08-10 14:21 ` [Bug build/26360] " carlos at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bero at lindev dot ch @ 2020-08-10  3:45 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=26360

            Bug ID: 26360
           Summary: glibc 2.32 fails to crosscompile to ppc64le-linux-gnu
                    using gcc 10.2.0
           Product: glibc
           Version: 2.32
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: bero at lindev dot ch
                CC: carlos at redhat dot com
  Target Milestone: ---

Trying to crosscompile glibc 2.32 with a ppc64le-linux-gnu-gcc 10.2.0
crosscompiler on an x86_64-linux-gnu fails.

If -Werror is enabled, it errors out on:

In file included from ../argp/argp.h:23,
                 from ../include/argp.h:2,
                 from ../sysdeps/ieee754/ldbl-opt/nldbl-compat.c:25:
../include/stdio.h:186:1: error: ‘asm’ declaration ignored due to conflict with
previous rename [-Werror=pragmas]
  186 | libc_hidden_ldbl_proto (__asprintf)
      | ^~~~~~~~~~~~~~~~~~~~~~
../include/stdio.h:211:1: error: ‘asm’ declaration ignored due to conflict with
previous rename [-Werror=pragmas]
  211 | libc_hidden_ldbl_proto (dprintf)
      | ^~~~~~~~~~~~~~~~~~~~~~
../include/stdio.h:212:1: error: ‘asm’ declaration ignored due to conflict with
previous rename [-Werror=pragmas]
  212 | libc_hidden_ldbl_proto (fprintf)
      | ^~~~~~~~~~~~~~~~~~~~~~
../include/stdio.h:213:1: error: ‘asm’ declaration ignored due to conflict with
previous rename [-Werror=pragmas]
  213 | libc_hidden_ldbl_proto (vfprintf)
      | ^~~~~~~~~~~~~~~~~~~~~~
../include/stdio.h:214:1: error: ‘asm’ declaration ignored due to conflict with
previous rename [-Werror=pragmas]
  214 | libc_hidden_ldbl_proto (sprintf)
      | ^~~~~~~~~~~~~~~~~~~~~~


Without -Werror, it gets past that point, but later on errors out saying

In file included from <command-line>:
../sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c:22:23: error: ‘_IO_sscanf’ aliased
to undefined symbol ‘sscanf’
   22 | strong_alias (sscanf, _IO_sscanf)
      |                       ^~~~~~~~~~
./../include/libc-symbols.h:140:26: note: in definition of macro
‘_strong_alias’
  140 |   extern __typeof (name) aliasname __attribute__ ((alias (#name))) \
      |                          ^~~~~~~~~
../sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c:22:1: note: in expansion of macro
‘strong_alias’
   22 | strong_alias (sscanf, _IO_sscanf)
      | ^~~~~~~~~~~~


Other targets, including non-le ppc64-linux-gnu, compile fine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2020-12-07 18:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10  3:45 [Bug build/26360] New: glibc 2.32 fails to crosscompile to ppc64le-linux-gnu using gcc 10.2.0 bero at lindev dot ch
2020-08-10 14:21 ` [Bug build/26360] " carlos at redhat dot com
2020-08-10 15:54 ` bero at lindev dot ch
2020-10-23 21:39 ` suratiamol at gmail dot com
2020-12-06 23:35 ` bero at lindev dot ch
2020-12-07 18:15 ` joseph at codesourcery dot com

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).