cern-fts / homebrew-dmc

DMC Homebrew repo
2 stars 1 forks source link

[Question] gfal2-python make install failed #3

Closed a6350202 closed 6 years ago

a6350202 commented 6 years ago

Hello, I tried to install gfal2-python, but it failed when make install:

==> make install
Last 15 lines from /Users/xxx/Library/Logs/Homebrew/gfal2-python/02.make:
[ 87%] Building CXX object src/CMakeFiles/gfal-py.dir/GfaltParams.cpp.o
cd /tmp/gfal2-python-20180306-42457-1tx8vuw/src && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DGFAL2_PYTHON_VERSION=\"1.9.3\" -D_FILE_OFFSET_BITS=64 -Dgfal_py_EXPORTS -I/usr/local/include -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.54.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.54.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/gfal2/2.15.0/include/gfal2 -I/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m  -O2 -fPIC   -o CMakeFiles/gfal-py.dir/gfal2.cpp.o -c /tmp/gfal2-python-20180306-42457-1tx8vuw/src/gfal2.cpp
cd /tmp/gfal2-python-20180306-42457-1tx8vuw/src && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DGFAL2_PYTHON_VERSION=\"1.9.3\" -D_FILE_OFFSET_BITS=64 -Dgfal_py_EXPORTS -I/usr/local/include -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.54.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.54.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/gfal2/2.15.0/include/gfal2 -I/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m  -O2 -fPIC   -o CMakeFiles/gfal-py.dir/LoggingHelper.cpp.o -c /tmp/gfal2-python-20180306-42457-1tx8vuw/src/LoggingHelper.cpp
cd /tmp/gfal2-python-20180306-42457-1tx8vuw/src && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DGFAL2_PYTHON_VERSION=\"1.9.3\" -D_FILE_OFFSET_BITS=64 -Dgfal_py_EXPORTS -I/usr/local/include -I/usr/local/Cellar/pcre/8.41/include -I/usr/local/Cellar/glib/2.54.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.54.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/gfal2/2.15.0/include/gfal2 -I/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m  -O2 -fPIC   -o CMakeFiles/gfal-py.dir/GfaltParams.cpp.o -c /tmp/gfal2-python-20180306-42457-1tx8vuw/src/GfaltParams.cpp
[100%] Linking CXX shared module python2/gfal2.so
cd /tmp/gfal2-python-20180306-42457-1tx8vuw/src && /usr/local/Cellar/cmake/3.10.2/bin/cmake -E cmake_link_script CMakeFiles/gfal-py.dir/link.txt --verbose=1
/usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -O2 -bundle -Wl,-headerpad_max_install_names  -o python2/gfal2.so CMakeFiles/gfal-py.dir/Directory.cpp.o CMakeFiles/gfal-py.dir/File.cpp.o CMakeFiles/gfal-py.dir/GErrorWrapper.cpp.o CMakeFiles/gfal-py.dir/Gfal2Context.cpp.o CMakeFiles/gfal-py.dir/GfaltParams.cpp.o CMakeFiles/gfal-py.dir/LoggingHelper.cpp.o CMakeFiles/gfal-py.dir/gfal2.cpp.o  -L/usr/local/Cellar/gfal2-python/1.9.3/opt/gettext/lib  -L/usr/local/Cellar/glib/2.54.3/lib  -L/usr/local/Cellar/gfal2/2.15.0/lib -Wl,-rpath,/usr/local/Cellar/gfal2-python/1.9.3/opt/gettext/lib -Wl,-rpath,/usr/local/Cellar/glib/2.54.3/lib -Wl,-rpath,/usr/local/Cellar/gfal2/2.15.0/lib /usr/local/lib/libboost_python-mt.dylib -lglib-2.0 -lintl -lgthread-2.0 -lglib-2.0 -lintl -lgfal2 -lglib-2.0 -lintl -lgfal_transfer -lgfal2 -lglib-2.0 -lintl /usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6.dylib -lgthread-2.0 -lgfal_transfer /usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6.dylib
Undefined symbols for architecture x86_64:
  "boost::python::detail::init_module(PyModuleDef&, void (*)())", referenced from:
      _PyInit_gfal2 in gfal2.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/python2/gfal2.so] Error 1
make[1]: *** [src/CMakeFiles/gfal-py.dir/all] Error 2
make: *** [all] Error 2

It seems will install python3 first due to gfal2-python.rb#L11, and use python3 to make install (I am not sure it relate to this problem...)

andrea-manzi commented 6 years ago

Hi, thanks for reporting, we are investigating this problem, could be related as you said to python2 vs python3 cheers Andrea

a6350202 commented 6 years ago

Version is python2 (Python 2.7.10)

andrea-manzi commented 6 years ago

it should be fixed now, can you confirm?

a6350202 commented 6 years ago

Yes, it works. Thank you very much =)