Giter Site home page Giter Site logo

Erro on link libStrand.so about vapor HOT 7 CLOSED

vapor avatar vapor commented on April 27, 2024
Erro on link libStrand.so

from vapor.

Comments (7)

tanner0101 avatar tanner0101 commented on April 27, 2024

What version of Swift are you using? If you are using Swift 3.0, which snapshot?

from vapor.

d3roch4 avatar d3roch4 commented on April 27, 2024

swift version 3.0-dev (LLVM 699a786c15, Clang 77080f2c03, Swift d22638766e)
Target: x86_64-unknown-linux-gnu

DEVELOPMENT.SNAPSHOT.2016.03.16.a-2

from vapor.

d3roch4 avatar d3roch4 commented on April 27, 2024

It is relevant: https://bugs.swift.org/browse/SR-1023 ???

from vapor.

tanner0101 avatar tanner0101 commented on April 27, 2024

Vapor is only compatible with the 03-24 (yours is 03-16) snapshot. I'd recommend you use https://github.com/kylef/swiftenv to manage Swift installations since that can be a source of problems.

Vapor has a special .swift-version file included in all of its dependencies that will ensure swiftenv uses the correct Swift version without you having to worry about it.

from vapor.

d3roch4 avatar d3roch4 commented on April 27, 2024

I update and the erro continue

/tmp/vapor-example>$ swift build
Compiling Swift Module 'InterchangeData' (1 sources)
Linking .build/debug/libStrand.so
Linking .build/debug/libHummingbird.so
/usr/bin/ld: /tmp/vapor-example/.build/debug/Strand.build/Strand.swift.o: relocation R_X86_64_PC32 against protected symbol _TWPO6Strand11StrandErrors13ErrorProtocolS_' can not be used when making a shared object /usr/bin/ld: final link failed: Bad value clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation) <unknown>:0: error: link command failed with exit code 1 (use -v to see invocation) /usr/bin/ld: /tmp/vapor-example/.build/debug/Hummingbird.build/Socket.swift.o: relocation R_X86_64_PC32 against protected symbol_Tv11Hummingbird10sockStreamVs5Int32' can not be used when making a shared object
/usr/bin/ld: final link failed: Bad value
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
:0: error: link command failed with exit code 1 (use -v to see invocation)
:0: error: build had 2 command failures
error: exit(1): /usr/bin/swift-build-tool -f /tmp/vapor-example/.build/debug.yaml default

$ swift -version
Swift version 3.0-dev (LLVM b010debd0e, Clang 3e4d01d89b, Swift 7182c58cb2)
Target: x86_64-unknown-linux-gnu

using: swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu15.10.tar.gz
in arch linux 64 bits

from vapor.

tanner0101 avatar tanner0101 commented on April 27, 2024

My guess there is that Arch Linux is not yet supported by swift build. Apple only officially supports OS X, Ubuntu 14.04, and Ubuntu 15.10.

from vapor.

tanner0101 avatar tanner0101 commented on April 27, 2024

Closing this for inactivity. Let me know if you need more help with this issue.

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.