delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2024/05/30/15:13:02

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 44UJCw842225541
X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 44UJCwDY2225525
X-Recipient: djgpp-workers AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1717096376; x=1717701176; darn=delorie.com;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:from:to:cc:subject:date:message-id:reply-to;
bh=Y8s30EagMGpfx5riM7rXDsri3UYlCDLym74FWQy2TAo=;
b=RGNSUkKr3ODurvLnhA3I6ngMB0kWrp5WyloNQCZnbcqqMEha1WAtGzSBXP4cy6X51t
CWsz9NFZj/KCqcOyjW0v/fgNS6jFEKKFFKB9yMYJpLZ0lgWIU6jLcAK4zDzm4IIo81Dd
Qmda9BRjfO90sINbp9WSkGIFeGwdpuaqWVPWI4bDDp+q6M1z44QLGBq0mDdKpRnQvlLo
bAIlqHSK0G4HDV7G4mVU9zn7YFEBPGF3ARhEzoHvEe0BwMd8yppQTZio3PilUeLWdrXq
xdLC6/dq/Vcs5AiiX1q1Nlm82A9G7PuIHQMWquOAzwcW3NxzNInbgFR0jcWosI6dfkXm
fu6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1717096376; x=1717701176;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=Y8s30EagMGpfx5riM7rXDsri3UYlCDLym74FWQy2TAo=;
b=huWAYRyBi2pFvzXwfwXD+37GwkcsDkt26Q5ZJGmpP5KYr0xstmKDFnEySqXapso0Ml
+7kduZTEUoevWSu0AhIE8eWtt9Hd4Iczwa03yNYnGWXka5ud2081W1MczL48Xf1H2jCv
s50eL8vk7jqwaZnk0Ozq3D42qZyO8azvev5CH7YMuw7r1tNEd9CMzBuQS0EqdzJUK6Ba
53HrLrWiHxNLDCvXXZTt4Fch7z0AfPfSpsfJtUOtlPNETgcnXgvCtmD7DrAwJ3+O83F3
W6KYZ8S2NgbH4CvHSWtBdJ/PvUwkhwOsWMzCWlnvYoxNbvcgqP2ZOTiFXT/wmzwAKFSp
hcWg==
X-Gm-Message-State: AOJu0Yz434r+gxSjJxFGX7t91xccNjRJd05RfbtjEJaUddEbbVOaySHE
2Wog1Tszb5esi2WfLRV3wqP/gxHyfqi9SJf7cMZUoxkEcjgWlE+sCOsG/Q==
X-Google-Smtp-Source: AGHT+IF9sjkTWoRulBDxsARYdlBrxv8rvgFaabmXoJc8mYWaZok6wq89ub4+cvD3zQxm0vClzUxTHg==
X-Received: by 2002:a17:907:7b9f:b0:a5d:107b:60be with SMTP id a640c23a62f3a-a65e922f926mr255311866b.69.1717096375056;
Thu, 30 May 2024 12:12:55 -0700 (PDT)
Message-ID: <06dded2e-8650-4610-8813-5fa366e92114@gmail.com>
Date: Thu, 30 May 2024 21:12:54 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: gcc-14.1.0 DJGPP cross-compiler build for ArchLinux
To: djgpp-workers AT delorie DOT com
References: <2b86685a-ec42-4123-8703-cebe1d0c78ef AT iki DOT fi>
From: "J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp-workers AT delorie DOT com]" <djgpp-workers AT delorie DOT com>
In-Reply-To: <2b86685a-ec42-4123-8703-cebe1d0c78ef@iki.fi>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 2024-05-09 19:44, Andris Pavēnis (andris DOT pavenis AT iki DOT fi) [via djgpp-workers AT delorie DOT com] wrote:
> Tried to build GCC 14.1.0 as Linux -to-DJGPP cross-compiler in Arch Linux.
> 
> See https://aur.archlinux.org/packages/djgpp-gcc

Hi!

Will you be releasing djcross-gcc-*.tar.bz2 packages too again, or are
these patch files from AUR now the recommended way to build a
cross-compiler?

BTW, I don't see any tags/branches on your github yet for gcc-14, maybe
you forgot to push.

> Some short tests:
> 
> 1) small test program (gcc-14+ required, will not compile with gcc-13 or earlier versions, also c++20 or higher required)
> 
> #include <iostream>
> #include <chrono>
> 
> using namespace std::chrono;
> 
> $ cat test1.cpp
> #include <iostream>
> #include <chrono>
> 
> using namespace std::chrono;
> 
> int main(void)
> {
>     const time_zone* tz = locate_zone("Europe/Helsinki");
>     const time_zone* tz2 = locate_zone("Etc/UTC");
>     const auto local_time = tz->to_local(system_clock::now());
>     const zoned_time<nanoseconds> ldt(tz, local_time);
>     const zoned_time<nanoseconds> utc(tz2, ldt);
>     std::cout << std::format("{:%Y-%m-%d %H:%M:%S%Oz}", ldt) << std::endl;
>     std::cout << std::format("{:%Y-%m-%d %H:%M:%S%Oz}", utc) << std::endl;
>     return 0;
> }
> 
> Compiling:
> 
> i686-pc-msdosdjgpp-g++ -std=c++20 -O2 test1.cpp -o test1.exe
> 
> Copied EXE file to my ancient test notebook and tried: seems to work correctly when environment variable TZ is set (Europe/Helsinki in my case)
> 
> It is not getting time very accurately (10 ms step) however.

std::chrono stuff uses BIOS time via gettimeofday(), resolution is not
so great (55ms), very slow too.  Or did it change in gcc 14?  That
C++ time_zone stuff is completely independent from libc time, I think.

> Also tried to build https://aur.archlinux.org/packages/djgpp-djcrx-cvs for testing. Seems to work and records rather many GCC static analyzer messages (edited compiler options to remove -Werror and to enable static analyzer)
> 
> 
> Andris
> 
> 
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019