Skip to content

rpmalloc build fails on Ubuntu #256

@zooko

Description

@zooko
$ ./build-bench-env.sh je sn mi2 rp packages bench lean-mathlib
...
FAILED: build/ninja/linux/debug/x86-64/test-7e8c09f/main-override-7531094.o
clang++ -MMD -MT build/ninja/linux/debug/x86-64/test-7e8c09f/main-override-7531094.o -MF build/ninja/linux/debug/x86-64/test-7e8c09f/main-override-7531094.o.d -I. -Irpmalloc -Itest -DRPMALLOC_COMPILE=1 -fstrict-aliasing -fvisibility=default -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  -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 -Wno-unsafe-buffer-usage -std=c++14 -m64 -g -DBUILD_DEBUG=1 -DENABLE_ASSERTS=1 -DENABLE_STATISTICS=1  -c test/main-override.cc -o build/ninja/linux/debug/x86-64/test-7e8c09f/main-override-7531094.o
test/main-override.cc:19:10: fatal error: 'new' file not found
   19 | #include <new>
      |          ^~~~~
1 error generated.
[14/54] CXX test/main-override.cc
FAILED: build/ninja/linux/release/x86-64/test-7e8c09f/main-override-7531094.o
clang++ -MMD -MT build/ninja/linux/release/x86-64/test-7e8c09f/main-override-7531094.o -MF build/ninja/linux/release/x86-64/test-7e8c09f/main-override-7531094.o.d -I. -Irpmalloc -Itest -DRPMALLOC_COMPILE=1 -fstrict-aliasing -fvisibility=default -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  -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 -Wno-unsafe-buffer-usage -std=c++14 -m64 -g -DBUILD_RELEASE=1 -O3 -funroll-loops -DENABLE_ASSERTS=1 -DENABLE_STATISTICS=1  -c test/main-override.cc -o build/ninja/linux/release/x86-64/test-7e8c09f/main-override-7531094.o
test/main-override.cc:19:10: fatal error: 'new' file not found
   19 | #include <new>
      |          ^~~~~

So I installed this package:

$ sudo apt install libstdc++-14-dev

That fixed the compile error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions