[Issue 22823] New: dmd.root.file: File.read fails to read any file on PPC
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 25 09:20:57 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22823
Issue ID: 22823
Summary: dmd.root.file: File.read fails to read any file on PPC
Product: D
Version: D2
Hardware: PowerPC
OS: Linux
Status: NEW
Severity: blocker
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
Because of issue 22822, the dmd.root.file module is broken on PPC. The
`st_size` field it reads is actually at the offset of padding, so it thinks
that every file has a size of 0, meaning nothing gets read into the parser, and
nothing written out by the compiler.
We can fix druntime, but all previous releases are still broken, so we need to
"workaround" this issue in the compiler front-end itself by providing a stub
implementation of stat_t to use on linux/PPC only.
--
More information about the Digitalmars-d-bugs
mailing list