vibe-d / vibe.d

Official vibe.d development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't build on (AWS ?) Linux

infinityplusb opened this issue · comments

I am trying to install and build a vibed app on an AWS micro EC2 instance for a website.

However, when I try to build my vibed app, which works fine on local Windows, I get an error after running dub

     Pre-gen Running commands for openssl
    Starting Performing "debug" build using /usr/bin/dmd for x86_64.
  Up-to-date mir-linux-kernel 1.0.1: target for configuration [library] is up to date.
  Up-to-date taggedalgebraic 0.11.22: target for configuration [library] is up to date.
  Up-to-date eventcore 0.9.23: target for configuration [epoll] is up to date.
  Up-to-date stdx-allocator 2.77.5: target for configuration [library] is up to date.
    Building vibe-core 1.23.0: building configuration [epoll]

... many deprecation warnings later ...

../.dub/packages/vibe-core-1.23.0/vibe-core/source/vibe/internal/async.d-mixin-164(181,42):        which would be `@system` because of:
../.dub/packages/vibe-core-1.23.0/vibe-core/source/vibe/internal/async.d-mixin-164(181,42):        scope variable `callback_0` assigned to non-scope parameter `cb` calling `__lambda10`
../.dub/packages/vibe-core-1.23.0/vibe-core/source/vibe/core/sync.d(1482,43): Deprecation: `@safe` function `wait` calling `asyncAwaitAny`
../.dub/packages/vibe-core-1.23.0/vibe-core/source/vibe/internal/async.d(85,71):        which calls `vibe.core.sync.ThreadLocalWaiter!true.ThreadLocalWaiter.wait!false.wait.asyncAwaitAny!(false, __T8WaitableTDFNbNfZvS4vibe4core4sync__T17ThreadLocalWaiterVbi1ZQy__T4waitVbi0ZQkMFNfSQCh4time8DurationS9eventcore6driver7EventIDMDFNbNfZbZ10__lambda10SQFaQEyQEw__TQEuVbi1ZQFc__TQEfVbi0ZQEnMFNfQEeQDpMQCsZ10__lambda11S_DQHpQHnQHl__TQHjVbi1ZQHr__TQGuVbi0ZQHcMFNfQGtQGeMQFhZ10__lambda12FNaNbNiNfZvZ).asyncAwaitAny`
../.dub/packages/vibe-core-1.23.0/vibe-core/source/vibe/internal/async.d-mixin-164(181,42):        which would be `@system` because of:
../.dub/packages/vibe-core-1.23.0/vibe-core/source/vibe/internal/async.d-mixin-164(181,42):        scope variable `callback_0` assigned to non-scope parameter `cb` calling `__lambda10`

FAIL ../.dub/cache/vibe-core/1.23.0/build/epoll-debug-linux.posix-x86_64-dmd_v2.102.2-802D4739C88702CB2CFCF1618800F237192241A4A2CCBC9A5EDEA5A2A6512FAD vibe_core staticLibrary

I'm using all the latest things. My code to install everything on the remote instance is something like:

            D_VERSION=$(wget -qO - http://downloads.dlang.org/releases/LATEST)
            wget -qO dmd.deb http://downloads.dlang.org/releases/2.x/${D_VERSION}/dmd_${D_VERSION}-0_amd64.deb
            sudo apt update
            sudo apt install -y libssl-dev
            sudo apt install -y ./dmd.deb
            pwd
            dub

which currently installs:

  • dmd : 2.102.2
  • dub : 1.31.1

My app uses

  • vibe : 0.9.5

This doesn't show the error. You can try silencing deprecations to see the real cause of the error. Additionally, the latest release of vibe-core should clear out most if not all of those, but it's a major version bump.

The quick way to test with vibe-core 2.x would be to dub upgrade --prerelease. I'll also tag a new vibe.d release shortly (maybe today), which will pick it up automatically.

@Geod24 There is no error, it just times out.
They're the last few lines in the log.
I'll try running again with the suppressed log ( -q) to just get errors and warnings.

@s-ludwig I can try that too.