Thread overview
[Issue 19052] dmd-2.081.0 generates compilation issue: Error: module `stdlib` is in file 'std/c/stdlib.d' which cannot be read
Jul 03, 2018
Mike Franklin
Jul 04, 2018
Alex Braunegg
Jul 04, 2018
Alex Braunegg
Jul 04, 2018
Mike Franklin
July 03, 2018
https://issues.dlang.org/show_bug.cgi?id=19052

Mike Franklin <slavo5150@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |slavo5150@yahoo.com
         Resolution|---                         |INVALID

--- Comment #1 from Mike Franklin <slavo5150@yahoo.com> ---
Whatever you're compiling is using the `std.c` package from Phobos.  That package has been deprecated for a long time and was finally removed in 2.081. Use the`core.stc` package instead:

https://github.com/dlang/phobos/pull/6515 https://dlang.org/changelog/2.081.0.html#remove_std_c

--
July 04, 2018
https://issues.dlang.org/show_bug.cgi?id=19052

Alex Braunegg <alex.braunegg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from Alex Braunegg <alex.braunegg@gmail.com> ---
Thanks I have looked at the code and found the offending entry, however based on the changelog:

"Use the core.stdc package instead."

I now get the following:

Error: module `stdc` is in file 'core/stdc.d' which cannot be read
import path[0] = /root/dlang/dmd-2.081.0/linux/bin64/../../src/phobos
import path[1] = /root/dlang/dmd-2.081.0/linux/bin64/../../src/druntime/import

--
July 04, 2018
https://issues.dlang.org/show_bug.cgi?id=19052

Alex Braunegg <alex.braunegg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Alex Braunegg <alex.braunegg@gmail.com> ---
need to use core.stdc.stdlib rather than core.stdc as per release notes.

--
July 04, 2018
https://issues.dlang.org/show_bug.cgi?id=19052

--- Comment #4 from Mike Franklin <slavo5150@yahoo.com> ---
`std.c` is a package.  `std.c.stdlib` is a module within that package.

Analogously, `core.stdc` is a package and `core.stdc.stdlib` is a module within that package.

If your code used to use `std.c.stdlib` then you need to replace it with `core.stdc.stdlib`, not `core.stdc`.

--