Giter Site home page Giter Site logo

Error while deploying to Heroku about vapor HOT 4 CLOSED

vapor avatar vapor commented on April 27, 2024
Error while deploying to Heroku

from vapor.

Comments (4)

tanner0101 avatar tanner0101 commented on April 27, 2024 1

Just checked the source and it looks like import Glibc was inadvertently removed from that file. It has been re-added. And i'm force updating the 0.1.6 release to contain that fix.

If you compile the Heroku app again without --configuration release you should be good to go.

from vapor.

tanner0101 avatar tanner0101 commented on April 27, 2024

There's an issue with the Clang compiler right now that is throwing this error when compiling release

remote: Attributes 'readnone and readonly' are incompatible!
remote: i16 (i16)* @htons

The only solution for that currently on Linux is to compile in development / debug mode.

As for the other error

remote: /tmp/build_40ef44289550a82b4ac7bc7f6206a753/Packages/vapor-0.1.6/Sources/Server.swift:85:17: error: use of unresolved identifier 'sleep'
remote:                 sleep(1)

I have never seen this before. It must be an issue with #if os(Linux) being resolved because sleep() is a part of import Glibc.

from vapor.

tanner0101 avatar tanner0101 commented on April 27, 2024

Actually, I just found a way to avoid using htons() altogether. It's now building properly on --configuration release.

from vapor.

steffendsommer avatar steffendsommer commented on April 27, 2024

It works, thanks a lot πŸ™πŸŽ‰

from vapor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.