twitter-archive / torch-ipc

A set of primitives for parallel computation in Torch
Apache License 2.0
95 stars 28 forks source link

Installation Problem #2

Closed joeyhng closed 8 years ago

joeyhng commented 8 years ago

Here is the error message:

~$ luarocks install ipc
Installing https://raw.githubusercontent.com/torch/rocks/master/ipc-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/ipc-scm-1.rockspec... switching to 'build' mode
Cloning into 'torch-ipc'...
remote: Counting objects: 44, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 44 (delta 1), reused 13 (delta 0), pack-reused 0
Receiving objects: 100% (44/44), 30.21 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/joe/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/joe/torch/install/lib/luarocks/rocks/ipc/scm-1" -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC;
make

-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Torch7 in /home/joe/torch/install
-- Found CUDA: /usr/local/cuda (found suitable version "6.5", minimum required is "6.5") 
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp  
CMake Error at CMakeLists.txt:46 (SET_TARGET_PROPERTIES):
  set_target_properties Can not find target to add properties to: ipc_static

-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_ipc-scm-1-3870/torch-ipc/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.

Error: Build error: Failed building.

Any idea? Thanks!

vislab2013 commented 8 years ago

I've opened a similar topic on torch-thrift about the same issue. I've just disabled the ipc_static part in CMakeList.txt (line 46) and got everything to work. My question concerns on the usefulness of that ipc_static/thrift_static stuff, i.e., how really needed it is for the code to (properly) run.

zakattacktwitter commented 8 years ago

Hi,

It's not needed at all to run. It's an artifact of our internal needs for a completely static linked binary. Not sure why it's failing you as it works on a completely new ec2 instance. Do you have the latest torch installed?

On Wednesday, January 27, 2016, vislab2013 notifications@github.com wrote:

I've opened a similar topic on torch-thrift about the same issue. I've just disabled the ipc_static part in CMakeList.txt (line 46) and got everything to work. My question concerns on the usefulness of that ipc_static/thrift_static stuff, i.e., how really needed it is for the code to run.

— Reply to this email directly or view it on GitHub https://github.com/twitter/torch-ipc/issues/2#issuecomment-175702140.

joeyhng commented 8 years ago

Yes, I have the latest torch installed.

On Wed, Jan 27, 2016 at 12:16 PM zakattacktwitter notifications@github.com wrote:

Hi,

It's not needed at all to run. It's an artifact of our internal needs for a completely static linked binary. Not sure why it's failing you as it works on a completely new ec2 instance. Do you have the latest torch installed?

On Wednesday, January 27, 2016, vislab2013 notifications@github.com wrote:

I've opened a similar topic on torch-thrift about the same issue. I've just disabled the ipc_static part in CMakeList.txt (line 46) and got everything to work. My question concerns on the usefulness of that ipc_static/thrift_static stuff, i.e., how really needed it is for the code to run.

— Reply to this email directly or view it on GitHub https://github.com/twitter/torch-ipc/issues/2#issuecomment-175702140.

— Reply to this email directly or view it on GitHub https://github.com/twitter/torch-ipc/issues/2#issuecomment-175752142.

vislab2013 commented 8 years ago

Tried it on two separate machines with an updated torch version and got the same thing. Only by removing that static stuff from CMakeList.txt I was able to install the package

zakattacktwitter commented 8 years ago

It was added to Torch here:

https://github.com/torch/torch7/blob/master/cmake/TorchPackage.cmake

On Wednesday, January 27, 2016, vislab2013 notifications@github.com wrote:

Tried it on two separate machines with an updated torch version and got the same thing. Only by removing that static stuff from CMakeList.txt I was able to install the package

— Reply to this email directly or view it on GitHub https://github.com/twitter/torch-ipc/issues/2#issuecomment-175754204.

soumith commented 8 years ago

i have a fix coming in a second.

soumith commented 8 years ago

https://github.com/twitter/torch-thrift/pull/5 https://github.com/twitter/torch-ipc/pull/3

fixes them.