From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zimbra.cs.ucla.edu (zimbra.cs.ucla.edu [131.179.128.68]) by sourceware.org (Postfix) with ESMTPS id ABBDC3858C2C for ; Wed, 5 Jan 2022 04:43:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ABBDC3858C2C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.ucla.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.ucla.edu Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 25BBD1600D9; Tue, 4 Jan 2022 20:43:47 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id hBolj5pTPmVr; Tue, 4 Jan 2022 20:43:46 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4FAAB1600FC; Tue, 4 Jan 2022 20:43:46 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BxztHx7-OdtX; Tue, 4 Jan 2022 20:43:46 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1BABA1600D9; Tue, 4 Jan 2022 20:43:46 -0800 (PST) Message-ID: <3e6da354-70ec-07c6-4df4-1c995d9f927e@cs.ucla.edu> Date: Tue, 4 Jan 2022 20:43:45 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Content-Language: en-US To: Sam James Cc: Kaz Kylheku , Fangrui Song via Libc-alpha , toolchain@gentoo.org, "Andreas K. Huettel" , chewi@gentoo.org References: <33e9ae8d-8b29-19d9-8747-cb8e96490205@cs.ucla.edu> From: Paul Eggert Organization: UCLA Computer Science Department Subject: Re: Best practices in regard to -D_TIME_BITS=64 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_NUMSUBJECT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2022 04:43:49 -0000 On 1/4/22 16:53, Sam James wrote: > FWIW, we've hit issues in Gentoo with wget/gnutls: > https://bugs.gentoo.org/828001 . Thanks for the heads-up. Yes, not surprised about that, as mixing 64-bit time_t apps with 32-bit time_t libraries is a recipe for trouble if the APIs depend on time_t. For apps that use such libraries, it really has to be a big bang: configure all that stuff with --disable-year2038 -D_TIME_BITS=32 before, and with --enable-year2038 CFLAGS=-D_TIME_BITS=64 after. > https://wiki.gentoo.org/wiki/Project:Toolchain/time64_migration Thanks. The musl notes look helpful there.