public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Glibc on target 32 bits with 64-bit time support
@ 2023-05-15 18:25 Alain GUILLEMOT
  2023-05-15 20:11 ` Florian Weimer
  0 siblings, 1 reply; 7+ messages in thread
From: Alain GUILLEMOT @ 2023-05-15 18:25 UTC (permalink / raw)
  To: libc-help

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

Hello

I would like to test the transition to 2038 on a 32-bit machine.
For that I would like to compile the glibc in 32 bits with the 64-bit "time_t" options.
But I don't know how to proceed.
In which file I have to add the option "-D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64", or are these options to be passed on the command line?

Currently I change the "configure" adding to  CFLAGS/CXXFLAGS flags, and also exporting CPPFLAGS with same options. But I always have compilation errors.

/tmp/ccb7zYZG.s: Assembler messages:
/tmp/ccb7zYZG.s:641: Error: symbol `__sigtimedwait64' is already defined
make[2]: *** [/tmp/obj/sysd-rules:111: /tmp/obj/signal/sigtimedwait.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../sysdeps/generic/hp-timing.h:22,
                 from ../nptl/descr.h:26,
                 from ../sysdeps/arm/nptl/tls.h:39,
                 from ../sysdeps/unix/sysv/linux/arm/tls.h:23,
                 from ../sysdeps/unix/sysv/linux/arm/sysdep.h:28,
                 from ../sysdeps/unix/sysv/linux/internal-signals.h:28,
                 from ../sysdeps/posix/signal.c:22:
../include/time.h:21:1: warning: asm declaration ignored due to conflict with previous rename [-Wpragmas]
   21 | libc_hidden_proto (mktime)
      | ^~~~~~~~~~~~~~~~~
../include/time.h:22:1: warning: asm declaration ignored due to conflict with previous rename [-Wpragmas]
   22 | libc_hidden_proto (timelocal)


Thank's.



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

end of thread, other threads:[~2023-05-18 19:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-15 18:25 Glibc on target 32 bits with 64-bit time support Alain GUILLEMOT
2023-05-15 20:11 ` Florian Weimer
2023-05-16 17:20   ` Alain GUILLEMOT
2023-05-16 17:53     ` Florian Weimer
2023-05-18 10:31   ` Alain GUILLEMOT
2023-05-18 10:46     ` Lukasz Majewski
2023-05-18 19:49       ` Alain GUILLEMOT

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