Giter Site home page Giter Site logo

Comments (2)

zelo avatar zelo commented on May 9, 2024 2

Maybe this will help someone in the future.

I've compiled libsocketify on rpi4@aarch64 but it required few changes.

  • Platform had to be provided to make PLATFORM=aarch64
  • During compilation step i got error
socketify.py/src/socketify/uWebSockets/uSockets/boringssl/crypto/bytestring/cbs.c: In function ‘CBS_get_asn1_int64’:
socketify.py/src/socketify/uWebSockets/uSockets/boringssl/crypto/bytestring/cbs.c:505:20: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  505 |     sign_extend[i] = data[len - i - 1];
      |     ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
socketify.py/src/socketify/uWebSockets/uSockets/boringssl/crypto/bytestring/cbs.c:502:11: note: at offset 8 into destination object ‘sign_extend’ of size 8
  502 |   uint8_t sign_extend[sizeof(int64_t)];
      |           ^~~~~~~~~~~
cc1: all warnings being treated as errors

I was able to finally build it with this cmd CFLAGS="-Wno-error=stringop-overflow" make linux PLATFORM=aarch64

Later in socketify/native.py it tried to load amd64 version so i changed "arm" in platform.processor().lower() to
("arm" in platform.processor().lower() or 'aarch64' in platform.machine().lower()) which solved the problem.
platform.processor() returned empty string.

from socketify.py.

cirospaciari avatar cirospaciari commented on May 9, 2024

Something like this

 build-linux-arm:
    needs: build-linux
    runs-on: ubuntu-latest
    name: Build on linux-arm64
    steps:
      - uses: uraimo/[email protected]
        with:
          arch: aarch64
          distro: ubuntu20.04
          install: |
            apt-get update -q -y
            apt-get install -q -y build-essential cmake libz-dev golang libuv1-dev git
          run: |
            git clone --recursive https://github.com/cirospaciari/socketify.py.git
            cd socketify.py/src/socketify/native
            make linux
            cd ../
            git add libsocketify_linux_arm64.so
            git config --global user.email "[email protected]"
            git config --global user.name "Ciro Spaciari"
            git commit -m "[GitHub Actions] Updated linux-arm64 binaries" || true
            git push "https://cirospaciari:${{ secrets.BUILDTOKEN }}@github.com/cirospaciari/socketify.py.git"

from socketify.py.

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.