vibe-d/eventcore

Error: safe function cannot call system function

andre2007 opened this issue · 1 comments

Pull request #1415 fails due to this error. The test relies on /test/test_registry.d which
causes following error while build:

[INFO] Running /home/travis/build/dlang/dub/test/issue1416-maven-repo-pkg-supplier.sh...
Fetching libevent 2.0.2+2.0.16 (getting selected version)...
Fetching diet-ng 1.4.5 (getting selected version)...
Fetching taggedalgebraic 0.10.11 (getting selected version)...
Fetching openssl 1.1.6+1.0.1g (getting selected version)...
Fetching botan 1.12.9 (getting selected version)...
Fetching stdx-allocator 2.77.0 (getting selected version)...
Fetching vibe-d 0.8.3 (getting selected version)...
Fetching memutils 0.4.10 (getting selected version)...
Fetching vibe-core 1.4.0 (getting selected version)...
Fetching libasync 0.8.3 (getting selected version)...
Fetching botan-math 1.0.3 (getting selected version)...
Fetching eventcore 0.8.34 (getting selected version)...
Performing "debug" build using dmd for x86_64.
taggedalgebraic 0.10.11: building configuration "library"...
eventcore 0.8.34: building configuration "epoll"...
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/driver.d(145,14): Error: safe function 'eventcore.drivers.posix.driver.PosixEventDriverCore!(SelectEventLoop, LoopTimeoutTimerDriver, PosixEventDriverEvents!(SelectEventLoop, PosixEventDriverSockets!(SelectEventLoop))).PosixEventDriverCore.dispose' cannot call system function 'core.atomic.atomicStore!(cast(MemoryOrder)3, Mutex, typeof(null)).atomicStore'
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/select.d(26,27): Error: template instance eventcore.drivers.posix.driver.PosixEventDriver!(SelectEventLoop) error instantiating
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/driver.d(210,22): Error: safe function 'eventcore.drivers.posix.driver.PosixEventDriverCore!(SelectEventLoop, LoopTimeoutTimerDriver, PosixEventDriverEvents!(SelectEventLoop, PosixEventDriverSockets!(SelectEventLoop))).PosixEventDriverCore.runInOwnerThread' cannot call system function 'core.atomic.atomicLoad!(cast(MemoryOrder)3, Mutex).atomicLoad'
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/driver.d(211,24): Error: safe function 'eventcore.drivers.posix.driver.PosixEventDriverCore!(SelectEventLoop, LoopTimeoutTimerDriver, PosixEventDriverEvents!(SelectEventLoop, PosixEventDriverSockets!(SelectEventLoop))).PosixEventDriverCore.runInOwnerThread' cannot call system function 'core.atomic.atomicLoad!(cast(MemoryOrder)3, Handle!("event", Handle!("fd", ulong, 18446744073709551615LU), Handle(18446744073709551615LU))).atomicLoad'
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/driver.d(41,22): Error: template instance eventcore.drivers.posix.driver.PosixEventDriverCore!(SelectEventLoop, LoopTimeoutTimerDriver, PosixEventDriverEvents!(SelectEventLoop, PosixEventDriverSockets!(SelectEventLoop))) error instantiating
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/select.d(26,27):        instantiated from here: PosixEventDriver!(SelectEventLoop)
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/driver.d(145,14): Error: safe function 'eventcore.drivers.posix.driver.PosixEventDriverCore!(EpollEventLoop, LoopTimeoutTimerDriver, PosixEventDriverEvents!(EpollEventLoop, PosixEventDriverSockets!(EpollEventLoop))).PosixEventDriverCore.dispose' cannot call system function 'core.atomic.atomicStore!(cast(MemoryOrder)3, Mutex, typeof(null)).atomicStore'
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/epoll.d(19,26): Error: template instance eventcore.drivers.posix.driver.PosixEventDriver!(EpollEventLoop) error instantiating
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/driver.d(210,22): Error: safe function 'eventcore.drivers.posix.driver.PosixEventDriverCore!(EpollEventLoop, LoopTimeoutTimerDriver, PosixEventDriverEvents!(EpollEventLoop, PosixEventDriverSockets!(EpollEventLoop))).PosixEventDriverCore.runInOwnerThread' cannot call system function 'core.atomic.atomicLoad!(cast(MemoryOrder)3, Mutex).atomicLoad'
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/driver.d(211,24): Error: safe function 'eventcore.drivers.posix.driver.PosixEventDriverCore!(EpollEventLoop, LoopTimeoutTimerDriver, PosixEventDriverEvents!(EpollEventLoop, PosixEventDriverSockets!(EpollEventLoop))).PosixEventDriverCore.runInOwnerThread' cannot call system function 'core.atomic.atomicLoad!(cast(MemoryOrder)3, Handle!("event", Handle!("fd", ulong, 18446744073709551615LU), Handle(18446744073709551615LU))).atomicLoad'
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/driver.d(41,22): Error: template instance eventcore.drivers.posix.driver.PosixEventDriverCore!(EpollEventLoop, LoopTimeoutTimerDriver, PosixEventDriverEvents!(EpollEventLoop, PosixEventDriverSockets!(EpollEventLoop))) error instantiating
../../../.dub/packages/eventcore-0.8.34/eventcore/source/eventcore/drivers/posix/epoll.d(19,26):        instantiated from here: PosixEventDriver!(EpollEventLoop)
dmd failed with exit code 1.
[ERROR] :10 command failed
[ERROR] Script failure.

Error was caused by too old dmd versions in travis ci. Test is now disabled for the older dmd versions.