www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22823] New: dmd.root.file: File.read fails to read any file


          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 puremagic.com
          Reporter: ibuclaw 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.

Feb 25 2022