Comments (7)
FWIW I can not reproduce with the same docker image as used on Alpine pipeline linked in #936 (comment) - running locally on Ubuntu 22.04 aarch64 host.
Output of build/autoconf.err will help.
from unit.
Thanks for trying that. There is definitely something very broken in this case, from one of the failed builds
checking for endianness ... not found
checking for int size ... not found
checking for long size ... not found
checking for long long size ... not found
checking for void * size ... not found
checking for size_t size ... not found
checking for off_t size ... not found
checking for time_t size ... not found
checking for C99 variadic macro ... not found
checking for GCC variadic macro ... not found
checking for GCC __builtin_expect() ... not found
checking for GCC __builtin_unreachable() ... not found
checking for GCC __builtin_prefetch() ... not found
checking for GCC __builtin_clz() ... not found
checking for GCC __builtin_popcount() ... not found
checking for GCC __attribute__ visibility ... not found
checking for GCC __attribute__ aligned ... not found
checking for GCC __attribute__ malloc ... not found
checking for GCC __attribute__ packed ... not found
checking for GCC __attribute__ unused ... not found
checking for GCC builtin atomic operations ... not found
checking for Solaris builtin atomic operations ... not found
checking for xlC builtin atomic operations ... not found
Absolutely nothing worked!
@andypost as @thresheek says, if you could post the build/autoconf.err
file from one of the failed builds, that may shed some light on the matter.
However it looks like clang is very broken on these systems.
from unit.
@ac000 here's full log of build env https://gist.github.com/andypost/bfeb0f21637a0a2463c00151eb429e69
from unit.
Thanks.
Heh. What's fix-clang.patch?
But it looks like all the tests are failing due to the unknown -fstack-clash-protection option.
checking for endianness
clang-16: error: argument unused during compilation: '-fstack-clash-protection' [-Werror,-Wunused-command-line-argument]
I don't know where that actually comes from. I can't see it set anywhere in Unit. There are other options like -Os which I can't see set in Unit.
As to fstack-clash-protection
it looks like it is only implemented on some platforms currently
https://blog.llvm.org/posts/2021-01-05-stack-clash-protection/
https://reviews.llvm.org/D96007
So we need to find where this is coming from.
from unit.
On Alpine Linux, this is the command I'm seeing run for these tests...
clang -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -fstrict-aliasing -Wstrict-overflow=5 -Wmissing-prototypes -Werror -g -o build/autotest build/autotest.c
from unit.
Probably builders/CI configured this way, I found other packages using it and now it pass https://gitlab.alpinelinux.org/alpine/aports/-/pipelines/178897
case "$CARCH" in
arm*|aarch64|riscv64)
export CFLAGS="${CFLAGS/-fstack-clash-protection}"
;;
esac
from unit.
OK, cool. I'll go ahead and close this then.
from unit.
Related Issues (20)
- Missing http.ServerResponse.flushHeaders function HOT 4
- Unit building PHP modules. Version confusion. HOT 7
- Unable to compile an nginx unit Golang application under Windows HOT 1
- Docker: Unable to build images for PHP 8.3.0RC6 using packages Makefile HOT 17
- PHP 8.3 official unit image HOT 7
- Add HTTP Range header support HOT 1
- Can Unit run NodeJS Nuxt applications? HOT 8
- Nginx unit daemon json logs HOT 3
- Best practice for handling concurrent jobs in a multi-instance Express app HOT 1
- python asgi stop response HOT 6
- Are Python WebSockets under SSL intended to work? HOT 10
- Support for request headers HOT 2
- Does ngix for windows support http_perl_module? HOT 2
- npm: unit-http: should we replace the https package as well?
- Nginx unit's analog for fpm max_children HOT 1
- how to add in image HOT 3
- compile unit with only needed language support
- Trailing slash rewrite - duplicated content SEO issue
- "error": "Failed to apply new configuration." - REG HOT 2
- questions around embedding `libunit` in Julia HOT 2
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 unit.