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

topgrade 6.8.0 fails to build on MacOs (darwin) #119866

Closed
mamciek opened this issue Apr 19, 2021 · 4 comments · Fixed by #122068
Closed

topgrade 6.8.0 fails to build on MacOs (darwin) #119866

mamciek opened this issue Apr 19, 2021 · 4 comments · Fixed by #122068
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: rust

Comments

@mamciek
Copy link
Contributor

mamciek commented Apr 19, 2021

Describe the bug
topgrade 6.8.0 fails to build on MacOS (darwin). Previous version (6.7.0 nixpkgs rev: 35218c2 ) builds with success

To Reproduce
Steps to reproduce the behavior:

  1. nix-shell -p topgrade
these derivations will be built:
  /nix/store/mi8yxy90pqgxw1d5sx53krmb611xz0yr-topgrade-6.8.0.drv
building '/nix/store/mi8yxy90pqgxw1d5sx53krmb611xz0yr-topgrade-6.8.0.drv'...
unpacking sources
unpacking source archive /nix/store/g7i51a89gbyrypbqinbirpx8bdchln0s-source
source root is source
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/yybkcfq261aq1avbrykhyk7vqwbz4hsx-topgrade-6.8.0-vendor.tar.gz
Finished cargoSetupPostUnpackHook
patching sources
Executing cargoSetupPostPatchHook
Validating consistency between /private/tmp/nix-build-topgrade-6.8.0.drv-0/source//Cargo.lock and /private/tmp/nix-build-topgrade-6.8.0.drv-0/topgrade-6.8.0-vendor.tar.gz/Cargo.lock
Finished cargoSetupPostPatchHook
configuring
building
Executing cargoBuildHook
++ env CC_x86_64-apple-darwin=/nix/store/2pb1r2zgw6yiabv4v3d4j66d3vwgdd5q-clang-wrapper-7.1.0/bin/cc CXX_x86_64-apple-darwin=/nix/store/2pb1r2zgw6yiabv4v3d4j66d3vwgdd5q-clang-wrapper-7.1.0/bin/c++ CC_x86_64-apple-darwin=/nix/store/2pb1r2zgw6yiabv4v3d4j66d3vwgdd5q-clang-wrapper-7.1.0/bin/cc CXX_x86_64-apple-darwin=/nix/store/2pb1r2zgw6yiabv4v3d4j66d3vwgdd5q-clang-wrapper-7.1.0/bin/c++ cargo build -j 4 --target x86_64-apple-darwin --frozen --release
   Compiling libc v0.2.86
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.60
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.0.1
   Compiling memchr v2.3.4
   Compiling once_cell v1.6.0
   Compiling version_check v0.9.2
   Compiling proc-macro-hack v0.5.19
   Compiling getrandom v0.2.2
   Compiling log v0.4.14
   Compiling unicode-segmentation v1.7.1
   Compiling proc-macro-nested v0.1.7
   Compiling bitflags v1.2.1
   Compiling unicode-width v0.1.8
   Compiling pin-project-lite v0.2.4
   Compiling regex-syntax v0.6.22
   Compiling cc v1.0.67
   Compiling futures-core v0.3.12
   Compiling futures-sink v0.3.12
   Compiling serde_derive v1.0.123
   Compiling pin-utils v0.1.0
   Compiling serde v1.0.123
   Compiling futures-io v0.3.12
   Compiling quick-error v1.2.3
   Compiling block v0.1.6
   Compiling ppv-lite86 v0.2.10
   Compiling slab v0.4.2
   Compiling lazy_static v1.4.0
   Compiling ansi_term v0.11.0
   Compiling termcolor v1.1.2
   Compiling strsim v0.8.0
   Compiling vec_map v0.8.2
   Compiling anyhow v1.0.38
   Compiling same-file v1.0.6
   Compiling remove_dir_all v0.5.3
   Compiling topgrade v6.8.0 (/private/tmp/nix-build-topgrade-6.8.0.drv-0/source)
   Compiling bytes v1.0.1
   Compiling glob v0.3.0
   Compiling thread_local v1.1.3
   Compiling futures-task v0.3.12
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling tokio v1.2.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling textwrap v0.11.0
   Compiling futures-channel v0.3.12
   Compiling heck v0.3.2
   Compiling humantime v1.3.0
   Compiling mac-notification-sys v0.3.0
   Compiling walkdir v2.3.1
   Compiling quote v1.0.9
The following warnings were emitted during compilation:

warning: While building module 'std' imported from /nix/store/s3x7ns5hs3n5jjdgbwcbzzij7061khz2-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:19:
warning: In file included from <module-includes>:12:
warning: In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/ccomplex:21:
warning: In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/complex:244:
warning: In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:402:
warning: In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:45:
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/__nullptr:55:1: error: unknown type name 'namespace'
warning: namespace std
warning: ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/__nullptr:55:14: error: expected ';' after top level declarator
warning: namespace std
warning:              ^
warning: While building module 'std' imported from /nix/store/s3x7ns5hs3n5jjdgbwcbzzij7061khz2-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:19:
warning: In file included from <module-includes>:12:
warning: In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/ccomplex:21:
warning: In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/complex:244:
warning: In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:402:
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:50:7: error: expected ';' after top level declarator
warning: using ::size_t;
warning:       ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:50:8: error: expected identifier or '('
warning: using ::size_t;
warning:        ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:55:7: error: expected ';' after top level declarator
warning: using ::max_align_t;
warning:       ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:55:8: error: expected identifier or '('
warning: using ::max_align_t;
warning:        ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:60:1: error: unknown type name '_LIBCPP_END_NAMESPACE_STD'
warning: _LIBCPP_END_NAMESPACE_STD
warning: ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:113:27: error: expected identifier or '('
warning: #endif  // _LIBCPP_CSTDDEF
warning:                           ^
warning: While building module 'std' imported from /nix/store/s3x7ns5hs3n5jjdgbwcbzzij7061khz2-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:19:
warning: In file included from <module-includes>:12:
warning: In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/ccomplex:21:
warning: In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/complex:244:
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:408:1: error: unknown type name '_LIBCPP_BEGIN_NAMESPACE_STD'
warning: _LIBCPP_BEGIN_NAMESPACE_STD
warning: ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:410:9: error: expected ';' after top level declarator
warning: template <class _T1, class _T2> struct _LIBCPP_TEMPLATE_VIS pair;
warning:         ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:410:17: error: expected '>'
warning: template <class _T1, class _T2> struct _LIBCPP_TEMPLATE_VIS pair;
warning:                 ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:410:27: error: expected ';' after top level declarator
warning: template <class _T1, class _T2> struct _LIBCPP_TEMPLATE_VIS pair;
warning:                           ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:411:1: error: unknown type name 'template'
warning: template <class _Tp> class _LIBCPP_TEMPLATE_VIS reference_wrapper;
warning: ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:411:10: error: expected identifier or '('
warning: template <class _Tp> class _LIBCPP_TEMPLATE_VIS reference_wrapper;
warning:          ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:412:1: error: unknown type name 'template'
warning: template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash;
warning: ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:412:10: error: expected identifier or '('
warning: template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash;
warning:          ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:414:1: error: unknown type name 'template'
warning: template <class>
warning: ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:414:10: error: expected identifier or '('
warning: template <class>
warning:          ^
warning: /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:417:1: error: unknown type name 'template'
warning: template <class _Tp>
warning: ^
warning: fatal error: too many errors emitted, stopping now [-ferror-limit=]
warning: In file included from objc/notify.m:1:
warning: In file included from objc/notify.h:1:
warning: In file included from /nix/store/29lb7pfjc35vd0dl5dn36bvg0j6qdcp5-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
warning: /nix/store/s3x7ns5hs3n5jjdgbwcbzzij7061khz2-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:19:10: fatal error: could not build module 'std'
warning: #include <ctype.h>
warning:  ~~~~~~~~^
warning: 21 errors generated.

error: failed to run custom build command for `mac-notification-sys v0.3.0`

