Closed ac000 closed 10 months ago
Added missing 'Closes' tag.
Thank you, posted review to https://github.com/nginx/unit/issues/936#issuecomment-1708938752 that fixed build on 4 arches
but it still fail on arm(7/hf/64) and riscv64 because of atomics - there's pipelines for clang 15 and 16 https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/51157/pipelines
Thank you, posted review to #936 (comment) that fixed build on 4 arches
but it still fail on arm(7/hf/64) and riscv64 because of atomics - there's pipelines for clang 15 and 16 https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/51157/pipelines
To avoid any confusion. This is not related to this patch and is being tracked in a separate issue.
LGTM. The only question is if we need to add a BB test or not. @thresheek @ac000 @lcrilly.
Do we want a BB with say, Alpine Linux + clang?
Apart from the extra resources and possible extra time to complete a run, I don't think having more clang coverage would be bad thing in general. AFAICT the only builders that currently use clang are the FreeBSD ones and the code analyser.
Do we want a BB with say, Alpine Linux + clang?
Yep, that's what I mean.
Rebase onto master
As reported by @andypost on GitHub, if you try to build Unit on a system that uses musl libc (such as Alpine Linux) with clang then you get the following
clang -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -fstrict-aliasing -Wstrict-overflow=5 -Wmissing-prototypes -Werror -g -I src -I build/include \ \ \ -o build/src/nxt_socketpair.o \ -MMD -MF build/src/nxt_socketpair.dep -MT build/src/nxt_socketpair.o \ src/nxt_socketpair.c In file included from src/nxt_socketpair.c:8: src/nxt_socket_msg.h:138:17: error: comparison of integers of different signs: 'unsigned long' and 'long' [-Werror,-Wsign-compare] cmsg = CMSG_NXTHDR(&msg, cmsg)) ^
~~~~~~ /usr/include/sys/socket.h:358:44: note: expanded from macro 'CMSG_NXTHDR' __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \