This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/17797] New: CLOCKS_PER_SEC has the wrong type for ILP32 targets
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 05 Jan 2015 18:17:06 +0000
- Subject: [Bug libc/17797] New: CLOCKS_PER_SEC has the wrong type for ILP32 targets
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17797
Bug ID: 17797
Summary: CLOCKS_PER_SEC has the wrong type for ILP32 targets
Product: glibc
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
CC: drepper.fsp at gmail dot com
On x32 with GCC 4.9.2, I got
FAIL: conform/ISO/time.h/conform
FAIL: conform/ISO11/time.h/conform
FAIL: conform/ISO99/time.h/conform
FAIL: conform/POSIX/mqueue.h/conform
FAIL: conform/POSIX/sched.h/conform
FAIL: conform/POSIX/time.h/conform
FAIL: conform/POSIX2008/mqueue.h/conform
FAIL: conform/POSIX2008/sys/select.h/conform
FAIL: conform/POSIX2008/sys/stat.h/conform
FAIL: conform/POSIX2008/time.h/conform
FAIL: conform/UNIX98/mqueue.h/conform
FAIL: conform/UNIX98/sched.h/conform
FAIL: conform/UNIX98/time.h/conform
FAIL: conform/XOPEN2K/sys/select.h/conform
FAIL: conform/XOPEN2K/time.h/conform
FAIL: conform/XOPEN2K8/mqueue.h/conform
FAIL: conform/XOPEN2K8/sys/stat.h/conform
FAIL: conform/XOPEN2K8/time.h/conform
FAIL: conform/XPG4/time.h/conform
The error message is
Testing for type of symbol CLOCKS_PER_SEC... FAIL
Symbol "CLOCKS_PER_SEC" does not have the correct type. Compiler message:
-----------------------------------------------------------------------
/export/build/gnu/glibc-x32/build-x86_64-linux/conform/ISO/time.h/scratch/ti
me.h-test.c:3:36: error: conflicting types for âaâ
extern __typeof__ (CLOCKS_PER_SEC) a;
^
/export/build/gnu/glibc-x32/build-x86_64-linux/conform/ISO/time.h/scratch/ti
me.h-test.c:2:26: note: previous declaration of âaâ was here
__typeof__ ((clock_t) 0) a;
^
There are
bits/time.h:# define CLOCKS_PER_SEC 1000000l
sysdeps/unix/sysv/linux/bits/time.h:# define CLOCKS_PER_SEC 1000000l
CLOCKS_PER_SEC should be 1000000ll for ILP32 targets like x32.
--
You are receiving this mail because:
You are on the CC list for the bug.