Caused by:
  process didn't exit successfully: `/private/tmp/nix-build-topgrade-6.8.0.drv-0/source/target/release/build/mac-notification-sys-e3e8bbd087ea2620/build-script-build` (exit code: 1)
  --- stdout
  TARGET = Some("x86_64-apple-darwin")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-apple-darwin")
  CC_x86_64-apple-darwin = Some("/nix/store/2pb1r2zgw6yiabv4v3d4j66d3vwgdd5q-clang-wrapper-7.1.0/bin/cc")
  CFLAGS_x86_64-apple-darwin = None
  CFLAGS_x86_64_apple_darwin = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
  running: "/nix/store/2pb1r2zgw6yiabv4v3d4j66d3vwgdd5q-clang-wrapper-7.1.0/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-fmodules" "-o" "/private/tmp/nix-build-topgrade-6.8.0.drv-0/source/target/x86_64-apple-darwin/release/build/mac-notification-sys-e0b4693f28cf4992/out/objc/notify.o" "-c" "objc/notify.m"
  cargo:warning=While building module 'std' imported from /nix/store/s3x7ns5hs3n5jjdgbwcbzzij7061khz2-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:19:
  cargo:warning=In file included from <module-includes>:12:
  cargo:warning=In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/ccomplex:21:
  cargo:warning=In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/complex:244:
  cargo:warning=In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:402:
  cargo:warning=In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:45:
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/__nullptr:55:1: error: unknown type name 'namespace'
  cargo:warning=namespace std
  cargo:warning=^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/__nullptr:55:14: error: expected ';' after top level declarator
  cargo:warning=namespace std
  cargo:warning=             ^
  cargo:warning=While building module 'std' imported from /nix/store/s3x7ns5hs3n5jjdgbwcbzzij7061khz2-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:19:
  cargo:warning=In file included from <module-includes>:12:
  cargo:warning=In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/ccomplex:21:
  cargo:warning=In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/complex:244:
  cargo:warning=In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:402:
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:50:7: error: expected ';' after top level declarator
  cargo:warning=using ::size_t;
  cargo:warning=      ^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:50:8: error: expected identifier or '('
  cargo:warning=using ::size_t;
  cargo:warning=       ^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:55:7: error: expected ';' after top level declarator
  cargo:warning=using ::max_align_t;
  cargo:warning=      ^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:55:8: error: expected identifier or '('
  cargo:warning=using ::max_align_t;
  cargo:warning=       ^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:60:1: error: unknown type name '_LIBCPP_END_NAMESPACE_STD'
  cargo:warning=_LIBCPP_END_NAMESPACE_STD
  cargo:warning=^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/cstddef:113:27: error: expected identifier or '('
  cargo:warning=#endif  // _LIBCPP_CSTDDEF
  cargo:warning=                          ^
  cargo:warning=While building module 'std' imported from /nix/store/s3x7ns5hs3n5jjdgbwcbzzij7061khz2-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:19:
  cargo:warning=In file included from <module-includes>:12:
  cargo:warning=In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/ccomplex:21:
  cargo:warning=In file included from /nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/complex:244:
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:408:1: error: unknown type name '_LIBCPP_BEGIN_NAMESPACE_STD'
  cargo:warning=_LIBCPP_BEGIN_NAMESPACE_STD
  cargo:warning=^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:410:9: error: expected ';' after top level declarator
  cargo:warning=template <class _T1, class _T2> struct _LIBCPP_TEMPLATE_VIS pair;
  cargo:warning=        ^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:410:17: error: expected '>'
  cargo:warning=template <class _T1, class _T2> struct _LIBCPP_TEMPLATE_VIS pair;
  cargo:warning=                ^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:410:27: error: expected ';' after top level declarator
  cargo:warning=template <class _T1, class _T2> struct _LIBCPP_TEMPLATE_VIS pair;
  cargo:warning=                          ^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:411:1: error: unknown type name 'template'
  cargo:warning=template <class _Tp> class _LIBCPP_TEMPLATE_VIS reference_wrapper;
  cargo:warning=^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:411:10: error: expected identifier or '('
  cargo:warning=template <class _Tp> class _LIBCPP_TEMPLATE_VIS reference_wrapper;
  cargo:warning=         ^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:412:1: error: unknown type name 'template'
  cargo:warning=template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash;
  cargo:warning=^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:412:10: error: expected identifier or '('
  cargo:warning=template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash;
  cargo:warning=         ^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:414:1: error: unknown type name 'template'
  cargo:warning=template <class>
  cargo:warning=^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:414:10: error: expected identifier or '('
  cargo:warning=template <class>
  cargo:warning=         ^
  cargo:warning=/nix/store/xaaa71l0hxk4x8dggl251gi612rb5qsn-libc++-7.1.0/include/c++/v1/type_traits:417:1: error: unknown type name 'template'
  cargo:warning=template <class _Tp>
  cargo:warning=^
  cargo:warning=fatal error: too many errors emitted, stopping now [-ferror-limit=]
  cargo:warning=In file included from objc/notify.m:1:
  cargo:warning=In file included from objc/notify.h:1:
  cargo:warning=In file included from /nix/store/29lb7pfjc35vd0dl5dn36bvg0j6qdcp5-apple-framework-Foundation/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
  cargo:warning=/nix/store/s3x7ns5hs3n5jjdgbwcbzzij7061khz2-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:19:10: fatal error: could not build module 'std'
  cargo:warning=#include <ctype.h>
  cargo:warning= ~~~~~~~~^
  cargo:warning=21 errors generated.
  exit code: 1

  --- stderr


  error occurred: Command "/nix/store/2pb1r2zgw6yiabv4v3d4j66d3vwgdd5q-clang-wrapper-7.1.0/bin/cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-fmodules" "-o" "/private/tmp/nix-build-topgrade-6.8.0.drv-0/source/target/x86_64-apple-darwin/release/build/mac-notification-sys-e0b4693f28cf4992/out/objc/notify.o" "-c" "objc/notify.m" with args "cc" did not execute successfully (status code exit code: 1).


