torch / tds

Torch C data structures
Other
80 stars 25 forks source link

can't install on OS X #21

Closed willfrey closed 8 years ago

willfrey commented 8 years ago

$ luarocks install tds

Installing https://raw.githubusercontent.com/torch/rocks/master/tds-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/tds-scm-1.rockspec... switching to 'build' mode
Cloning into 'tds'...
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 31 (delta 5), reused 10 (delta 1), pack-reused 0
Receiving objects: 100% (31/31), 22.52 KiB | 0 bytes/s, done.
Resolving deltas: 100% (5/5), done.
Checking connectivity... done.
-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Torch7 in /Users/wfrey/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_tds-scm-1-4250/tds
Scanning dependencies of target tds
[ 16%] Building C object CMakeFiles/tds.dir/tds_utils.c.o
[ 33%] Building C object CMakeFiles/tds.dir/tds_elem.c.o
[ 50%] Building C object CMakeFiles/tds.dir/tds_hash.c.o
[ 66%] Building C object CMakeFiles/tds.dir/tds_vec.c.o
[ 83%] Building C object CMakeFiles/tds.dir/tds_atomic_counter.c.o
/tmp/luarocks_tds-scm-1-4250/tds/tds_atomic_counter.c:39:3: warning: implicit declaration of function
      'THAtomicSetLong' is invalid in C99 [-Wimplicit-function-declaration]
  THAtomicSetLong(&atomic->count, value);
  ^
1 warning generated.
[100%] Linking C shared module libtds.so
Undefined symbols for architecture x86_64:
  "_THAtomicSetLong", referenced from:
      _tds_atomic_set in tds_atomic_counter.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libtds.so] Error 1
make[1]: *** [CMakeFiles/tds.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.

I assume it's something weird about OS X and whatever compilers it's using compared to Linux. Any help would be appreciated.

soumith commented 8 years ago

update your torch first: luarocks install torch

willfrey commented 8 years ago

That fixed it. Thanks!

On Thu, May 26, 2016 at 3:54 PM, Soumith Chintala notifications@github.com wrote:

update your torch first: luarocks install torch

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/torch/tds/issues/21#issuecomment-221976503

Will Frey Software Engineer |* Digital Reasoning* Cell: 703.915.8592 <615.838.0457> 901 N Stuart St., Suite 902 Arlington, VA 22203 www.digitalreasoning.com

tylerlindell commented 7 years ago

I am having the same issues on OS X 10.11.6 before and after running luarocks install torch

I have run rm -rf ~/torch luarocks install torch luarocks install tds

and still no change. Here is the error when trying to install tds

$ luarocks install tds
Installing https://raw.githubusercontent.com/torch/rocks/master/tds-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/tds-scm-1.rockspec... switching to 'build' mode
Cloning into 'tds'...
remote: Counting objects: 32, done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 32 (delta 5), reused 10 (delta 1), pack-reused 0
Unpacking objects: 100% (32/32), done.
Checking connectivity... done.
-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Torch7 in /Users/tylerlindell/torch-cl/install
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_tds-scm-1-415/tds/build.luarocks
Scanning dependencies of target tds
[ 16%] Building C object CMakeFiles/tds.dir/tds_utils.c.o
[ 33%] Building C object CMakeFiles/tds.dir/tds_elem.c.o
[ 50%] Building C object CMakeFiles/tds.dir/tds_hash.c.o
[ 66%] Building C object CMakeFiles/tds.dir/tds_vec.c.o
[ 83%] Building C object CMakeFiles/tds.dir/tds_atomic_counter.c.o
/tmp/luarocks_tds-scm-1-415/tds/tds_atomic_counter.c:39:3: warning: implicit
      declaration of function 'THAtomicSetLong' is invalid in C99
      [-Wimplicit-function-declaration]
  THAtomicSetLong(&atomic->count, value);
  ^
1 warning generated.
[100%] Linking C shared module libtds.so
Undefined symbols for architecture x86_64:
  "_THAtomicSetLong", referenced from:
      _tds_atomic_set in tds_atomic_counter.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libtds.so] Error 1
make[1]: *** [CMakeFiles/tds.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.

I noticed some tests failing on the torch install here is the output of that below:

$ luarocks install torch
Installing https://raw.githubusercontent.com/hughperkins/rocks-cl/master/torch-scm-1.rockspec...
Using https://raw.githubusercontent.com/hughperkins/rocks-cl/master/torch-scm-1.rockspec... switching to 'build' mode
Cloning into 'torch7'...
remote: Counting objects: 150, done.
remote: Compressing objects: 100% (146/146), done.
remote: Total 150 (delta 3), reused 69 (delta 2), pack-reused 0
Receiving objects: 100% (150/150), 290.55 KiB | 365.00 KiB/s, done.
Resolving deltas: 100% (3/3), done.
Checking connectivity... done.
Warning: unmatched variable LUALIB
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUA=/Users/tylerlindell/torch-cl/install/bin/luajit -DLUALIB= -DLUA_BINDIR="/Users/tylerlindell/torch-cl/install/bin" -DLUA_INCDIR="/Users/tylerlindell/torch-cl/install/include" -DLUA_LIBDIR="/Users/tylerlindell/torch-cl/install/lib" -DLUADIR="/Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua" -DLIBDIR="/Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1" && make

-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Try OpenMP C flag = [-fopenmp=libomp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp=libomp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Could NOT find OpenMP (missing:  OpenMP_C_FLAGS OpenMP_CXX_FLAGS) 
-- Try OpenMP C flag = [-fopenmp=libomp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp=libomp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Could NOT find OpenMP (missing:  OpenMP_C_FLAGS OpenMP_CXX_FLAGS) 
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this on this machine.
-- No OMAP4 processor on this on this machine.
-- Looking for mmap
-- Looking for mmap - found
-- Looking for shm_open
-- Looking for shm_open - found
-- Looking for shm_unlink
-- Looking for shm_unlink - found
-- Looking for malloc_usable_size
-- Looking for malloc_usable_size - not found
-- Performing Test C_HAS_SSE1_1
-- Performing Test C_HAS_SSE1_1 - Success
-- Performing Test C_HAS_SSE2_1
-- Performing Test C_HAS_SSE2_1 - Success
-- Performing Test C_HAS_SSE3_1
-- Performing Test C_HAS_SSE3_1 - Success
-- Performing Test C_HAS_SSE4_1_1
-- Performing Test C_HAS_SSE4_1_1 - Failed
-- Performing Test C_HAS_SSE4_1_2
-- Performing Test C_HAS_SSE4_1_2 - Success
-- Performing Test C_HAS_SSE4_2_1
-- Performing Test C_HAS_SSE4_2_1 - Failed
-- Performing Test C_HAS_SSE4_2_2
-- Performing Test C_HAS_SSE4_2_2 - Success
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Failed
-- Performing Test C_HAS_AVX_2
-- Performing Test C_HAS_AVX_2 - Success
-- Performing Test CXX_HAS_SSE1_1
-- Performing Test CXX_HAS_SSE1_1 - Success
-- Performing Test CXX_HAS_SSE2_1
-- Performing Test CXX_HAS_SSE2_1 - Success
-- Performing Test CXX_HAS_SSE3_1
-- Performing Test CXX_HAS_SSE3_1 - Success
-- Performing Test CXX_HAS_SSE4_1_1
-- Performing Test CXX_HAS_SSE4_1_1 - Failed
-- Performing Test CXX_HAS_SSE4_1_2
-- Performing Test CXX_HAS_SSE4_1_2 - Success
-- Performing Test CXX_HAS_SSE4_2_1
-- Performing Test CXX_HAS_SSE4_2_1 - Failed
-- Performing Test CXX_HAS_SSE4_2_2
-- Performing Test CXX_HAS_SSE4_2_2 - Success
-- Performing Test HAS_C11_ATOMICS
-- Performing Test HAS_C11_ATOMICS - Failed
-- Performing Test HAS_MSC_ATOMICS
-- Performing Test HAS_MSC_ATOMICS - Failed
-- Performing Test HAS_GCC_ATOMICS
-- Performing Test HAS_GCC_ATOMICS - Success
-- Atomics: using GCC intrinsics
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - iomp5 - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - guide - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - guide - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [Accelerate]
--   Library Accelerate: /System/Library/Frameworks/Accelerate.framework
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Performing Test BLAS_F2C_DOUBLE_WORKS
-- Performing Test BLAS_F2C_DOUBLE_WORKS - Success
-- Performing Test BLAS_F2C_FLOAT_WORKS
-- Performing Test BLAS_F2C_FLOAT_WORKS - Failed
-- This BLAS uses the F2C return conventions
-- Found a library with BLAS API (accelerate).
-- Looking for cheev_
-- Looking for cheev_ - found
-- Found a library with LAPACK API. (accelerate)
-- BLAS FOUND IS ACCELERATE: Fix for sdot
-- Performing Test C_HAS_inline
-- Performing Test C_HAS_inline - Success
-- C inline is supported (inline)
-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_torch-scm-1-9382/torch7/build
Scanning dependencies of target luaT
[  2%] Building C object lib/luaT/CMakeFiles/luaT.dir/luaT.c.o
[  5%] Linking C shared library libluaT.dylib
[  5%] Built target luaT
Scanning dependencies of target TH
[  8%] Building C object lib/TH/CMakeFiles/TH.dir/THGeneral.c.o
[ 11%] Building C object lib/TH/CMakeFiles/TH.dir/THAllocator.c.o
[ 14%] Building C object lib/TH/CMakeFiles/TH.dir/THStorage.c.o
[ 17%] Building C object lib/TH/CMakeFiles/TH.dir/THTensor.c.o
[ 20%] Building C object lib/TH/CMakeFiles/TH.dir/THBlas.c.o
[ 23%] Building C object lib/TH/CMakeFiles/TH.dir/THLapack.c.o
[ 26%] Building C object lib/TH/CMakeFiles/TH.dir/THLogAdd.c.o
[ 29%] Building C object lib/TH/CMakeFiles/TH.dir/THRandom.c.o
[ 32%] Building C object lib/TH/CMakeFiles/TH.dir/THFile.c.o
[ 35%] Building C object lib/TH/CMakeFiles/TH.dir/THDiskFile.c.o
[ 38%] Building C object lib/TH/CMakeFiles/TH.dir/THMemoryFile.c.o
[ 41%] Building C object lib/TH/CMakeFiles/TH.dir/THAtomic.c.o
[ 44%] Building C object lib/TH/CMakeFiles/TH.dir/generic/simd/convolve.c.o
[ 47%] Building C object lib/TH/CMakeFiles/TH.dir/generic/simd/convolve5x5_sse.c.o
[ 50%] Building C object lib/TH/CMakeFiles/TH.dir/generic/simd/convolve5x5_avx.c.o
[ 52%] Linking C shared library libTH.dylib
[ 52%] Built target TH
[ 55%] Generating random.c
[ 58%] Generating TensorMath.c
Scanning dependencies of target torch
[ 61%] Building C object CMakeFiles/torch.dir/DiskFile.c.o
[ 64%] Building C object CMakeFiles/torch.dir/File.c.o
[ 67%] Building C object CMakeFiles/torch.dir/MemoryFile.c.o
[ 70%] Building C object CMakeFiles/torch.dir/PipeFile.c.o
[ 73%] Building C object CMakeFiles/torch.dir/Storage.c.o
[ 76%] Building C object CMakeFiles/torch.dir/Tensor.c.o
[ 79%] Building C object CMakeFiles/torch.dir/Timer.c.o
[ 82%] Building C object CMakeFiles/torch.dir/utils.c.o
[ 85%] Building C object CMakeFiles/torch.dir/init.c.o
[ 88%] Building C object CMakeFiles/torch.dir/TensorOperator.c.o
[ 91%] Building C object CMakeFiles/torch.dir/TensorMath.c.o
[ 94%] Building C object CMakeFiles/torch.dir/random.c.o
[ 97%] Building C object CMakeFiles/torch.dir/Generator.c.o
[100%] Linking C shared module libtorch.so
[100%] Built target torch
cd build && make install
[  5%] Built target luaT
[ 52%] Built target TH
[100%] Built target torch
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/tylerlindell/torch-cl/install/share/cmake/torch/TorchExports.cmake
-- Installing: /Users/tylerlindell/torch-cl/install/share/cmake/torch/TorchExports-release.cmake
-- Installing: /Users/tylerlindell/torch-cl/install/share/cmake/torch/TorchConfig.cmake
-- Installing: /Users/tylerlindell/torch-cl/install/share/cmake/torch/TorchWrap.cmake
-- Installing: /Users/tylerlindell/torch-cl/install/share/cmake/torch/TorchPathsInit.cmake
-- Installing: /Users/tylerlindell/torch-cl/install/share/cmake/torch/TorchPackage.cmake
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lib/libtorch.so
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/init.lua
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/File.lua
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/Tensor.lua
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/CmdLine.lua
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/FFI.lua
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/Tester.lua
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/TestSuite.lua
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/test.lua
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/README.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/cmdline.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/diskfile.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/file.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/gather.png
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/index.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/maths.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/memoryfile.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/pipefile.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/random.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/serialization.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/storage.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/tensor.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/tester.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/timer.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/utility.md
-- Installing: /Users/tylerlindell/torch-cl/install/lib/libTH.dylib
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/TH.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THAllocator.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THMath.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THBlas.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THDiskFile.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THFile.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THFilePrivate.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THGeneral.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THGenerateAllTypes.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THGenerateFloatTypes.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THGenerateIntTypes.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THLapack.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THLogAdd.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THMemoryFile.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THRandom.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THStorage.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THTensor.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THTensorApply.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THTensorDimApply.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THTensorMacros.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THVector.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/THAtomic.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THBlas.c
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THBlas.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THLapack.c
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THLapack.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THStorage.c
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THStorage.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THStorageCopy.c
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THStorageCopy.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensor.c
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensor.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensorConv.c
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensorConv.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensorCopy.c
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensorCopy.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensorLapack.c
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensorLapack.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensorMath.c
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensorMath.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensorRandom.c
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THTensorRandom.h
-- Installing: /Users/tylerlindell/torch-cl/install/include/TH/generic/THVector.c
-- Installing: /Users/tylerlindell/torch-cl/install/share/cmake/torch/THConfig.cmake
-- Installing: /Users/tylerlindell/torch-cl/install/lib/libluaT.dylib
-- Installing: /Users/tylerlindell/torch-cl/install/include/luaT.h
-- Installing: /Users/tylerlindell/torch-cl/install/share/cmake/torch/luaTConfig.cmake
Updating manifest for /Users/tylerlindell/torch-cl/install/lib/luarocks/rocks
torch scm-1 is now built and installed in /Users/tylerlindell/torch-cl/install/ (license: BSD)

I have now removed torch again and am now trying to install using the self-contained install on the repo here:

https://github.com/torch/distro

^ ^ Installing the torch-distro build failed a few places it seems. Here is a gist of the output from the install https://gist.github.com/tylerlindell/fe8719d6a708d28e35397349dd3c4aa1

tylerlindell commented 7 years ago

I am still getting this error, can someone help me?

$ luarocks install tds
Installing https://raw.githubusercontent.com/torch/rocks/master/tds-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/tds-scm-1.rockspec... switching to 'build' mode
Cloning into 'tds'...
remote: Counting objects: 32, done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 32 (delta 5), reused 10 (delta 1), pack-reused 0
Unpacking objects: 100% (32/32), done.
-- The C compiler identification is AppleClang 8.0.0.8000042
-- The CXX compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Torch7 in /Users/tylerlindell/torch-cl/install
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_tds-scm-1-6175/tds/build.luarocks
Scanning dependencies of target tds
[ 16%] Building C object CMakeFiles/tds.dir/tds_utils.c.o
[ 33%] Building C object CMakeFiles/tds.dir/tds_elem.c.o
[ 50%] Building C object CMakeFiles/tds.dir/tds_hash.c.o
[ 66%] Building C object CMakeFiles/tds.dir/tds_vec.c.o
[ 83%] Building C object CMakeFiles/tds.dir/tds_atomic_counter.c.o
/tmp/luarocks_tds-scm-1-6175/tds/tds_atomic_counter.c:39:3: warning: implicit
      declaration of function 'THAtomicSetLong' is invalid in C99
      [-Wimplicit-function-declaration]
  THAtomicSetLong(&atomic->count, value);
  ^
1 warning generated.
[100%] Linking C shared module libtds.so
Undefined symbols for architecture x86_64:
  "_THAtomicSetLong", referenced from:
      _tds_atomic_set in tds_atomic_counter.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libtds.so] Error 1
make[1]: *** [CMakeFiles/tds.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.
janelleshane commented 6 years ago

I'm having the same problem as @tylerlindell on OSx 10.12.6. I updated torch, but get the same error message as in the screenshot above. Can anyone help?