Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

CRuntime_Musl: More fixes for time64 #3313

Closed
wants to merge 1 commit into from

Conversation

Geod24
Copy link
Member

@Geod24 Geod24 commented Dec 14, 2020

The original PR (#3275) missed quite a few spots and conversions,
which led to the build on Alpine Linux failing with Aithmetic Exception
on core.time module constructor.
Links to the two offending commits are included.
For further issues / investigation, search for 'time64' in the git repository.

CC @Cogitri , I'll rebuild my GDC and see if that solve LDC v1.24's issues.

@Geod24 Geod24 force-pushed the time64-strikes-again branch 2 times, most recently from c6b8fb3 to aa50fc7 Compare December 14, 2020 13:36
algitbot pushed a commit to alpinelinux/aports that referenced this pull request Dec 14, 2020
Also disable dependants. LDC currently can't build on x86 because GDC
is broken on x86 due to time_t changes in musl 1.2. Once
dlang/druntime#3313 landed we can re-enable
this.
@PetarKirov
Copy link
Member

Does tsunami on BuildKite treat deprecations as errors? Otherwise I can't tell why it fails from the logs.

@Geod24
Copy link
Member Author

Geod24 commented Feb 25, 2021

Exited with status -1 (process killed or agent lost; see the timeline tab for more information)

It's spurious. We're coming back to this and getting it tested, stay tuned.

// int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER!=4321);
version (LittleEndian)
static if (time_t.sizeof > c_long.sizeof)
int __padding;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make the __padding as private for extra protection that is not available in C ;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but no other place in druntime do this.

@Geod24 Geod24 force-pushed the time64-strikes-again branch 3 times, most recently from 676a4a7 to 5b869f6 Compare February 26, 2021 06:50
The original PR (dlang#3275) missed quite a few spots and conversions,
which led to the build on Alpine Linux failing with Aithmetic Exception
on core.time module constructor.
Links to the two offending commits are included.
For further issues / investigation, search for 'time64' in the git repository.

Co-Authored-By: Ömer Faruk IRMAK <[email protected]>
@RazvanN7
Copy link
Contributor

RazvanN7 commented Mar 2, 2021

Is it ok to close this in favor of #3383 ?

@Geod24 Geod24 closed this Mar 3, 2021
@Geod24 Geod24 deleted the time64-strikes-again branch March 3, 2021 11:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants