Comments (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.
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)
- If response has a header, written status code is ignored
- Response.resume() does not work HOT 2
- undefined symbol: uv_handle_get_data HOT 1
- Response.send_chunk() and helpers.sendfile() can corrupt data during back-pressure.
- Huge latency from time to time HOT 1
- Deployment with 1 worker always consumes 0.1 cpu HOT 1
- on_start and on_shutdown not work HOT 4
- Create a background task in event loop HOT 5
- App.static will be hang up by reload some times HOT 1
- Request Update HOT 3
- API Documentation needs explanations HOT 5
- Clarify how to handle web socket back pressure HOT 1
- Started a new GPT for socketify, would be happy to keep adding background data
- Support h2 and h2c HOT 2
- ffi.from_handle() detected that the address passed points to garbage HOT 1
- App can't be hit with http call when executed via CLI HOT 3
- Can we add if __name__ == "__main__": guards to the hello world examples and the documentation examples?
- Interface is counterintuitive HOT 1
- flask request.args contains the (?arg) with socketify wsgi
- How to enable CORS?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socketify.py.