warning: build failed, waiting for other jobs to finish...
error: build failed
builder for '/nix/store/mi8yxy90pqgxw1d5sx53krmb611xz0yr-topgrade-6.8.0.drv' failed with exit code 101
error: build of '/nix/store/mi8yxy90pqgxw1d5sx53krmb611xz0yr-topgrade-6.8.0.drv' failed

Notify maintainers
@SuperSandro2000 @Br1ght0ne @HugoReeves

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-darwin"`
 - host os: `Darwin 20.3.0, macOS 10.16`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.10`
 - channels(maciej.mazur): `"home-manager, nixpkgs-21.05pre283043.f0efbe21f9a"`
 - nixpkgs: `/Users/maciej.mazur/.nix-defexpr/channels/nixpkgs`

Maintainer information:

module:
 nixpkgs/pkgs/tools/misc/topgrade/
@mamciek mamciek added the 0.kind: bug Something is broken label Apr 19, 2021
@veprbl veprbl added the 6.topic: darwin Running or building packages on Darwin label Apr 19, 2021
@jeffutter
Copy link
Contributor

jeffutter commented Apr 20, 2021

I've been running into this for a while. I seem to have the same issue if I try to override it to use 6.7.0.

I did find these issues on mac-notification-sys:
• h4llow3En/mac-notification-sys#28
• h4llow3En/mac-notification-sys#27

That seems related, but the mentioned fix didn't seem to help in my situation.

@Mindavi
Copy link
Contributor

Mindavi commented Apr 21, 2021

It seems like a c compiler is run against c++ code to me with a cursory look.

@ipetkov
Copy link
Contributor

ipetkov commented May 2, 2021

I believe that 54c7a0f is the culprit which broke topgrade.

Spent a week bisecting nixpkgs. TL;DR here's the summary:

git checkout 4eb136c0468ec68778447407a4f7e722fccde3d2 # Known good commit
nix-build --attr topgrade # success
git cherry-pick 54c7a0f42287f63c2db8086a8ad46ac981364378 # Suspect bad commit
nix-build --attr topgrade # fails with the same error as above (go take a break, it will probably build overnight)

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/cant-build-tauri-app-on-macos-with-rust-installed-via-nix/16895/4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: rust
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants