question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building fails on Mac

See original GitHub issue

Hello,

I was curious about this package and tried to install on my Mac OSX laptop.

Here are some stats that might be helpful…

I’m running on Mac OS 10.13.4

Peters-MBP:cupy peter$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Tue_Dec_19_21:36:29_CST_2017
Cuda compilation tools, release 9.1, V9.1.128

Peters-MBP:cupy peter$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Peters-MBP:cupy peter$ ipython
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 12:04:33)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import cython

In [2]: cython.__version__
Out[2]: '0.27.3'

When I run python setup.py build or whatever on the git master, or on the v4.0.0/v2.5.0 tag.

The output crashes… I get bunch of text, but ends with this.

            instantiation of "void thrust::cuda_cub::stable_sort(thrust::cuda_cub::execution_policy<Derived> &, ItemsIt, ItemsIt) [with Derived=thrust::cuda_cub::tag, ItemsIt=thrust::zip_iterator<thrust::tuple<thrust::device_ptr<size_t>, thrust::device_ptr<cpy_double>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type>>]"
/Developer/NVIDIA/CUDA-9.1/include/thrust/detail/sort.inl(68): here
            instantiation of "void thrust::stable_sort(const thrust::detail::execution_policy_base<DerivedPolicy> &, RandomAccessIterator, RandomAccessIterator) [with DerivedPolicy=thrust::cuda_cub::tag, RandomAccessIterator=thrust::zip_iterator<thrust::tuple<thrust::device_ptr<size_t>, thrust::device_ptr<cpy_double>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type>>]"
/Developer/NVIDIA/CUDA-9.1/include/thrust/detail/sort.inl(246): here
            instantiation of "void thrust::stable_sort(RandomAccessIterator, RandomAccessIterator) [with RandomAccessIterator=thrust::zip_iterator<thrust::tuple<thrust::device_ptr<size_t>, thrust::device_ptr<cpy_double>, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type>>]"
cupy/cuda/cupy_thrust.cu(48): here
            instantiation of "void cupy::thrust::_sort<T>(void *, size_t *, const std::vector<ptrdiff_t, std::allocator<ptrdiff_t>> &) [with T=cpy_double]"
cupy/cuda/cupy_thrust.cu(61): here

52 errors detected in the compilation of "/var/folders/bn/czb18xb91v1dfdf9d1wrmc6h0000gn/T//tmpxft_0000245a_00000000-10_cupy_thrust.compute_70.cpp1.ii".
error: command '/Developer/NVIDIA/CUDA-9.1/bin/nvcc' failed with exit status 1

Any idea how to debug this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bingo619commented, May 20, 2018

MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install works

0reactions
leofangcommented, May 12, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting build error while building a solution on mac in visual ...
Try the build from the command line using msbuild and see if it fails there. · Run the PostBuildEvent command directly in the...
Read more >
NET 7 RC1 dotnet build fails without errors on MAC M1 #7840
NET 7 RC1 yesterday. Everything runs ok, but after some builds and runs, dotnet stops building my project. ╰─ dotnet build ─╯ MSBuild ......
Read more >
Why new Macs break your Docker build, and how to fix it
So it can be a little confusing when you try to build your Python-based Dockerfile on a new Mac, and everything starts failing....
Read more >
Build failure on Apple Silicon M1 Mac Mini - Compiler
Hi, I'm seeing a build failure on an Apple Silicon Mac Mini that I'm not seeing on my Intel MacBook Pro. (Both checkouts...
Read more >
Question - Error when building for iOS on Mac OS - Unity Forum
Hi guys. I'm having trouble building my game to iOS on Mac OS, whereas the project built to iOS just fine on Windows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found