This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v10] y2038: Provide conversion helpers for struct __timespec64
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Lukasz Majewski <lukma at denx dot de>
- Cc: Paul Eggert <eggert at cs dot ucla dot edu>, Alistair Francis <alistair23 at gmail dot com>, Arnd Bergmann <arnd at arndb dot de>, Alistair Francis <alistair dot francis at wdc dot com>, GNU C Library <libc-alpha at sourceware dot org>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, Florian Weimer <fweimer at redhat dot com>, Carlos O'Donell <carlos at redhat dot com>, Stepan Golosunov <stepan at golosunov dot pp dot ru>, Florian Weimer <fw at deneb dot enyo dot de>, Zack Weinberg <zackw at panix dot com>
- Date: Tue, 1 Oct 2019 13:25:07 +0000
- Subject: Re: [PATCH v10] y2038: Provide conversion helpers for struct __timespec64
- Ironport-sdr: UbLdiPcBe7EXsNEDYoE71f4ly34nq7xNKubsXPDlnQH+csUgI9sp//f4QfRd4FD+jMLUkqBQoF ZiDzQ6SK47WS6j7FVDSIEuKNuRd8Ix1N4V1OkdD2nzAM/0rCdHgooJv2cEjVB9WkcR0wB1TAFB 3A/Xl9yeNCo5c8MP6kLYGZLd8zz/B02YOcbeeo1u1xbJFZ22wP0JrVBcXcR3CqSiDzVlLqNM9q cHdU7j5CXfPZtiU+YJg91a8WNVANKjY1R1S3Em8HRUmL4XM4Q2xNbjG/SKmu3Bfv6NnQmDy6eZ oKA=
- Ironport-sdr: JBI442BRpDFLPxqJLRQFXl6/W28aqGTsUsYMa6pkC08mC8Arnk5CuUtc1i5OBJAZxc1LCNvs/L fs4nwqMgshMAO0e7Upyvw4lmLN1tfRgE6Eszj3/54Z7hA5u99Ie0zp81b5ZWKQ+pWaz8MHB7zh UNpiy2BxlvjS5mY8RCbVLBgAaNpjl4VAfrKPwKtyMezycGVo438bq/jie8OZz/RsFg2OmbBQOZ wUL4dr4gQmGouCRz7uVc7w1b8PMePGbq4kkVwA5a5nCD7wwRReZ079gcG6tGGqxwbN1MrQ1ieN i5U=
- References: <20190930133134.14771-1-lukma@denx.de>
This has broken the build of glibc for i686-gnu as struct timeval isn't
defined at this point in the build.
In file included from /scratch/jmyers/glibc-bot/install/compilers/i686-gnu/sysroot/include/hurd/hurd_types.h:24,
from ../hurd/hurd.h:30,
from ../sysdeps/hurd/include/hurd.h:2,
from hurdid.c:18:
../include/time.h:183:51: error: parameter 1 ('tv') has incomplete type
valid_timeval_to_timespec64 (const struct timeval tv)
~~~~~~~~~~~~~~~~~~~~~^~
../include/time.h:221:1: error: return type is an incomplete type
valid_timespec64_to_timeval (const struct __timespec64 ts64)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/time.h: In function 'valid_timespec64_to_timeval':
../include/time.h:223:18: error: storage size of 'tv' isn't known
struct timeval tv;
^~
--
Joseph S. Myers
joseph@codesourcery.com