public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug time/31625] New: glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined
@ 2024-04-10 11:19 doko at debian dot org
  2024-04-10 11:21 ` [Bug time/31625] " doko at debian dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: doko at debian dot org @ 2024-04-10 11:19 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 31625
           Summary: glibc 2.39 fails to build on sh4-linux-gnu with 64bit
                    time_t, __sigtimedwait64' already defined
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: time
          Assignee: unassigned at sourceware dot org
          Reporter: doko at debian dot org
  Target Milestone: ---

I'm seeing this building a cross glibc 2.39 for sh4-linux-gnu using binutils
2.42 and GCC 13.2 branch.

The build fails with

sh4-linux-gnu-gcc ../sysdeps/unix/sysv/linux/sigtimedwait.c -c -std=gnu11
-fgnu89-inline  -pipe -O2 -g -fdebug-prefix-map=/home/pack
ages/cross/base/u/cross-toolchain-base-ports/glibc-2.39=. -mieee
-fno-delete-null-pointer-checks -Wall -Wwrite-strings -Wundef -fmer
ge-all-constants -frounding-math -fstack-protector-strong -fno-common
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wstrict-prototypes -Wol
d-style-definition -fmath-errno  -mieee  -fno-pie   -fexceptions
-fasynchronous-unwind-tables  -ftls-model=initial-exec   -isystem /
home/packages/cross/base/u/cross-toolchain-base-ports/glibc-2.39/debian/include
 -I../include -I/home/packages/cross/base/u/cross-to
olchain-base-ports/glibc-2.39/build-tree/sh4-libc/signal 
-I/home/packages/cross/base/u/cross-toolchain-base-ports/glibc-2.39/build-
tree/sh4-libc  -I../sysdeps/unix/sysv/linux/sh/le/sh4/fpu 
-I../sysdeps/unix/sysv/linux/sh/le/sh4  -I../sysdeps/unix/sysv/linux/sh/s
h4  -I../sysdeps/unix/sysv/linux/sh/le  -I../sysdeps/unix/sysv/linux/sh 
-I../sysdeps/sh/nptl  -I../sysdeps/unix/sysv/linux/include 
-I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread 
-I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/s
ysv  -I../sysdeps/unix/sh  -I../sysdeps/unix  -I../sysdeps/posix 
-I../sysdeps/sh/le/sh4/fpu  -I../sysdeps/sh/sh4/fpu  -I../sysdeps/
sh/le/sh4  -I../sysdeps/sh/sh4  -I../sysdeps/sh/le  -I../sysdeps/sh 
-I../sysdeps/wordsize-32  -I../sysdeps/ieee754/flt-32  -I../sys
deps/ieee754/dbl-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I..
-I../libio -I. -nostdinc -isystem /home/packages/cross/base/u/
cross-toolchain-base-ports/debian/tmp.sh4/usr/bin/../lib/gcc-cross/sh4-linux-gnu/13/include
-isystem /home/packages/cross/base/u/cro
ss-toolchain-base-ports/debian/tmp.sh4/usr/bin/../lib/gcc-cross/sh4-linux-gnu/13/include-fixed
-isystem /home/packages/cross/base/u/
cross-toolchain-base-ports/glibc-2.39/debian/include -D_LIBC_REENTRANT -include
/home/packages/cross/base/u/cross-toolchain-base-por
ts/glibc-2.39/build-tree/sh4-libc/libc-modules.h -DMODULE_NAME=libc -include
../include/libc-symbols.h       -DTOP_NAMESPACE=glibc -
o
/home/packages/cross/base/u/cross-toolchain-base-ports/glibc-2.39/build-tree/sh4-libc/signal/sigtimedwait.o
-MD -MP -MF /home/pack
ages/cross/base/u/cross-toolchain-base-ports/glibc-2.39/build-tree/sh4-libc/signal/sigtimedwait.o.dt
-MT /home/packages/cross/base/u
/cross-toolchain-base-ports/glibc-2.39/build-tree/sh4-libc/signal/sigtimedwait.o
{standard input}: Assembler messages:
{standard input}:846: Error: symbol `__sigtimedwait64' is already defined
make[4]: ***
[/home/packages/cross/base/u/cross-toolchain-base-ports/glibc-2.39/build-tree/sh4-libc/sysd-rules:213:
/home/packages/cross/base/u/cross-toolchain-base-ports/glibc-2.39/build-tree/sh4-libc/signal/sigtimedwait.o]
Error 1

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

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

* [Bug time/31625] glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined
  2024-04-10 11:19 [Bug time/31625] New: glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined doko at debian dot org
