Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build on (AWS ?) Linux #2717

Open
infinityplusb opened this issue Mar 20, 2023 · 3 comments
Open

Can't build on (AWS ?) Linux #2717

infinityplusb opened this issue Mar 20, 2023 · 3 comments

Comments

@infinityplusb
Copy link

infinityplusb commented Mar 20, 2023

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
@Geod24
Copy link
Contributor

Geod24 commented Mar 20, 2023

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.

@s-ludwig
Copy link
Member

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.

@infinityplusb
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants