Nixpkgs: Nheko fails to build on master / latest channells

Created on 8 Aug 2020  Â·  5Comments  Â·  Source: NixOS/nixpkgs

Describe the bug

The build fails, see https://hydra.nixos.org/build/124911367/nixlog/1/tail

I haven't succeeded in bisecting this, using stdenv = clangStdenv "fixes" the issue with warnings such as:

  clang-7: warning: argument unused during compilation: '-Xarch_x86_64 -include/build/source/build/CMakeFiles/nheko.dir/cmake_pch_x86_64.hxx'
   [-Wunused-command-line-argument]

Instead of the errors, but I'm perplexed as to what could be the source of this issue.

cc @ekleog @fpletz

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: nheko
# a list of nixos modules affected by the problem
module:
bug

All 5 comments

Closing as https://github.com/NixOS/nixpkgs/pull/95327 should fix this.

Reopen please, as nheko still fails to build:

-> % NIX_PATH=nixpkgs=https://github.com/nixos/nixpkgs/archive/master.tar.gz nix-shell -p nix-info --run "nix-info -m"                         
 - system: `"x86_64-linux"`
 - host os: `Linux 5.7.15, NixOS, 20.09pre-git (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.7`
 - channels(root): `"nixos-20.09pre239318.c59ea8b8a0e"`
 - channels(sivizius): `""`
 - nixpkgs: `/nix/store/jsykdbjami60yj1sv6zx30w6p8ga4ah9-master.tar.gz`
-> % NIX_PATH=nixpkgs=https://github.com/nixos/nixpkgs/archive/master.tar.gz nix-shell --pure -p nheko
…
[ 38%] Building CXX object CMakeFiles/nheko.dir/cmake_pch_x86_64.hxx.gch
[ 39%] Building CXX object CMakeFiles/nheko.dir/src/dialogs/FallbackAuth.cpp.o
[ 39%] Building CXX object CMakeFiles/nheko.dir/src/dialogs/CreateRoom.cpp.o
[ 39%] Building CXX object CMakeFiles/nheko.dir/src/dialogs/ImageOverlay.cpp.o
[ 39%] Building CXX object CMakeFiles/nheko.dir/src/dialogs/InviteUsers.cpp.o
[ 39%] Building CXX object CMakeFiles/nheko.dir/src/dialogs/JoinRoom.cpp.o
[ 40%] Building CXX object CMakeFiles/nheko.dir/src/dialogs/LeaveRoom.cpp.o
[ 40%] Building CXX object CMakeFiles/nheko.dir/src/dialogs/Logout.cpp.o
[ 40%] Building CXX object CMakeFiles/nheko.dir/src/dialogs/MemberList.cpp.o
g++: error: unrecognized command line option '-Xarch_x86_64'; did you mean '-march=x86-64'?
make[2]: *** [CMakeFiles/nheko.dir/build.make:621: CMakeFiles/nheko.dir/src/dialogs/CreateRoom.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
g++: error: unrecognized command line option '-Xarch_x86_64'; did you mean '-march=x86-64'?
g++: error: unrecognized command line option '-Xarch_x86_64'; did you mean '-march=x86-64'?
make[2]: *** [CMakeFiles/nheko.dir/build.make:636: CMakeFiles/nheko.dir/src/dialogs/FallbackAuth.cpp.o] Error 1
make[2]: *** [CMakeFiles/nheko.dir/build.make:681: CMakeFiles/nheko.dir/src/dialogs/JoinRoom.cpp.o] Error 1
g++: error: unrecognized command line option '-Xarch_x86_64'; did you mean '-march=x86-64'?
make[2]: *** [CMakeFiles/nheko.dir/build.make:726: CMakeFiles/nheko.dir/src/dialogs/MemberList.cpp.o] Error 1
g++: error: unrecognized command line option '-Xarch_x86_64'; did you mean '-march=x86-64'?
make[2]: *** [CMakeFiles/nheko.dir/build.make:651: CMakeFiles/nheko.dir/src/dialogs/ImageOverlay.cpp.o] Error 1
g++: error: unrecognized command line option '-Xarch_x86_64'; did you mean '-march=x86-64'?
make[2]: *** [CMakeFiles/nheko.dir/build.make:711: CMakeFiles/nheko.dir/src/dialogs/Logout.cpp.o] Error 1
g++: error: unrecognized command line option '-Xarch_x86_64'; did you mean '-march=x86-64'?
make[2]: *** [CMakeFiles/nheko.dir/build.make:666: CMakeFiles/nheko.dir/src/dialogs/InviteUsers.cpp.o] Error 1
g++: error: unrecognized command line option '-Xarch_x86_64'; did you mean '-march=x86-64'?
make[2]: *** [CMakeFiles/nheko.dir/build.make:696: CMakeFiles/nheko.dir/src/dialogs/LeaveRoom.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:173: CMakeFiles/nheko.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
builder for '/nix/store/7jxfl7dl6522ll98k3415q4dq5hz3fjv-nheko-0.7.2.drv' failed with exit code 2
error: build of '/nix/store/7jxfl7dl6522ll98k3415q4dq5hz3fjv-nheko-0.7.2.drv' failed

Yea I know :disappointed: . The cmake fix for this was merged to staging and I was hoping it wouldn't take so long for it to reach master / the channels.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rzetterberg picture rzetterberg  Â·  3Comments

grahamc picture grahamc  Â·  3Comments

copumpkin picture copumpkin  Â·  3Comments

lverns picture lverns  Â·  3Comments

teto picture teto  Â·  3Comments