@ 2024-04-10 11:21 ` doko at debian dot org
  2024-04-10 11:25 ` simon.chopin at canonical dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: doko at debian dot org @ 2024-04-10 11:21 UTC (permalink / raw)
  To: glibc-bugs

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

Matthias Klose <doko at debian dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |sh4-linux-gnu

--- Comment #1 from Matthias Klose <doko at debian dot org> ---
other 32bit targets with 64bit time_t succeed to build

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

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

* [Bug time/31625] glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined
  2024-04-10 11:19 [Bug time/31625] New: glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined doko at debian dot org
  2024-04-10 11:21 ` [Bug time/31625] " doko at debian dot org
@ 2024-04-10 11:25 ` simon.chopin at canonical dot com
  2024-04-10 11:57 ` adhemerval.zanella at linaro dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: simon.chopin at canonical dot com @ 2024-04-10 11:25 UTC (permalink / raw)
  To: glibc-bugs

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

Simon Chopin <simon.chopin at canonical dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon.chopin at canonical dot com

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

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

* [Bug time/31625] glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined
  2024-04-10 11:19 [Bug time/31625] New: glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined doko at debian dot org
  2024-04-10 11:21 ` [Bug time/31625] " doko at debian dot org
  2024-04-10 11:25 ` simon.chopin at canonical dot com
@ 2024-04-10 11:57 ` adhemerval.zanella at linaro dot org
  2024-04-10 12:07 ` doko at debian dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2024-04-10 11:57 UTC (permalink / raw)
  To: glibc-bugs

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

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #2 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
I can not reproduce it with a bootstrap build with build-many-glibcs.py (which
does not use any non-standard glibc configure options), nor building glibc with
the generated compiler and enabling fortify. Is your gcc using non-default
compiler flags that might affect code generation?

Could you check the generated assembly file to see where the duplicate
__sigtimedwait64 comes from?

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

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

* [Bug time/31625] glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined
  2024-04-10 11:19 [Bug time/31625] New: glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined doko at debian dot org
                   ` (2 preceding siblings ...)
  2024-04-10 11:57 ` adhemerval.zanella at linaro dot org
@ 2024-04-10 12:07 ` doko at debian dot org
  2024-04-10 12:14 ` adhemerval.zanella at linaro dot org
  2024-04-10 12:15 ` doko at debian dot org
  5 siblings, 0 replies; 7+ messages in thread
From: doko at debian dot org @ 2024-04-10 12:07 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #3 from Matthias Klose <doko at debian dot org> ---
the build passes -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64

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

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

* [Bug time/31625] glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined
  2024-04-10 11:19 [Bug time/31625] New: glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined doko at debian dot org
                   ` (3 preceding siblings ...)
  2024-04-10 12:07 ` doko at debian dot org
@ 2024-04-10 12:14 ` adhemerval.zanella at linaro dot org
  2024-04-10 12:15 ` doko at debian dot org
  5 siblings, 0 replies; 7+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2024-04-10 12:14 UTC (permalink / raw)
  To: glibc-bugs

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

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #4 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Right, these flags are not supported to be used to build glibc itself (similar
to BZ#31624).  Florian has added a suggestion on how to adjust the GCC config
flags to avoid passing on glibc.

*** This bug has been marked as a duplicate of bug 31624 ***

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

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

* [Bug time/31625] glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined
  2024-04-10 11:19 [Bug time/31625] New: glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined doko at debian dot org
                   ` (4 preceding siblings ...)
  2024-04-10 12:14 ` adhemerval.zanella at linaro dot org
@ 2024-04-10 12:15 ` doko at debian dot org
  5 siblings, 0 replies; 7+ messages in thread
From: doko at debian dot org @ 2024-04-10 12:15 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #5 from Matthias Klose <doko at debian dot org> ---
Created attachment 15458
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15458&action=edit
assembly file

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

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

end of thread, other threads:[~2024-04-10 12:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-10 11:19 [Bug time/31625] New: glibc 2.39 fails to build on sh4-linux-gnu with 64bit time_t, __sigtimedwait64' already defined doko at debian dot org
2024-04-10 11:21 ` [Bug time/31625] " doko at debian dot org
2024-04-10 11:25 ` simon.chopin at canonical dot com
2024-04-10 11:57 ` adhemerval.zanella at linaro dot org
2024-04-10 12:07 ` doko at debian dot org
2024-04-10 12:14 ` adhemerval.zanella at linaro dot org
2024-04-10 12:15 ` doko at debian dot org

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