Skip to content

Compilation fails on latest Alpine Linux #293

Closed

Description

@jvoisin

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.

Activity

  1. self-assigned this
    on Dec 2, 2022
  2. mjansson commented on Dec 4, 2022

    @mjansson
    Owner

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions