TRIQS/TRIQS — Issue #37: Python fails to import boost during installation - revisited
Author: sentefmi
Created: 2012-02-20 18:19:58+00:00
State: open

Hi,

I have tried to install triqs and stumbled across an issue already raised in #5. I get the error message

CMake Error: CMake can not determine linker language for target:boost_for_triqs
CMake Error: Cannot determine link language for target "boost_for_triqs".

right at the end of the cmake.

In #5 the issue seems to have been resolved by using absolute path names instead of ~/. This doesn't help in my case.

Here is the full output:
-- Installation directory is /Users/sentefmi/Documents/OLD_MACBOOK/Physik/triqs_build/INSTALL_DIR
-- DYNAMIC Built
-- CMAKE_GENERATOR: Unix Makefiles
-- CMAKE_CL_64:
-- CMAKE_SIZEOF_VOID_P: 8
-- CMAKE_GENERATOR: Unix Makefiles
-- CMAKE_CL_64:
-- Build type: Release
-- MPI compiler was /usr/local/bin/mpicxx
-- Using Framework on Darwin.
-- HDF5 version found is 1.8.8 in /sw/include
-- Python interpreter /opt/local/bin/python
-- Python interpreter ok : version 2.7.2
-- PYTHON_INCLUDE_DIRS = /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-- PYTHON_NUMPY_INCLUDE_DIR = /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
-- PYTHON_SITE_PKG = /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
-- PYTHON_LIBRARY = /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a
-- PYTHON_EXTRA_LIBS =-ldl -framework CoreFoundation
-- PYTHON_LINK_FOR_SHARED = -u _PyMac_Error /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python
-- Numpy include in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
-- HDF5_LIBRARIES = debug;/sw/lib/libhdf5_hl.dylib;/sw/lib/libhdf5.dylib;/sw/lib/libsz.dylib;/usr/lib/libz.dylib;/usr/lib/libm.dylib;/sw/lib/libhdf5_cpp.dylib;optimized;/sw/lib/libhdf5_hl.dylib;/sw/lib/libhdf5.dylib;/sw/lib/libsz.dylib;/usr/lib/libz.dylib;/usr/lib/libm.dylib;/sw/lib/libhdf5_cpp.dylib
-- Triqs general lib detection ( but boost )
-- Adding definitions
-- Adding include /usr/local/include;/sw/include;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include
-- Adding libs /usr/local/lib/libmpi_cxx.dylib;/usr/local/lib/libmpi.dylib;/usr/lib/libpthread.dylib;debug;/sw/lib/libhdf5_hl.dylib;/sw/lib/libhdf5.dylib;/sw/lib/libsz.dylib;/usr/lib/libz.dylib;/usr/lib/libm.dylib;/sw/lib/libhdf5_cpp.dylib;optimized;/sw/lib/libhdf5_hl.dylib;/sw/lib/libhdf5.dylib;/sw/lib/libsz.dylib;/usr/lib/libz.dylib;/usr/lib/libm.dylib;/sw/lib/libhdf5_cpp.dylib;/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a
-- Adding library dir
-- Python modules will be installed in /Users/sentefmi/Documents/OLD_MACBOOK/Physik/triqs_build/INSTALL_DIR/lib/python2.7/site-packages/pytriqs
-- I am using boost sources from /Users/sentefmi/Downloads/path_to_boost_sources/ to compile a mini boost_for_triqs
-- BOOST_INCLUDE_DIR = /Users/sentefmi/Downloads/path_to_boost_sources/
-- You are not using mkl
-- cblas header found at /System/Library/Frameworks/vecLib.framework/Headers
-- Git hash 7e329765473c10c9945d58dd53ad08e959b1f977
-- Git branches :
* master
-- 64 bit machine : Adding -fpic
-- Preparing python module test_converter
-- Making pytriqs/Tools/test/pytriqs_test_converter.py
-- Preparing python module GF
-- Making pytriqs/Base/GF_Local/pytriqs_GF.py
-- Preparing python module LatticeTools
-- Making pytriqs/Base/Lattice/pytriqs_LatticeTools.py
-- MPI launch command is : /usr/local/bin/mpiexec -np PROCS EXECUTABLE ARGS
-- -----------------------------------------------------------------------------
-- ******** WARNING ********
-- Wien2k users : after installation of TRIQS, copy the files from
-- /Users/sentefmi/Documents/OLD_MACBOOK/Physik/triqs_build/INSTALL_DIR/share/triqs/Wien2k_SRC_files/SRC_templates
-- to your Wien2k installation WIENROOT/SRC_templates (Cf documentation).
-- This is not handled automatically by the installation process.
-- -----------------------------------------------------------------------------
-- Preparing optional python module CTHyb
-- Preparing python module CTHyb
-- Making pytriqs/Solvers/HybridizationExpansion/pytriqs_Solver_HybridizationExpansion.py
-- Preparing the various scripts
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/sentefmi/Documents/OLD_MACBOOK/Physik/triqs_build

... and the error messages:

You have called ADD_LIBRARY for library boost_for_triqs without any source files. This typically indicates a problem with your CMakeLists.txt file
CMake Error: CMake can not determine linker language for target:boost_for_triqs
CMake Error: Cannot determine link language for target "boost_for_triqs".

Any ideas? Thanks a lot!
Michael