Skip to content

Instantly share code, notes, and snippets.

@jrfondren
Created September 15, 2021 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrfondren/c7f7b47be057273830d6a31372895895 to your computer and use it in GitHub Desktop.
Save jrfondren/c7f7b47be057273830d6a31372895895 to your computer and use it in GitHub Desktop.
engine/ecap.d(39): Error: `@safe` constructor `ecap.EventQueue.this` cannot call `@system` function `core.sys.linux.epoll.epoll_create1`
/usr/include/dlang/dmd/core/sys/linux/epoll.d(176): `core.sys.linux.epoll.epoll_create1` is declared here
engine/ecap.d(56): Error: field `EpollEvent.es` cannot assign to misaligned pointers in `@safe` code
engine/ecap.d(68): Error: field `EpollEvent.es` cannot assign to misaligned pointers in `@safe` code
engine/ecap.d(81): Error: field `EpollEvent.es` cannot assign to misaligned pointers in `@safe` code
engine/ecap.d(89): Error: field `EpollEvent.es` cannot assign to misaligned pointers in `@safe` code
engine/ecap.d(95): Error: field `EpollEvent.es` cannot assign to misaligned pointers in `@safe` code
engine/ecap.d(108): Error: `events.ptr` cannot be used in `@safe` code, use `&events[0]` instead
engine/esrc.d(35): Error: `@safe` function `esrc.EventSource.register` cannot call `@system` function `std.stdio.writefln!(char, string, int, EventSource).writefln`
/usr/include/dlang/dmd/std/stdio.d(4438): `std.stdio.writefln!(char, string, int, EventSource).writefln` is declared here
engine/esrc.d(41): Error: `@safe` function `esrc.EventSource.deregister` cannot call `@system` function `std.stdio.writefln!(char, string, int, EventSource).writefln`
/usr/include/dlang/dmd/std/stdio.d(4438): `std.stdio.writefln!(char, string, int, EventSource).writefln` is declared here
engine/esrc.d(46): Error: `@safe` function `esrc.EventSource.enable` cannot call `@system` function `std.stdio.writefln!(char, string, int, EventSource).writefln`
/usr/include/dlang/dmd/std/stdio.d(4438): `std.stdio.writefln!(char, string, int, EventSource).writefln` is declared here
engine/esrc.d(51): Error: `@safe` function `esrc.EventSource.enableOnce` cannot call `@system` function `std.stdio.writefln!(char, string, int, EventSource).writefln`
/usr/include/dlang/dmd/std/stdio.d(4438): `std.stdio.writefln!(char, string, int, EventSource).writefln` is declared here
engine/esrc.d(56): Error: `@safe` function `esrc.EventSource.disable` cannot call `@system` function `std.stdio.writefln!(char, string, int, EventSource).writefln`
/usr/include/dlang/dmd/std/stdio.d(4438): `std.stdio.writefln!(char, string, int, EventSource).writefln` is declared here
engine/esrc.d(74): Error: cannot take address of local `sset` in `@safe` function `this`
engine/esrc.d(75): Error: cannot take address of local `sset` in `@safe` function `this`
engine/esrc.d(76): Error: cannot take address of local `sset` in `@safe` function `this`
engine/esrc.d(76): Error: cannot take address of local `old_sset` in `@safe` function `this`
engine/esrc.d(78): Error: cannot take address of local `sset` in `@safe` function `this`
engine/esrc.d(84): Error: cannot take address of local `si` in `@safe` function `flush`
engine/esrc.d(101): Error: `@safe` constructor `esrc.Timer.this` cannot call `@system` function `core.sys.linux.timerfd.timerfd_create`
/usr/include/dlang/dmd/core/sys/linux/timerfd.d(18): `core.sys.linux.timerfd.timerfd_create` is declared here
engine/esrc.d(116): Error: cannot take address of local `t` in `@safe` function `heartBeat`
make: *** [Makefile:13: echo-server] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment