FreeBSD Error
devosalain opened this issue · 4 comments
devosalain commented
dub init hello --type=vibe.d
dub.json.
{
"authors": [
"x"
],
"copyright": "Copyright © 2022, x",
"dependencies": {
"vibe-d": "~>0.9"
},
"description": "A simple vibe.d server application.",
"license": "proprietary",
"name": "hello",
"dflags-ldc": ["-gcc=gcc12"]
}
export CC=gcc12
dub
produces error:
Running pre-generate commands for openssl...
Performing "debug" build using ldc2 for x86_64.
mir-linux-kernel 1.0.1: target for configuration "library" is up to date.
taggedalgebraic 0.11.22: target for configuration "library" is up to date.
eventcore 0.9.20: building configuration "kqueue"...
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/processes.d(341,10): Error: module core.sys.posix.sys.wait import idtype_t not found
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/processes.d(341,10): Error: module core.sys.posix.sys.wait import WEXITED not found, did you mean function core.sys.posix.sys.wait.WIFEXITED?
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/processes.d(341,10): Error: module core.sys.posix.sys.wait import waitid not found, did you mean function core.sys.posix.sys.wait.waitpid?
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/driver.d(60,41): Error: template instance eventcore.drivers.posix.processes.PosixEventDriverProcesses!(KqueueEventLoop) error instantiating
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/kqueue.d(32,27): instantiated from here: PosixEventDriver!(KqueueEventLoop)
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/processes.d(341,10): Error: module core.sys.posix.sys.wait import idtype_t not found
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/processes.d(341,10): Error: module core.sys.posix.sys.wait import WEXITED not found, did you mean function core.sys.posix.sys.wait.WIFEXITED?
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/processes.d(341,10): Error: module core.sys.posix.sys.wait import waitid not found, did you mean function core.sys.posix.sys.wait.waitpid?
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/driver.d(60,41): Error: template instance eventcore.drivers.posix.processes.PosixEventDriverProcesses!(SelectEventLoop) error instantiating
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/select.d(26,27): instantiated from here: PosixEventDriver!(SelectEventLoop)
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/threadedfile.d(408,10): Error: undefined identifier lseek64 in module eventcore.drivers.threadedfile, did you mean function lseek?
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/threadedfile.d(289,31): Error: template instance eventcore.drivers.threadedfile.ThreadedFileEventDriver!(PosixEventDriverEvents!(KqueueEventLoop, PosixEventDriverSockets!(KqueueEventLoop))).ThreadedFileEventDriver.taskFun!("write", const(ubyte)) error instantiating
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/driver.d(54,22): instantiated from here: ThreadedFileEventDriver!(PosixEventDriverEvents!(KqueueEventLoop, PosixEventDriverSockets!(KqueueEventLoop)))
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/kqueue.d(32,27): instantiated from here: PosixEventDriver!(KqueueEventLoop)
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/threadedfile.d(408,10): Error: undefined identifier lseek64 in module eventcore.drivers.threadedfile, did you mean function lseek?
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/threadedfile.d(289,31): Error: template instance eventcore.drivers.threadedfile.ThreadedFileEventDriver!(PosixEventDriverEvents!(SelectEventLoop, PosixEventDriverSockets!(SelectEventLoop))).ThreadedFileEventDriver.taskFun!("write", const(ubyte)) error instantiating
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/driver.d(54,22): instantiated from here: ThreadedFileEventDriver!(PosixEventDriverEvents!(SelectEventLoop, PosixEventDriverSockets!(SelectEventLoop)))
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/select.d(26,27): instantiated from here: PosixEventDriver!(SelectEventLoop)
ldc2 failed with exit code 1.
devosalain commented
Current new error running dub is,
dub build --force
Running pre-generate commands for openssl...
Performing "debug" build using ldc2 for x86_64.
mir-linux-kernel 1.0.1: building configuration "library"...
taggedalgebraic 0.11.22: building configuration "library"...
eventcore 0.9.20: building configuration "kqueue"...
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/threadedfile.d(408,10): Error: undefined identifier `lseek64` in module `eventcore.drivers.threadedfile`, did you mean function `lseek`?
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/threadedfile.d(289,31): Error: template instance `eventcore.drivers.threadedfile.ThreadedFileEventDriver!(PosixEventDriverEvents!(KqueueEventLoop, PosixEventDriverSockets!(KqueueEventLoop))).ThreadedFileEventDriver.taskFun!("write", const(ubyte))` error instantiating
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/driver.d(54,22): instantiated from here: `ThreadedFileEventDriver!(PosixEventDriverEvents!(KqueueEventLoop, PosixEventDriverSockets!(KqueueEventLoop)))`
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/kqueue.d(32,27): instantiated from here: `PosixEventDriver!(KqueueEventLoop)`
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/threadedfile.d(408,10): Error: undefined identifier `lseek64` in module `eventcore.drivers.threadedfile`, did you mean function `lseek`?
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/threadedfile.d(289,31): Error: template instance `eventcore.drivers.threadedfile.ThreadedFileEventDriver!(PosixEventDriverEvents!(SelectEventLoop, PosixEventDriverSockets!(SelectEventLoop))).ThreadedFileEventDriver.taskFun!("write", const(ubyte))` error instantiating
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/driver.d(54,22): instantiated from here: `ThreadedFileEventDriver!(PosixEventDriverEvents!(SelectEventLoop, PosixEventDriverSockets!(SelectEventLoop)))`
/home/x/.dub/packages/eventcore-0.9.20/eventcore/source/eventcore/drivers/posix/select.d(26,27): instantiated from here: `PosixEventDriver!(SelectEventLoop)`
ldc2 failed with exit code 1.
s-ludwig commented
Can you check again now (with dub upgrade
)? I had committed a fix in vibe-d/eventcore#206, which is now included in 0.9.21.
devosalain commented
Nice job. Currently it works fine.
(just a few deprecation warnings in the build, which are ignored )
devosalain commented
Problem is solved with "dub upgrade" . Closing.