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

Errorr while installing Doom #432

Closed
gabrieldlm opened this issue Dec 22, 2016 · 10 comments
Closed

Errorr while installing Doom #432

gabrieldlm opened this issue Dec 22, 2016 · 10 comments

Comments

@gabrieldlm
Copy link

While tried to install the Doom env, I got the fallowing error:

Installing collected packages: doom-py
  Running setup.py install for doom-py ... error
    Complete output from command /System/Library/Frameworks/Python.framework/Versions   /2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-lBCoWg/doom-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-PPHsua-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    error: [Errno 2] No such file or directory

    ----------------------------------------
 Command "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-lBCoWg/doom-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-PPHsua-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-lBCoWg/doom-py/ `

And there is no /tmp/pip-PPHsua-record/install-record.txt file as mentioned.

I'm on a macOS Sierra

@tlbtlbtlb
Copy link
Contributor

Your python installation is probably damaged. Anaconda Python solves many of the problems with pip. Try setting up a fresh Anaconda Python environment (https://www.continuum.io/downloads) and installing there.

@gabrieldlm
Copy link
Author

I cleaned my previously python installation, installed anaconda and got the same error.

@tlbtlbtlb
Copy link
Contributor

To track down the problem, run

pip install --no-clean doom-py

It will say something like:

   -- Configuring incomplete, errors occurred!
    See also "/private/var/tmp/pip-build-eqcg7d8h/doom-py/doom_py/CMakeFiles/CMakeOutput.log".
    See also "/private/var/tmp/pip-build-eqcg7d8h/doom-py/doom_py/CMakeFiles/CMakeError.log".

The CMakeError.log file should say what failed. Can you attach the entire file?

@gabrieldlm
Copy link
Author

gabrieldlm commented Dec 23, 2016

After running the command, I'm getting

Building wheels for collected packages: doom-py
  Running setup.py bdist_wheel for doom-py ... error
  Complete output from command /Users/Gabriel/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-7LqFYK/doom-py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/tmpvqED3rpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  error: [Errno 2] No such file or directory

  ----------------------------------------
  Failed building wheel for doom-py
  Running setup.py clean for doom-py
  Failed to build doom-py
Installing collected packages: doom-py
  Running setup.py install for doom-py ... error
    Complete output from command /Users/Gabriel/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-7LqFYK/doom-py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-RICdgS-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    error: [Errno 2] No such file or directory

    ----------------------------------------
Command "/Users/Gabriel/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-7LqFYK/doom-py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-RICdgS-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-7LqFYK/doom-py/

Also, there isn't no folrer, pip in .../tmp/

@tlbtlbtlb
Copy link
Contributor

Could you open a new terminal window, enter the following:

pip install -v doom-py

and then paste the entire contents of the window (⌘A ⌘C to copy, ⌘V to paste) here?

@gabrieldlm
Copy link
Author

gabrieldlm commented Dec 23, 2016

Last login: Fri Dec 23 00:59:00 on ttys001
Gabriel:Desktop Gabriel$ pip install -v doom-py
Collecting doom-py
  1 location(s) to search for versions of doom-py:
  * https://pypi.python.org/simple/doom-py/
  Getting page https://pypi.python.org/simple/doom-py/
  Looking up "https://pypi.python.org/simple/doom-py/" in the cache
  Current age based on date: 4410
  Freshness lifetime from max-age: 600
  Freshness lifetime from request max-age: 600
  The cached response is "stale" with no etag, purging
  Starting new HTTPS connection (1): pypi.python.org
  "GET /simple/doom-py/ HTTP/1.1" 200 1186
  Updating cache with response from "https://pypi.python.org/simple/doom-py/"
  Caching b/c date exists and max-age > 0
  Analyzing links from page https://pypi.python.org/simple/doom-py/
    Found link https://pypi.python.org/packages/32/6a/27c546411e56848eda57d6210638ef451a233bfee4d3edccf52de8af42c1/doom-py-0.0.11.tar.gz#md5=33d197faa3cec91c4714cc72dec062e9 (from https://pypi.python.org/simple/doom-py/), version: 0.0.11
    Found link https://pypi.python.org/packages/36/40/f5af83b228bbf79a50f2edd2f4eb65351649ccdaa8dd9bbb5ff30b377dfc/doom-py-0.0.7.tar.gz#md5=d235d8d3d9066592ae1480be80876674 (from https://pypi.python.org/simple/doom-py/), version: 0.0.7
    Found link https://pypi.python.org/packages/58/62/e66c78fbfebbfb875444cc9909eac16e7e81f1840cabe13e08ca750c4dae/doom-py-0.0.8.tar.gz#md5=003f86b2ee377b00f90b7012a66c53f1 (from https://pypi.python.org/simple/doom-py/), version: 0.0.8
    Found link https://pypi.python.org/packages/5f/a4/0700f83e7c1360e981d63737352e9a05f51c6ef553ddc031c41ff0a4ef58/doom-py-0.0.15.tar.gz#md5=9c560ac2c88ee68b377246ceee296758 (from https://pypi.python.org/simple/doom-py/), version: 0.0.15
    Found link https://pypi.python.org/packages/64/7d/38d4df5c6ab3bc3a478f36d4d3b3b49c89bca51c754e41dfe89a43139f38/doom-py-0.0.6.tar.gz#md5=01a08a5fd5befdbc7a3c3239ea86e15f (from https://pypi.python.org/simple/doom-py/), version: 0.0.6
    Found link https://pypi.python.org/packages/69/c1/c110dd3ee75c1d3e307d84f1d080e8fa52e6a746a8e2f0702be2cc3fd9ad/doom-py-0.0.10.tar.gz#md5=948510a9a436bbf0606e0d120ba81e56 (from https://pypi.python.org/simple/doom-py/), version: 0.0.10
    Found link https://pypi.python.org/packages/6c/64/93ad178a2f85f35f7649e84495d4f3f77c666962b4ed1cf584ba5751a941/doom-py-0.0.1.tar.gz#md5=e152b15c3198b7721ee1088c36168077 (from https://pypi.python.org/simple/doom-py/), version: 0.0.1
    Found link https://pypi.python.org/packages/6c/db/d8574e9fb0eae35e96da7a5371f262b1da6fab568497c56a8519eea5f125/doom-py-0.0.13.tar.gz#md5=8bb5c1fda47496a63428b6a6253c8e11 (from https://pypi.python.org/simple/doom-py/), version: 0.0.13
    Found link https://pypi.python.org/packages/8f/5d/0096387954dee7f82ce9d326ab7edb02bac36f69bfc075744b7187f6966c/doom-py-0.0.3.tar.gz#md5=46d1ade69348248aad8b877d56b354fc (from https://pypi.python.org/simple/doom-py/), version: 0.0.3
    Found link https://pypi.python.org/packages/8f/f0/fe0d08051808ca7e793a4e5c07a5016e1618a7dff604136efcb4d0917627/doom-py-0.0.5.tar.gz#md5=aa73adacac88638dc043184eb34c045a (from https://pypi.python.org/simple/doom-py/), version: 0.0.5
    Found link https://pypi.python.org/packages/9e/99/8e2402e26de931f4c2ef80646a0e4ec3d48de144eac870e8aae715742b68/doom-py-0.0.2.tar.gz#md5=e7ffa43afc3315cce5b33c37eb3522b0 (from https://pypi.python.org/simple/doom-py/), version: 0.0.2
    Found link https://pypi.python.org/packages/bd/26/3680ad1ac28f477a41dcda1ee173c1a4650eecbbacf97adc955a4e770bb9/doom-py-0.0.14.tar.gz#md5=8ac59678cb2e49072d6ccb6899c0f617 (from https://pypi.python.org/simple/doom-py/), version: 0.0.14
    Found link https://pypi.python.org/packages/cc/de/d168d1d7ade8be48943857a6f2ab090ae89aff1f943cf39926501cc94e0e/doom-py-0.0.4.tar.gz#md5=beaa82790b2af454556f399371385df6 (from https://pypi.python.org/simple/doom-py/), version: 0.0.4
    Found link https://pypi.python.org/packages/f9/d6/667e8673f486f6b28ad25e461c45f94d7cb07d04f6d47422d4dc2674b8ef/doom-py-0.0.9.tar.gz#md5=23155c760f802908937e788aad5df99e (from https://pypi.python.org/simple/doom-py/), version: 0.0.9
    Found link https://pypi.python.org/packages/ff/ba/9abd7b3a7422a56fd9351a830a3046b217c187a9aea9679dc80f601944dd/doom-py-0.0.12.tar.gz#md5=c62c43851aac304f0e1baebd1abc7ec5 (from https://pypi.python.org/simple/doom-py/), version: 0.0.12
  Using version 0.0.15 (newest of versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15)
  Looking up "https://pypi.python.org/packages/5f/a4/0700f83e7c1360e981d63737352e9a05f51c6ef553ddc031c41ff0a4ef58/doom-py-0.0.15.tar.gz" in the cache
  Current age based on date: 102287
  Freshness lifetime from max-age: 31557600
  The response is "fresh", returning cached response
  31557600 > 102287
  Using cached doom-py-0.0.15.tar.gz
  Downloading from URL https://pypi.python.org/packages/5f/a4/0700f83e7c1360e981d63737352e9a05f51c6ef553ddc031c41ff0a4ef58/doom-py-0.0.15.tar.gz#md5=9c560ac2c88ee68b377246ceee296758 (from https://pypi.python.org/simple/doom-py/)
  Running setup.py (path:/private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-acWvjy/doom-py/setup.py) egg_info for package doom-py
    Running command python setup.py egg_info
    running egg_info
    creating pip-egg-info/doom_py.egg-info
    writing requirements to pip-egg-info/doom_py.egg-info/requires.txt
    writing pip-egg-info/doom_py.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/doom_py.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/doom_py.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/doom_py.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/doom_py.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/doom_py.egg-info/SOURCES.txt'
  Source in /private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-acWvjy/doom-py has version 0.0.15, which satisfies requirement doom-py from https://pypi.python.org/packages/5f/a4/0700f83e7c1360e981d63737352e9a05f51c6ef553ddc031c41ff0a4ef58/doom-py-0.0.15.tar.gz#md5=9c560ac2c88ee68b377246ceee296758
Requirement already satisfied (use --upgrade to upgrade): numpy in /Users/Gabriel/anaconda2/lib/python2.7/site-packages (from doom-py)
Building wheels for collected packages: doom-py
  Running setup.py bdist_wheel for doom-py ...   Destination directory: /var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/tmp0ubwMrpip-wheel-
  Running command /Users/Gabriel/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-acWvjy/doom-py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/tmp0ubwMrpip-wheel- --python-tag cp27
  running bdist_wheel
  running build
  error: [Errno 2] No such file or directory
error
  Failed building wheel for doom-py
  Running setup.py clean for doom-py
  Running command /Users/Gabriel/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-acWvjy/doom-py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all
  running clean
  'build/lib' does not exist -- can't clean it
  'build/bdist.macosx-10.6-x86_64' does not exist -- can't clean it
  'build/scripts-2.7' does not exist -- can't clean it
Failed to build doom-py
Installing collected packages: doom-py
  Running setup.py install for doom-py ...     Running command /Users/Gabriel/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-acWvjy/doom-py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-DV2Qvd-record/install-record.txt --single-version-externally-managed --compile
    running install
    running build
    error: [Errno 2] No such file or directory
error
Cleaning up...
  Removing source in /private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-acWvjy/doom-py
Command "/Users/Gabriel/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-acWvjy/doom-py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-DV2Qvd-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-acWvjy/doom-py/
Exception information:
Traceback (most recent call last):
  File "/Users/Gabriel/anaconda2/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Users/Gabriel/anaconda2/lib/python2.7/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/Users/Gabriel/anaconda2/lib/python2.7/site-packages/pip/req/req_set.py", line 742, in install
    **kwargs
  File "/Users/Gabriel/anaconda2/lib/python2.7/site-packages/pip/req/req_install.py", line 880, in install
    spinner=spinner,
  File "/Users/Gabriel/anaconda2/lib/python2.7/site-packages/pip/utils/__init__.py", line 718, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command "/Users/Gabriel/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-acWvjy/doom-py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-DV2Qvd-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/bt/sq0kc21d6l9511xdss95nn2r0000gn/T/pip-build-acWvjy/doom-py/
Gabriel:Desktop Gabriel$

@tlbtlbtlb
Copy link
Contributor

Your system must be missing something used early in the build process. Can you try this:

$ brew install gcc wget boost boost-python sdl2 swig cmake make
$ pip install -v doom-py

@gabrieldlm
Copy link
Author

gabrieldlm commented Dec 23, 2016

After reinstalling CMake I'm getting

gcc -fno-strict-aliasing -I/Users/Gabriel/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ipachi_py/pachi -I/Users/Gabriel/anaconda2/include/python2.7 -I/Users/Gabriel/anaconda2/lib/python2.7/site-packages/numpy/core/include -c pachi_py/goutil.cpp -o build/temp.macosx-10.6-x86_64-2.7/pachi_py/goutil.o -std=c++11
    In file included from pachi_py/goutil.cpp:1:
    In file included from pachi_py/goutil.hpp:3:
    pachi_py/ptr.hpp:410:28: warning: class template 'ptr' was previously declared as a struct template [-Wmismatched-tags]
            template <class U> friend class ptr;
                                      ^
    pachi_py/ptr.hpp:407:8: note: previous use is here
    struct ptr {
           ^
    pachi_py/ptr.hpp:410:28: note: did you mean struct here?
            template <class U> friend class ptr;
                                      ^~~~~
                                      struct
    pachi_py/goutil.cpp:101:20: warning: unused function 'moves_equal' [-Wunused-function]
    static inline bool moves_equal(const move& m1, const move& m2) {
                       ^
    In file included from pachi_py/goutil.cpp:1:
    In file included from pachi_py/goutil.hpp:3:
    pachi_py/ptr.hpp:98:5: warning: unused typedef 'ptr_hpp_static_assertion___LINE__' [-Wunused-local-typedef]
                                    ptr_hpp_static_assert(is_complete<T>::value);
                                    ^
    pachi_py/ptr.hpp:70:3: note: expanded from macro 'ptr_hpp_static_assert'
                    ptr_hpp_static_assertion_##__LINE__;
                    ^
    <scratch space>:27:1: note: expanded from here
    ptr_hpp_static_assertion___LINE__
    ^
    In file included from pachi_py/goutil.cpp:1:
    In file included from pachi_py/goutil.hpp:3:
    pachi_py/ptr.hpp:111:5: warning: unused typedef 'ptr_hpp_static_assertion___LINE__' [-Wunused-local-typedef]
                                    ptr_hpp_static_assert(is_complete<U>::value);
                                    ^
    pachi_py/ptr.hpp:70:3: note: expanded from macro 'ptr_hpp_static_assert'
                    ptr_hpp_static_assertion_##__LINE__;
                    ^
    <scratch space>:28:1: note: expanded from here
    ptr_hpp_static_assertion___LINE__
    ^
    In file included from pachi_py/goutil.cpp:1:
    In file included from pachi_py/goutil.hpp:3:
    pachi_py/ptr.hpp:547:3: warning: unused typedef 'ptr_hpp_static_assertion___LINE__' [-Wunused-local-typedef]
                    ptr_hpp_static_assert (!is_array);
                    ^
    pachi_py/ptr.hpp:70:3: note: expanded from macro 'ptr_hpp_static_assert'
                    ptr_hpp_static_assertion_##__LINE__;
                    ^
    <scratch space>:29:1: note: expanded from here
    ptr_hpp_static_assertion___LINE__
    ^
    In file included from pachi_py/goutil.cpp:1:
    In file included from pachi_py/goutil.hpp:3:
    pachi_py/ptr.hpp:574:3: warning: unused typedef 'ptr_hpp_static_assertion___LINE__' [-Wunused-local-typedef]
                    ptr_hpp_static_assert(is_array);
                    ^
    pachi_py/ptr.hpp:70:3: note: expanded from macro 'ptr_hpp_static_assert'
                    ptr_hpp_static_assertion_##__LINE__;
                    ^
    <scratch space>:30:1: note: expanded from here
    ptr_hpp_static_assertion___LINE__
    ^
    In file included from pachi_py/goutil.cpp:1:
    In file included from pachi_py/goutil.hpp:3:
    pachi_py/ptr.hpp:747:3: warning: unused typedef 'ptr_hpp_static_assertion___LINE__' [-Wunused-local-typedef]
                    ptr_hpp_static_assert(!is_array);
                    ^
    pachi_py/ptr.hpp:70:3: note: expanded from macro 'ptr_hpp_static_assert'
                    ptr_hpp_static_assertion_##__LINE__;
                    ^
    <scratch space>:31:1: note: expanded from here
    ptr_hpp_static_assertion___LINE__
    ^
    7 warnings generated.
    g++ -bundle -undefined dynamic_lookup -L/Users/Gabriel/anaconda2/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-2.7/pachi_py/cypachi.o build/temp.macosx-10.6-x86_64-2.7/pachi_py/goutil.o -Lpachi_py/build/lib -L/Users/Gabriel/anaconda2/lib -lpachi -o build/lib.macosx-10.6-x86_64-2.7/pachi_py/cypachi.so
    clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
    ld: warning: object file (pachi_py/build/lib/libpachi.a(board.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(ownermap.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(move.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(montecarlo.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(random.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(uct.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(random.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(timeinfo.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(util.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(libpachi_globals.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(fbook.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(chat.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(base.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(pattern.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(playout.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(light.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(moggy.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(plugins.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(ucb1.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(ucb1amaf.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(stone.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(tree.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(dynkomi.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(slave.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(search.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(walk.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(prior.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(1lib.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(gtp.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(2lib.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(nlib.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(selfatari.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(ladder.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(nakade.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(distributed.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(pattern3.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(patternprob.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(patternsp.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(generic.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(protocol.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(merge.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: warning: object file (pachi_py/build/lib/libpachi.a(network.c.o)) was built for newer OSX version (10.12) than being linked (10.6)
    ld: targeted OS version does not support use of thread local variables in _fast_srandom for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'g++' failed with exit status 1

The line

    ld: targeted OS version does not support use of thread local variables in _fast_srandom for architecture x86_64

Cought my attention

@artcg
Copy link

artcg commented Jan 4, 2017

Try upgrading your OS X

@tlbtlbtlb
Copy link
Contributor

The solution is to run:

$ export CMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
$ export CMAKE_OSX_DEPLOYMENT_TARGET=10.12

before building. Or 10.11 if that's your OS.

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

3 participants