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

failed to build #1

Open
itrack opened this issue Dec 5, 2023 · 2 comments
Open

failed to build #1

itrack opened this issue Dec 5, 2023 · 2 comments

Comments

@itrack
Copy link

itrack commented Dec 5, 2023

Hi,
I tried nix-build but I get the following error:

[ 46%] Built target valhalla-odin
make: *** [Makefile:156: all] Error 2
error: builder for '/nix/store/qnych883vd3yly0h450q5h5l9dl59f2q-valhalla.drv' failed with exit code 2
error: 1 dependencies of derivation '/nix/store/xdi1ymjz73fj1ni2xd9rjsli8qap226x-valhalla-go.drv' failed to build

Do you have any idea what the solution could be?
Thank you!

@fenwuyaoji
Copy link

fenwuyaoji commented Dec 22, 2023

me too. more details:

In file included from /tmp/nix-build-valhalla.drv-0/source/src/midgard/tiles.cc:13:
/tmp/nix-build-valhalla.drv-0/source/third_party/robin-hood-hashing/src/include/robin_hood.h:1445:33: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtin
s]
        Cloner<Table, IsFlat && ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(Node)>()(o, *this);
                                ^
/tmp/nix-build-valhalla.drv-0/source/third_party/robin-hood-hashing/src/include/robin_hood.h:210:51: note: expanded from macro 'ROBIN_HOOD_IS_TRIVIALLY_COPYABLE'
#    define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__)
                                                  ^
[ 14%] Building CXX object src/valhalla/proto/CMakeFiles/valhalla-proto.dir/info.pb.cc.o
[ 15%] Building CXX object src/valhalla/proto/CMakeFiles/valhalla-proto.dir/options.pb.cc.o
/tmp/nix-build-valhalla.drv-0/source/third_party/robin-hood-hashing/src/include/robin_hood.h:1445:33: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtin
s]
/tmp/nix-build-valhalla.drv-0/source/third_party/robin-hood-hashing/src/include/robin_hood.h:210:51: note: expanded from macro 'ROBIN_HOOD_IS_TRIVIALLY_COPYABLE'
#    define ROBIN_HOOD_IS_TRIVIALLY_COPYABLE(...) __has_trivial_copy(__VA_ARGS__)

@fenwuyaoji
Copy link

@itrack Hi, actually, I run this on Mac and I fixed it by adding -DENABLE_SINGLE_FILES_WERROR=OFF into cmakeFlags, then it works for me. you can have a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants