Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fails on latest Alpine Linux #293

Closed
jvoisin opened this issue Nov 28, 2022 · 1 comment
Closed

Compilation fails on latest Alpine Linux #293

jvoisin opened this issue Nov 28, 2022 · 1 comment
Assignees

Comments

@jvoisin
Copy link

jvoisin commented Nov 28, 2022

It seems that the gcc/clang detection is broken:

/__w/mimalloc-bench/mimalloc-bench/extern /__w/mimalloc-bench/mimalloc-bench
Cloning into 'rp'...
HEAD is now at 1343890 Update changelog
[1/54] CC rpmalloc/rpmalloc.c
[2/54] CC rpmalloc/rpmalloc.c
[3/54] CC rpmalloc/rpmalloc.c
ninja: job failed: clang -MMD -MT build/ninja/linux/debug/x86-64/rpmalloc-cccf0ca/rpmalloc-a2b50b2.o -MF build/ninja/linux/debug/x86-64/rpmalloc-cccf0ca/rpmalloc-a2b50b2.o.d -I.  -DRPMALLOC_COMPILE=1 -funit-at-a-time -fstrict-aliasing -fvisibility=hidden -fno-stack-protector -fno-math-errno -ffinite-math-only -funsafe-math-optimizations -fno-trapping-math -ffast-math -D_GNU_SOURCE=1 -fomit-frame-pointer -W -Werror -pedantic -Wall -Weverything -Wno-c++98-compat -Wno-padded -Wno-documentation-unknown-command -Wno-declaration-after-statement -Wno-implicit-fallthrough -Wno-static-in-inline -Wno-reserved-id-macro -Wno-disabled-macro-expansion -std=c11 -DBUILD_DYNAMIC_LINK=1 -fPIC -m64 -g -DBUILD_DEBUG=1   -c rpmalloc/rpmalloc.c -o build/ninja/linux/debug/x86-64/rpmalloc-cccf0ca/rpmalloc-a2b50b2.o
clang-15: error: optimization flag '-funit-at-a-time' is not supported [-Werror,-Wignored-optimization-argument]
ninja: job failed: clang -MMD -MT build/ninja/linux/release/x86-64/rpmalloc-7c2f09b/rpmalloc-65d008a.o -MF build/ninja/linux/release/x86-64/rpmalloc-7c2f09b/rpmalloc-65d008a.o.d -I.  -DRPMALLOC_COMPILE=1 -funit-at-a-time -fstrict-aliasing -fvisibility=hidden -fno-stack-protector -fno-math-errno -ffinite-math-only -funsafe-math-optimizations -fno-trapping-math -ffast-math -D_GNU_SOURCE=1 -fomit-frame-pointer -W -Werror -pedantic -Wall -Weverything -Wno-c++98-compat -Wno-padded -Wno-documentation-unknown-command -Wno-declaration-after-statement -Wno-implicit-fallthrough -Wno-static-in-inline -Wno-reserved-id-macro -Wno-disabled-macro-expansion -std=c11 -m64 -g -DBUILD_RELEASE=1 -O3 -funroll-loops   -c rpmalloc/rpmalloc.c -o build/ninja/linux/release/x86-64/rpmalloc-7c2f09b/rpmalloc-65d008a.o
clang-15: error: optimization flag '-funit-at-a-time' is not supported [-Werror,-Wignored-optimization-argument]
ninja: job failed: clang -MMD -MT build/ninja/linux/debug/x86-64/rpmalloc-7c2f09b/rpmalloc-65d008a.o -MF build/ninja/linux/debug/x86-64/rpmalloc-7c2f09b/rpmalloc-65d008a.o.d -I.  -DRPMALLOC_COMPILE=1 -funit-at-a-time -fstrict-aliasing -fvisibility=hidden -fno-stack-protector -fno-math-errno -ffinite-math-only -funsafe-math-optimizations -fno-trapping-math -ffast-math -D_GNU_SOURCE=1 -fomit-frame-pointer -W -Werror -pedantic -Wall -Weverything -Wno-c++98-compat -Wno-padded -Wno-documentation-unknown-command -Wno-declaration-after-statement -Wno-implicit-fallthrough -Wno-static-in-inline -Wno-reserved-id-macro -Wno-disabled-macro-expansion -std=c11 -m64 -g -DBUILD_DEBUG=1   -c rpmalloc/rpmalloc.c -o build/ninja/linux/debug/x86-64/rpmalloc-7c2f09b/rpmalloc-65d008a.o
clang-15: error: optimization flag '-funit-at-a-time' is not supported [-Werror,-Wignored-optimization-argument]
ninja: subcommands failed
Error: Process completed with exit code 1.
@mjansson mjansson self-assigned this Dec 2, 2022
@mjansson
Copy link
Owner

mjansson commented Dec 4, 2022

It was fixed on develop branch a while ago with #291 - my suggestion would be to update to the latest develop branch or commit f4732ee until I get a new release out the door

@jvoisin jvoisin closed this as completed Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants