Giter VIP home page Giter VIP logo

Comments (37)

soumith avatar soumith commented on September 27, 2024 1

@kirk86 i haven't. icc doesn't understand -image_base, a flag that is needed for LuaJIT on OSX:
http://luajit.org/install.html
https://github.com/torch/luajit-rocks/blob/master/luajit-2.1/CMakeLists.txt#L142

You can install Lua 5.2 instead, via:
TORCH_LUA_VERSION=LUA52 ./install.sh

from distro.

linkerlin avatar linkerlin commented on September 27, 2024

gcc_s.10.5 ??

from distro.

soumith avatar soumith commented on September 27, 2024

I actually just freshly installed torch from scratch an a new OSX El-Capitan machine. There was no trouble.

from distro.

alexbw avatar alexbw commented on September 27, 2024

I'm seeing the same thing...
I tracked down and deleted all old Torch installations and still got this error. Tried with GCC 4.8 and clang.

from distro.

soumith avatar soumith commented on September 27, 2024

Did you upgrade your XCode (you should)? Also, do you have any custom GCC installed?

from distro.

alexbw avatar alexbw commented on September 27, 2024

I'll update XCode and retry. I'm using homebrew gcc.

from distro.

soumith avatar soumith commented on September 27, 2024

the homebrew gcc is probably the issue. I'd suggest using the default clang with updated XCode. Just tried it on a fresh el capitan machine (which had no torch installed ever), no issues.

from distro.

alexbw avatar alexbw commented on September 27, 2024

It indeed was the homebrew gcc.

from distro.

harrism avatar harrism commented on September 27, 2024

I updated OS X to El Capitan and XCode to 7.2 and I can't get itorch notebook to work. I believe the problem is that starting in El Capitan (System Integrity Protection, aka "rootless" ), users can't modify the LD_LIBRARY_PATH or DYLD_LIBRARY_PATH, so itorch is unable to find required libraries. The error I get is:

[I 13:49:54.208 NotebookApp] Creating new notebook in
[I 13:49:54.661 NotebookApp] Kernel started: 8c059246-d5a3-42b2-8af2-963c3a0170f2
dyld: Library not loaded: @rpath/./libQtGui.4.dylib
  Referenced from: /Users/mharris/torch/install/bin/qlua
  Reason: image not found
/Users/mharris/torch/install/bin/itorch_launcher: line 25: 48562 Trace/BPT trap: 5       "$LUA" -e "arg={'$1','$IO_STDO','$IO_PORTNUM'};require 'itorch.IOHandler'"

from distro.

soumith avatar soumith commented on September 27, 2024

Oh! That really sucks on OSX's part. I'll have to prep a patch for this. Thanks for the heads-up

from distro.

soumith avatar soumith commented on September 27, 2024

@harrism didn't notice this, because apparently if you upgrade from a previous OSX, this thing is disabled for existing directories

from distro.

harrism avatar harrism commented on September 27, 2024

Hmmm, but I upgraded from a previous OS X... I guess maybe you mean if you upgrade OS X after installing Torch?

from distro.

soumith avatar soumith commented on September 27, 2024

@harrism I just did a fresh install of Torch on my El-Capitan laptop.

ITorch seems to work fine.

Can you give me the output of the following command?

otool -L ~/torch/install/bin/qlua

I'm curious to see what the rpath is for the Qt libs on your machine. On mine, the Qt libs have full rpath, and qlua has no trouble finding them:

soumith-> otool -L ~/torch/install/bin/qlua
/Users/soumith/torch/install/bin/qlua:
    @rpath/libqlua.dylib (compatibility version 0.0.0, current version 0.0.0)
    @rpath/libqtlua.dylib (compatibility version 0.0.0, current version 0.0.0)
    /Users/soumith/torch/install/lib/libluajit.dylib (compatibility version 0.0.0, current version 0.0.0)
    /usr/lib/libedit.3.dylib (compatibility version 2.0.0, current version 3.0.0)
    /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
    /usr/local/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.6)
    /usr/local/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.6)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)

from distro.

harrism avatar harrism commented on September 27, 2024

Mine is similar, but different:

mharris-mlt:torch mharris$ otool -L ~/torch/install/bin/qlua
/Users/mharris/torch/install/bin/qlua:
    @rpath/libqlua.dylib (compatibility version 0.0.0, current version 0.0.0)
    @rpath/libqtlua.dylib (compatibility version 0.0.0, current version 0.0.0)
    /Users/mharris/torch/install/lib/libluajit.dylib (compatibility version 0.0.0, current version 0.0.0)
    /usr/local/opt/readline/lib/libreadline.6.dylib (compatibility version 6.0.0, current version 6.3.0)
    /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
    @rpath/./libQtGui.4.dylib (compatibility version 4.8.0, current version 4.8.7)
    @rpath/./libQtCore.4.dylib (compatibility version 4.8.0, current version 4.8.7)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)

from distro.

soumith avatar soumith commented on September 27, 2024

@harrism if you notice, it's expecting libQtGui*dylib in the same directory as where qlua exists.
That is weird.
I suspect a very old install of torch existed at some point, which got installed to /usr/local/ on that machine? Maybe? You can clean such a version (if it exists) with: https://raw.githubusercontent.com/torch/ezinstall/master/clean-old.sh

Also, I suggest running:

brew link qt

and making sure there's no errors there.
If there's an error, I think El Capitan needs: sudo chown -R $(whoami) /usr/local/lib (brew doctor told me about this).

So suggested steps:

curl -s https://raw.githubusercontent.com/torch/ezinstall/master/clean-old.sh | bash
sudo chown -R $(whoami) /usr/local/lib
brew link qt
rm -rf ~/torch
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; ./install.sh

Let me know if that'll help, and sorry for the trouble so far.

from distro.

harrism avatar harrism commented on September 27, 2024

Hmmm, I have never installed Torch before this. (I tried the other day but
I had not updated XCode yet, but it was after I had installed El Capitan).
I tried your steps. I had to also do

sudo chown -R $(whoami) /usr/local

in order for brew link qt to work. But even so, I get the same results.

Is it strange that your otool output has libedit and mine doesn't, but mine
has readline?

On Tue, Dec 29, 2015 at 4:27 PM Soumith Chintala [email protected]
wrote:

@harrism https://github.com/harrism if you notice, it's expecting
libQtGui*dylib in the same directory as where qlua exists.
That is weird.
I suspect a very old install of torch existed at some point, which got
installed to /usr/local/ on that machine? Maybe? You can clean such a
version (if it exists) with:
https://raw.githubusercontent.com/torch/ezinstall/master/clean-old.sh

Also, I suggest running:

brew link qt

and making sure there's no errors there.
If there's an error, I think El Capitan needs: sudo chown -R $(whoami)
/usr/local/lib (brew doctor told me about this).

So suggested steps:

curl -s https://raw.githubusercontent.com/torch/ezinstall/master/clean-old.sh | bash
brew link qt || sudo chown -R $(whoami) /usr/local/lib
rm -rf ~/torch
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; ./install.sh

Let me know if that'll help, and sorry for the trouble so far.


Reply to this email directly or view it on GitHub
#46 (comment).

from distro.

soumith avatar soumith commented on September 27, 2024

That's weird. I'll find a fresh El Capitan system tomorrow and try it out.
For now, you can start itorch like this:
rm -rf ~/torch/install/bin/qlua
itorch notebook

from distro.

soumith avatar soumith commented on September 27, 2024

Also, the libedit / readline stuff is fine I think. I must've forgot to link my readline

from distro.

harrism avatar harrism commented on September 27, 2024

Yep, that works. If it works without qlua, then why does it fail when it's
there? Thanks for your help, Soumith!

On Tue, Dec 29, 2015 at 6:10 PM Soumith Chintala [email protected]
wrote:

Also, the libedit / readline stuff is fine I think. I must've forgot to
link my readline


Reply to this email directly or view it on GitHub
#46 (comment).

from distro.

soumith avatar soumith commented on September 27, 2024

qlua's linking on your machine is failing at something, I am not sure what, yet.
If you have a full output log of when you run install.sh, that would be helpful. I'll look into it tomorrow anyways.

from distro.

harrism avatar harrism commented on September 27, 2024

Is it possible to redo the install without having to delete everything and
start over? My network connection is not the fastest...

On Tue, Dec 29, 2015 at 6:18 PM Soumith Chintala [email protected]
wrote:

qlua's linking on your machine is failing at something, I am not sure
what, yet.
If you have a full output log of when you run install.sh, that would be
helpful. I'll look into it tomorrow anyways.


Reply to this email directly or view it on GitHub
#46 (comment).

from distro.

soumith avatar soumith commented on September 27, 2024

yea,
cd ~/torch
./clean.sh
./install.sh

from distro.

harrism avatar harrism commented on September 27, 2024

Attaching an install log.

On Tue, Dec 29, 2015 at 6:30 PM Soumith Chintala [email protected]
wrote:

yea,
cd ~/torch
./clean.sh
./install.sh


Reply to this email directly or view it on GitHub
#46 (comment).

Prefix set to /Users/mharris/torch/install
Installing Lua version: LUAJIT21
Installing common Lua packages
No existing manifest. Attempting to rebuild...
Installed luafilesystem
Installed penlight
In file included from lua_cjson.c:47:
./fpconv.h:15:20: warning: inline function 'fpconv_init' is not defined [-Wundefined-inline]
extern inline void fpconv_init();
^
lua_cjson.c:1359:5: note: used here
fpconv_init();
^
1 warning generated.
Installed lua-cjson
Installing core Torch packages
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c src/autolink.c -o src/autolink.o -Isrc/ -Ihtml/
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c src/buffer.c -o src/buffer.o -Isrc/ -Ihtml/
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c src/markdown.c -o src/markdown.o -Isrc/ -Ihtml/
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c src/stack.c -o src/stack.o -Isrc/ -Ihtml/
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c html/houdini_href_e.c -o html/houdini_href_e.o -Isrc/ -Ihtml/
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c html/houdini_html_e.c -o html/houdini_html_e.o -Isrc/ -Ihtml/
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c html/html.c -o html/html.o -Isrc/ -Ihtml/
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c html/html_smartypants.c -o html/html_smartypants.o -Isrc/ -Ihtml/
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -bundle -undefined dynamic_lookup -all_load -o libsundown.so -L/Users/mharris/torch/install/lib src/autolink.o src/buffer.o src/markdown.o src/stack.o html/houdini_href_e.o html/houdini_html_e.o html/html.o html/html_smartypants.o
Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
sundown scm-1 is now built and installed in /Users/mharris/torch/install/ (license: BSD)

Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
cwrap scm-1 is now built and installed in /Users/mharris/torch/install/ (license: BSD)

-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- 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/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for include file time.h
-- Looking for include file time.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/ndir.h
-- Looking for include file sys/ndir.h - not found
-- Looking for include file sys/utsname.h
-- Looking for include file sys/utsname.h - found
-- Looking for include file sys/dir.h
-- Looking for include file sys/dir.h - found
-- Looking for include file ndir.h
-- Looking for include file ndir.h - not found
-- Looking for getcwd
-- Looking for getcwd - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mharris/torch/pkg/paths/build
Scanning dependencies of target paths
[ 50%] Building C object CMakeFiles/paths.dir/paths.c.o
[100%] Linking C shared module libpaths.so
[100%] Built target paths
[100%] Built target paths
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/paths/scm-1/lua/paths/init.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/paths/scm-1/lib/libpaths.so
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUALIB= -DLUA_INCDIR="/Users/mharris/torch/install/include" -DLUA_LIBDIR="/Users/mharris/torch/install/lib" -DLUADIR="/Users/mharris/torch/install/lib/luarocks/rocks/paths/scm-1/lua" -DLIBDIR="/Users/mharris/torch/install/lib/luarocks/rocks/paths/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/Users/mharris/torch/install/lib/luarocks/rocks/paths/scm-1" && make

cd build && make install
Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
paths scm-1 is now built and installed in /Users/mharris/torch/install/ (license: BSD)

-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- 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/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- 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 = [ ]
-- 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 = [ ]
-- 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 = [ ]
-- 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 = [ ]
-- 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
-- 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: /Users/mharris/torch/pkg/torch/build
[ 2%] Generating random.c
[ 2%] Generating TensorMath.c
Scanning dependencies of target luaT
Scanning dependencies of target luaT_static
[ 5%] Building C object lib/luaT/CMakeFiles/luaT.dir/luaT.c.o
[ 5%] Building C object lib/luaT/CMakeFiles/luaT_static.dir/luaT.c.o
Scanning dependencies of target TH
Scanning dependencies of target TH_static
[ 7%] Building C object lib/TH/CMakeFiles/TH.dir/THGeneral.c.o
[ 11%] Building C object lib/TH/CMakeFiles/TH_static.dir/THAllocator.c.o
[ 11%] Building C object lib/TH/CMakeFiles/TH_static.dir/THGeneral.c.o
[ 11%] Building C object lib/TH/CMakeFiles/TH.dir/THAllocator.c.o
[ 13%] Building C object lib/TH/CMakeFiles/TH.dir/THStorage.c.o
[ 14%] Building C object lib/TH/CMakeFiles/TH_static.dir/THStorage.c.o
[ 16%] Building C object lib/TH/CMakeFiles/TH.dir/THTensor.c.o
[ 17%] Building C object lib/TH/CMakeFiles/TH.dir/THBlas.c.o
[ 19%] Building C object lib/TH/CMakeFiles/TH_static.dir/THTensor.c.o
Scanning dependencies of target torch_static
[ 20%] Building C object CMakeFiles/torch_static.dir/DiskFile.c.o
[ 23%] Linking C shared library libluaT.dylib
[ 23%] Linking C static library libluaT_static.a
[ 25%] Building C object CMakeFiles/torch_static.dir/File.c.o
[ 25%] Built target luaT
[ 25%] Built target luaT_static
[ 26%] Building C object lib/TH/CMakeFiles/TH.dir/THLapack.c.o
[ 27%] Building C object CMakeFiles/torch_static.dir/MemoryFile.c.o
[ 29%] Building C object CMakeFiles/torch_static.dir/PipeFile.c.o
[ 30%] Building C object lib/TH/CMakeFiles/TH_static.dir/THBlas.c.o
[ 32%] Building C object lib/TH/CMakeFiles/TH.dir/THLogAdd.c.o
[ 33%] Building C object CMakeFiles/torch_static.dir/Storage.c.o
[ 35%] Building C object lib/TH/CMakeFiles/TH_static.dir/THLapack.c.o
[ 36%] Building C object CMakeFiles/torch_static.dir/Tensor.c.o
[ 38%] Building C object CMakeFiles/torch_static.dir/Timer.c.o
[ 39%] Building C object lib/TH/CMakeFiles/TH.dir/THRandom.c.o
[ 41%] Building C object lib/TH/CMakeFiles/TH_static.dir/THLogAdd.c.o
[ 42%] Building C object CMakeFiles/torch_static.dir/utils.c.o
[ 44%] Building C object lib/TH/CMakeFiles/TH.dir/THFile.c.o
[ 45%] Building C object lib/TH/CMakeFiles/TH_static.dir/THRandom.c.o
[ 47%] Building C object lib/TH/CMakeFiles/TH.dir/THDiskFile.c.o
[ 48%] Building C object CMakeFiles/torch_static.dir/init.c.o
[ 50%] Building C object lib/TH/CMakeFiles/TH_static.dir/THFile.c.o
[ 51%] Building C object lib/TH/CMakeFiles/TH.dir/THMemoryFile.c.o
[ 52%] Building C object lib/TH/CMakeFiles/TH_static.dir/THDiskFile.c.o
[ 54%] Building C object CMakeFiles/torch_static.dir/TensorOperator.c.o
[ 55%] Building C object CMakeFiles/torch_static.dir/TensorMath.c.o
[ 57%] Building C object lib/TH/CMakeFiles/TH.dir/THAtomic.c.o
[ 58%] Building C object lib/TH/CMakeFiles/TH_static.dir/THMemoryFile.c.o
[ 60%] Building C object lib/TH/CMakeFiles/TH_static.dir/THAtomic.c.o
[ 61%] Building C object CMakeFiles/torch_static.dir/random.c.o
[ 63%] Building C object CMakeFiles/torch_static.dir/Generator.c.o
[ 64%] Building C object lib/TH/CMakeFiles/TH.dir/generic/simd/convolve.c.o
[ 66%] Building C object lib/TH/CMakeFiles/TH_static.dir/generic/simd/convolve.c.o
[ 67%] Building C object lib/TH/CMakeFiles/TH_static.dir/generic/simd/convolve5x5_sse.c.o
[ 69%] Building C object lib/TH/CMakeFiles/TH.dir/generic/simd/convolve5x5_sse.c.o
[ 70%] Building C object lib/TH/CMakeFiles/TH.dir/generic/simd/convolve5x5_avx.c.o
[ 72%] Building C object lib/TH/CMakeFiles/TH_static.dir/generic/simd/convolve5x5_avx.c.o
[ 73%] Linking C static library libtorch.a
[ 73%] Built target torch_static
[ 75%] Linking C shared library libTH.dylib
[ 76%] Linking C static library libTH_static.a
[ 76%] Built target TH
[ 76%] Built target TH_static
Scanning dependencies of target torch
[ 80%] Building C object CMakeFiles/torch.dir/PipeFile.c.o
[ 82%] Building C object CMakeFiles/torch.dir/DiskFile.c.o
[ 83%] Building C object CMakeFiles/torch.dir/MemoryFile.c.o
[ 83%] Building C object CMakeFiles/torch.dir/File.c.o
[ 83%] Building C object CMakeFiles/torch.dir/Tensor.c.o
[ 85%] Building C object CMakeFiles/torch.dir/Storage.c.o
[ 86%] Building C object CMakeFiles/torch.dir/Timer.c.o
[ 88%] Building C object CMakeFiles/torch.dir/utils.c.o
[ 89%] Building C object CMakeFiles/torch.dir/init.c.o
[ 91%] Building C object CMakeFiles/torch.dir/TensorOperator.c.o
[ 92%] Building C object CMakeFiles/torch.dir/TensorMath.c.o
[ 94%] Building C object CMakeFiles/torch.dir/random.c.o
[ 95%] Building C object CMakeFiles/torch.dir/Generator.c.o
[ 97%] Linking C shared module libtorch.so
[100%] Built target torch
[ 2%] Built target luaT
[ 26%] Built target TH
[ 50%] Built target torch
[ 73%] Built target torch_static
[ 97%] Built target TH_static
[100%] Built target luaT_static
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/mharris/torch/install/share/cmake/torch/TorchExports.cmake
-- Installing: /Users/mharris/torch/install/share/cmake/torch/TorchExports-release.cmake
-- Installing: /Users/mharris/torch/install/share/cmake/torch/TorchConfig.cmake
-- Installing: /Users/mharris/torch/install/share/cmake/torch/TorchWrap.cmake
-- Installing: /Users/mharris/torch/install/share/cmake/torch/TorchPathsInit.cmake
-- Installing: /Users/mharris/torch/install/share/cmake/torch/TorchPackage.cmake
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lib/libtorch.so
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/init.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/File.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/Tensor.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/CmdLine.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/FFI.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/Tester.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/test.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/README.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/cmdline.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/diskfile.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/file.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/gather.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/index.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/maths.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/memoryfile.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/pipefile.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/random.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/serialization.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/storage.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/tensor.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/tester.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/timer.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/utility.md
-- Installing: /Users/mharris/torch/install/lib/libTH.dylib
-- Installing: /Users/mharris/torch/install/include/TH/TH.h
-- Installing: /Users/mharris/torch/install/include/TH/THAllocator.h
-- Installing: /Users/mharris/torch/install/include/TH/THBlas.h
-- Installing: /Users/mharris/torch/install/include/TH/THDiskFile.h
-- Installing: /Users/mharris/torch/install/include/TH/THFile.h
-- Installing: /Users/mharris/torch/install/include/TH/THFilePrivate.h
-- Installing: /Users/mharris/torch/install/include/TH/THGeneral.h
-- Installing: /Users/mharris/torch/install/include/TH/THGenerateAllTypes.h
-- Installing: /Users/mharris/torch/install/include/TH/THGenerateFloatTypes.h
-- Installing: /Users/mharris/torch/install/include/TH/THGenerateIntTypes.h
-- Installing: /Users/mharris/torch/install/include/TH/THLapack.h
-- Installing: /Users/mharris/torch/install/include/TH/THLogAdd.h
-- Installing: /Users/mharris/torch/install/include/TH/THMemoryFile.h
-- Installing: /Users/mharris/torch/install/include/TH/THRandom.h
-- Installing: /Users/mharris/torch/install/include/TH/THStorage.h
-- Installing: /Users/mharris/torch/install/include/TH/THTensor.h
-- Installing: /Users/mharris/torch/install/include/TH/THTensorApply.h
-- Installing: /Users/mharris/torch/install/include/TH/THTensorDimApply.h
-- Installing: /Users/mharris/torch/install/include/TH/THTensorMacros.h
-- Installing: /Users/mharris/torch/install/include/TH/THVector.h
-- Installing: /Users/mharris/torch/install/include/TH/THAtomic.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THBlas.c
-- Installing: /Users/mharris/torch/install/include/TH/generic/THBlas.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THLapack.c
-- Installing: /Users/mharris/torch/install/include/TH/generic/THLapack.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THStorage.c
-- Installing: /Users/mharris/torch/install/include/TH/generic/THStorage.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THStorageCopy.c
-- Installing: /Users/mharris/torch/install/include/TH/generic/THStorageCopy.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensor.c
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensor.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensorConv.c
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensorConv.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensorCopy.c
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensorCopy.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensorLapack.c
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensorLapack.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensorMath.c
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensorMath.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensorRandom.c
-- Installing: /Users/mharris/torch/install/include/TH/generic/THTensorRandom.h
-- Installing: /Users/mharris/torch/install/include/TH/generic/THVector.c
-- Installing: /Users/mharris/torch/install/share/cmake/torch/THConfig.cmake
-- Installing: /Users/mharris/torch/install/lib/libluaT.dylib
-- Installing: /Users/mharris/torch/install/include/luaT.h
-- Installing: /Users/mharris/torch/install/share/cmake/torch/luaTConfig.cmake
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUA=/Users/mharris/torch/install/bin/luajit -DLUALIB= -DLUA_BINDIR="/Users/mharris/torch/install/bin" -DLUA_INCDIR="/Users/mharris/torch/install/include" -DLUA_LIBDIR="/Users/mharris/torch/install/lib" -DLUADIR="/Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lua" -DLIBDIR="/Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/Users/mharris/torch/install/lib/luarocks/rocks/torch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN)

cd build && make install
Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
torch scm-1 is now built and installed in /Users/mharris/torch/install/ (license: BSD)

Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
dok scm-1 is now built and installed in /Users/mharris/torch/install/ (license: BSD)

env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c utils.c -o utils.o
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -bundle -undefined dynamic_lookup -all_load -o treplutils.so -L/Users/mharris/torch/install/lib utils.o
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c readline.c -o readline.o
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -bundle -undefined dynamic_lookup -all_load -o readline.so -L/Users/mharris/torch/install/lib readline.o -lreadline
Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
trepl scm-1 is now built and installed in /Users/mharris/torch/install/ (license: BSD)

-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- 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/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- 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/mharris/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mharris/torch/pkg/sys/build
Scanning dependencies of target sys
[ 25%] Building C object CMakeFiles/sys.dir/sys.c.o
[ 50%] Linking C shared module libsys.so
[ 50%] Built target sys
Scanning dependencies of target sys_static
[ 75%] Building C object CMakeFiles/sys_static.dir/sys.c.o
[100%] Linking C static library libsys.a
[100%] Built target sys_static
[ 50%] Built target sys
[100%] Built target sys_static
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/sys/1.1-0/lib/libsys.so
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/sys/1.1-0/lua/sys/init.lua
cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/mharris/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/mharris/torch/install/lib/luarocks/rocks/sys/1.1-0" && make
cd build && make install
Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
sys 1.1-0 is now built and installed in /Users/mharris/torch/install/ (license: BSD)

Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
xlua 1.0-0 is now built and installed in /Users/mharris/torch/install/ (license: BSD)

-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- 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/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- 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/mharris/torch/install
-- 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 = [ ]
-- 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)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mharris/torch/extra/nn/build
Scanning dependencies of target nn
[ 25%] Building C object CMakeFiles/nn.dir/init.c.o
[ 50%] Linking C shared module libnn.so
[ 50%] Built target nn
Scanning dependencies of target nn_static
[ 75%] Building C object CMakeFiles/nn_static.dir/init.c.o
[100%] Linking C static library libnn.a
[100%] Built target nn_static
[ 50%] Built target nn
[100%] Built target nn_static
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lib/libnn.so
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Abs.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/AbsCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Add.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/AddConstant.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/BatchNormalization.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/BCECriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CAddTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CDivTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Clamp.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ClassNLLCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CMul.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CMulTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Concat.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ConcatTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Container.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Copy.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Cosine.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CosineDistance.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CosineEmbeddingCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Criterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CriterionTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CrossEntropyCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/CSubTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/DepthConcat.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/DistKLDivCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/DotProduct.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Dropout.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ELU.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ErrorMessages.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Euclidean.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Exp.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/FlattenTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/GradientReversal.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/HardShrink.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/HardTanh.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/hessian.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/HingeEmbeddingCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Identity.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Index.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/init.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Jacobian.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/JoinTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/L1Cost.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/L1HingeEmbeddingCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/L1Penalty.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/LeakyReLU.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Linear.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Log.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/LogSigmoid.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/LogSoftMax.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/LookupTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MarginCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MarginRankingCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Max.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Mean.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Min.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MixtureTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MM.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Module.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MSECriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Mul.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MulConstant.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MultiCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MultiLabelMarginCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/MultiMarginCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Narrow.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/NarrowTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Normalize.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Padding.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/PairwiseDistance.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Parallel.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ParallelCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ParallelTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Power.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/PReLU.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/ReLU.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Replicate.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Reshape.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/RReLU.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Select.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SelectTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Sequential.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Sigmoid.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SmoothL1Criterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SoftMax.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SoftMin.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SoftPlus.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SoftShrink.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SoftSign.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SparseJacobian.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SparseLinear.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialAdaptiveMaxPooling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialAveragePooling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialBatchNormalization.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialContrastiveNormalization.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialConvolution.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialConvolutionMap.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialConvolutionMM.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialDivisiveNormalization.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialDropout.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialFractionalMaxPooling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialFullConvolution.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialFullConvolutionMap.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialLPPooling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialMaxPooling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialMaxUnpooling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialSoftMax.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialSubSampling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialSubtractiveNormalization.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialUpSamplingNearest.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SpatialZeroPadding.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/SplitTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Sqrt.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Square.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/StochasticGradient.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Sum.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Tanh.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/TanhShrink.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/TemporalConvolution.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/TemporalMaxPooling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/TemporalSubSampling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/test.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Threshold.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/Transpose.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/utils.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/View.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/VolumetricAveragePooling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/VolumetricConvolution.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/VolumetricFullConvolution.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/VolumetricMaxPooling.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/WeightedEuclidean.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/WeightedMSECriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/containers.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/convolution.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/criterion.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/abs.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/elu.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/exp.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/hshrink.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/htanh.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/lena.jpg
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/lenap.jpg
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/logsigmoid.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/logsoftmax.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/power.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/prelu.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/relu.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/rrelu.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/sigmmoid.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/sigmoid.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/softmax.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/softmin.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/softplus.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/softsign.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/sqrt.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/square.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/sshrink.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/image/tanh.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/index.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/module.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/overview.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/simple.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/table.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/testing.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/training.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/doc/transfer.md
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1/lua/nn/README.md
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/mharris/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/mharris/torch/install/lib/luarocks/rocks/nn/scm-1" && make

cd build && make install
Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
nn scm-1 is now built and installed in /Users/mharris/torch/install/ (license: BSD)

-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- 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/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- 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/mharris/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mharris/torch/extra/graph/build
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/graph/scm-1/lua/graph/Edge.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/graph/scm-1/lua/graph/graphviz.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/graph/scm-1/lua/graph/init.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/graph/scm-1/lua/graph/Node.lua
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/mharris/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/mharris/torch/install/lib/luarocks/rocks/graph/scm-1";
make

cd build && make install
Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
graph scm-1 is now built and installed in /Users/mharris/torch/install/ (license: UNKNOWN)

-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- 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/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- 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/mharris/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mharris/torch/extra/nngraph/build
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/gmodule.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/graphinspecting.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/init.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/JustElement.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/JustTable.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/ModuleFromCriterion.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/nest.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/nesting.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/node.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/simple_print.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/utils.lua
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/mharris/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/mharris/torch/install/lib/luarocks/rocks/nngraph/scm-1";
make

cd build && make install
Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
nngraph scm-1 is now built and installed in /Users/mharris/torch/install/ (license: UNKNOWN)

-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- 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/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- 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/mharris/torch/install
-- Found JPEG: /Applications/Postgres.app/Contents/Versions/9.4/lib/libjpeg.dylib
-- Found ZLIB: /Users/mharris/miniconda2/lib/libz.dylib (found version "1.2.8")
-- Found PNG: /Users/mharris/miniconda2/lib/libpng.dylib (found version "1.6.17")
-- 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 = [ ]
-- 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)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mharris/torch/pkg/image/build
Scanning dependencies of target image
[ 6%] Building C object CMakeFiles/image.dir/image.c.o
[ 12%] Linking C shared module libimage.so
[ 12%] Built target image
Scanning dependencies of target image_static
[ 18%] Building C object CMakeFiles/image_static.dir/image.c.o
[ 25%] Linking C static library libimage.a
[ 25%] Built target image_static
Scanning dependencies of target jpeg
[ 31%] Building C object CMakeFiles/jpeg.dir/jpeg.c.o
[ 37%] Linking C shared module libjpeg.so
[ 37%] Built target jpeg
Scanning dependencies of target jpeg_static
[ 43%] Building C object CMakeFiles/jpeg_static.dir/jpeg.c.o
[ 50%] Linking C static library libjpeg.a
[ 50%] Built target jpeg_static
Scanning dependencies of target png
[ 56%] Building C object CMakeFiles/png.dir/png.c.o
[ 62%] Linking C shared module libpng.so
[ 62%] Built target png
Scanning dependencies of target png_static
[ 68%] Building C object CMakeFiles/png_static.dir/png.c.o
[ 75%] Linking C static library libpng.a
[ 75%] Built target png_static
Scanning dependencies of target ppm
[ 81%] Building C object CMakeFiles/ppm.dir/ppm.c.o
[ 87%] Linking C shared module libppm.so
[ 87%] Built target ppm
Scanning dependencies of target ppm_static
[ 93%] Building C object CMakeFiles/ppm_static.dir/ppm.c.o
[100%] Linking C static library libppm.a
[100%] Built target ppm_static
[ 12%] Built target image
[ 25%] Built target image_static
[ 37%] Built target jpeg
[ 50%] Built target jpeg_static
[ 62%] Built target png
[ 75%] Built target png_static
[ 87%] Built target ppm
[100%] Built target ppm_static
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lib/libppm.so
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lib/libjpeg.so
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lib/libpng.so
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lib/libimage.so
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/init.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/win.ui
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/test.lua
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/corrupt-ihdr.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/fabio.jpg
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/fabio.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/gray16-1x2.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/gray3x1.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/lena.jpg
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/lena.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/P2.pgm
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/P4.pbm
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/P5.pgm
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/P6.ppm
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/rgb16-2x1.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/assets/rgb2x1.png
-- Installing: /Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0/lua/image/README.md
cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/mharris/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/mharris/torch/install/lib/luarocks/rocks/image/1.1.alpha-0" && make

cd build && make install
Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks
image 1.1.alpha-0 is now built and installed in /Users/mharris/torch/install/ (license: BSD)

-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- 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/clang++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- De

from distro.

harrism avatar harrism commented on September 27, 2024

install_log.txt

Attaching from github. Email attachment seems to get inlined.

from distro.

 avatar commented on September 27, 2024

Hi, @soumith, I just followed your instructions above to install Torch7. It succeeded on my Ubuntu machine but failed on my EI Capitan mac. It shows this error:

Installing Lua version: LUAJIT21
Installing common Lua packages
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest - /Users/Magic/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /Users/Magic/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest

Error: No results matching query were found.
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest - /Users/Magic/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /Users/Magic/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest

Error: No results matching query were found.
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest - /Users/Magic/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /Users/Magic/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest

Error: No results matching query were found.
Installing core Torch packages
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/Magic/torch/install/include -c src/autolink.c -o src/autolink.o -Isrc/ -Ihtml/
In file included from /opt/local/lib/gcc49/gcc/x86_64-apple-darwin14/4.9.2/include/stdint.h:9:0,
from src/buffer.h:23,
from src/autolink.c:17:
/opt/local/lib/gcc49/gcc/x86_64-apple-darwin14/4.9.2/include-fixed/stdint.h:27:32: fatal error: sys/_types/_int8_t.h: No such file or directory
#include <sys/_types/_int8_t.h>
^
compilation terminated.

Error: Build error: Failed compiling object src/autolink.o

I did some search and found that it may be caused by the root permission. So I typed sudo ./install.sh instead of ./install.sh. But new errors appeared as followed:

Installing Lua version: LUAJIT21
Installing common Lua packages
src/lfs.c:37:19: fatal error: errno.h: No such file or directory
#include <errno.h>
^
compilation terminated.

Error: Build error: Failed compiling object src/lfs.o

Missing dependencies for penlight:
luafilesystem

src/lfs.c:37:19: fatal error: errno.h: No such file or directory
#include <errno.h>
^
compilation terminated.

Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luafilesystem-1.6.3-1.src.rock - Build error: Failed compiling object src/lfs.o
lua_cjson.c:39:20: fatal error: assert.h: No such file or directory
#include <assert.h>
^
compilation terminated.

Error: Build error: Failed compiling object lua_cjson.o
Installing core Torch packages
env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/Magic/torch/install/include -c src/autolink.c -o src/autolink.o -Isrc/ -Ihtml/
In file included from /opt/local/lib/gcc49/gcc/x86_64-apple-darwin14/4.9.2/include/stdint.h:9:0,
from src/buffer.h:23,
from src/autolink.c:17:
/opt/local/lib/gcc49/gcc/x86_64-apple-darwin14/4.9.2/include-fixed/stdint.h:27:32: fatal error: sys/_types/_int8_t.h: No such file or directory
#include <sys/_types/_int8_t.h>
^
compilation terminated.

Error: Build error: Failed compiling object src/autolink.o

Would you like to share some suggestions to solve this? Thank you in advance!

from distro.

soumith avatar soumith commented on September 27, 2024

@boyahao it's weird that on your machine there's no basic headers. I think it's because you use a custom gcc49, but you have not set your paths correctly. I suggest that you compile with clang that comes by default with XCode.

from distro.

 avatar commented on September 27, 2024

@soumith it's true. I installed both clang and gcc49 on the machine. How can I set the compiler linked with clang? Do you know how to deal with this? : )

from distro.

1Reinier avatar 1Reinier commented on September 27, 2024

How was this issue resolved in the end? I'm having the same issue

from distro.

liboyue avatar liboyue commented on September 27, 2024

@1Reinier There's a workaround. torch/qtlua#21
You can use install_name_tool -add_rpath path_to_anaconda_lib path_to_qlua to update your rpath, or install_name_tool -change @rpath/./libQtGui.4.dylib path_to_libQtGui.4.dylib path_to_qlua.

@soumith I think it may be caused by https://github.com/torch/qtlua/blob/master/cmake/QtLuaPaths.cmake#L45 but I am not sure. The cmake file works fine on Ubuntu but on my mac it breaks too...

from distro.

kirk86 avatar kirk86 commented on September 27, 2024

@soumith have you tried installing torch with other compilers on el capitan. (i.e. llvm, intel-icc, clang-omp)?

I'm trying to install with the intel compilers but I get the following errors:

Prefix set to /Users/jm/torch/install
Installing Lua version: LUAJIT21
icc: command line warning #10006: ignoring unknown option '-image_base'
icc: error #10236: File not found: '100000000'
make[2]: *** [exe/luajit-rocks/luajit-2.1/minilua] Error 1
make[1]: *** [exe/luajit-rocks/luajit-2.1/CMakeFiles/minilua.dir/all] Error 2
make: *** [all] Error 2
error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: can't open file: /Users/user/torch/install/lib/libluajit.dylib (No such file or directory)
./install.sh: line 90: /Users/user/torch/install/bin/luarocks: No such file or directory
Installing common Lua packages
./install.sh: line 94: /Users/user/torch/install/bin/luarocks: No such file or directory

Any help would be appreciated. I don't why it is looking for libluajit.dylib when you install for the first time that, that shouldn't be on your system unless you have luajit pre-installed.

Are there any options or flags the I could use during compilation?

from distro.

kirk86 avatar kirk86 commented on September 27, 2024

@soumith you're the man. I've been busting my head around all this time to overcome this error. Thanks a bunch.

Are there any pros, cons I should be aware of between lua5.2 and luajit. For instance if luajit is faster than lua52 then I guess compiling with icc looses its point, since the whole issue was about gaining some speed.

One last thing that I've experienced is an error regarding the demos on torch. This was about the digit classifier on mnist written by Clement if I'm not mistaken.

In the options one can set the batchSize, every time that I set a different batchSize I get the following errors:

/Users/user/torch/install/bin/lua: /Users/user/torch/install/share/lua/5.2/nn/THNN.lua:109:

Assertioncur_target >= 0 && cur_target < n_classes' failed. at`

/Users/user/torch/extra/nn/lib/THNN/generic/ClassNLLCriterion.c:53

stack traceback:

[C]: in function 'v'

/Users/user/torch/install/share/lua/5.2/nn/THNN.lua:109: in function

'ClassNLLCriterion_updateOutput'

    `.../user/torch/install/share/lua/5.2/nn/ClassNLLCriterion.lua:41: in function` 

<.../user/torch/install/share/lua/5.2/nn/ClassNLLCriterion.lua:29>

   `(...tail calls...)`

    `train-on-mnist.lua:246: in function 'opfunc'`

    `/Users/user/torch/install/share/lua/5.2/optim/sgd.lua:44: in function 'sgd'`

    `train-on-mnist.lua:298: in function 'train'`

    `train-on-mnist.lua:382: in main chunk`

    `[C]: in function 'docile'`

   `...s/user/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk`

    `[C]: in ?`

My wild guess would be something related to insufficient memory. I would expect a batchSize of 128 to be normal in this case or am I missing something?

from distro.

soumith avatar soumith commented on September 27, 2024

no pro / con with LuaJit. Just use Lua 5.2, it's great.

That assertion states that the target indices given to the Criterion are more than nClasses.
i.e. mnist has 10 examples, but one or some of the target indices are < 1 or > 10

from distro.

kirk86 avatar kirk86 commented on September 27, 2024

@soumith thanks so much for your help.
everything seems to be working fine except the documentation.

?torch.Tensor
undocumented symbol

require('nn')
?nn.Sequential
undocumented symbol

is that normal behaviour?

from distro.

soumith avatar soumith commented on September 27, 2024

I've just tried it on OSX with a fresh install. Seems to be working for me :-/
screen shot 2016-08-24 at 7 09 15 pm

from distro.

kirk86 avatar kirk86 commented on September 27, 2024

@soumith thanks. What I did was to remove and make clean install from the beginning with icc.

I looked closer at the output and it seems that there are some errors which may explain why the documentation is not working.

It fails to compile qtlua, qttorch and some other dependencies.

I'll provide here the output error in case that will be useful to dissect the problem.

CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "make
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

liblua

This warning is for project developers. Use -Wno-dev to suppress it.

Warning: unmatched variable LUALIB

CMake Warning:
Manually-specified variables were not used by the project:

`LUA_INCDIR`

LUA_LIBDIR

`Warning: unmatched variable LUALIB`


`/usr/local/Cellar/qt/4.8.7_2/include/QtCore/qshareddata.h(169): error: pointer to incomplete` `class type is not allowed`
      `inline QExplicitlySharedDataPointer(const QExplicitlySharedDataPointer<T> &o) : d(o.d) { if (d) d->ref.ref(); }`

compilation aborted for /Users/user/torch/exe/qtlua/qlua/qluaapplication.cpp (code 2)
make[2]: *** [qlua/CMakeFiles/libqlua.dir/qluaapplication.cpp.o] Error 2
make[1]: *** [qlua/CMakeFiles/libqlua.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.

compilation aborted for /tmp/luarocks_qtlua-scm-1-1446/qtlua/qlua/qluaapplication.cpp (code 2)
make[2]: *** [qlua/CMakeFiles/libqlua.dir/qluaapplication.cpp.o] Error 2
make[1]: *** [qlua/CMakeFiles/libqlua.dir/all] Error 2
make: *** [all] Error 2

Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/qtlua-scm-1.rockspec - Build error: Failed building.

from distro.

soumith avatar soumith commented on September 27, 2024

Ok i can't really help there :)
icc seems to not compile with Qt!

from distro.

kirk86 avatar kirk86 commented on September 27, 2024

@soumith ok thanks for all the help, switched back to gcc...

from distro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.