installing boost getting error "ld: symbol(s) not found for architecture x86_64" on OSX 10.9.2

Hi everyone, I hope this is the right place to ask my question. I'm trying to build boost 1.55.0 for python on OSX 10.9.2 but i'm encountering the following error "ld: symbol(s) not found for architecture x86_64" and I'm really blocked. I read it might be related to the standard c++ library which changed with maverick to be libc++ by default. But even adding cxxflags="-stdlib=libstdc++" when executing ./b2 didn't help. Here is what I did following the boost tutorial: download boost_1_55_0.tar ./bootstrap.sh --with-libraries=python toolset=darwin ./b2 include="/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/" And I get the following error: link.jam: No such file or directory Building the Boost C++ Libraries. error: No best alternative for /python_for_extensions next alternative: required properties: <python>2.7 <target-os>darwin matched next alternative: required properties: <python>2.7 <target-os>darwin matched error: No best alternative for /python_for_extensions next alternative: required properties: <python>2.7 <target-os>darwin matched next alternative: required properties: <python>2.7 <target-os>darwin matched Component configuration: - python : building darwin.link.dll bin.v2/libs/python/build/darwin-4.2.1/release/threading- multi/libboost_python.dylib Undefined symbols for architecture x86_64: "_PyFile_FromString", referenced from: boost::python::exec_file(boost::python::str, boost::python::api::object, boost::python::api::object) in exec.o "_PyFile_AsFile", referenced from: boost::python::exec_file(boost::python::str, boost::python::api::object, boost::python::api::object) in exec.o "_PyEval_GetGlobals", referenced from: boost::python::eval(boost::python::str, boost::python::api::object, boost::python::api::object) in exec.o boost::python::exec(boost::python::str, boost::python::api::object, boost::python::api::object) in exec.o boost::python::exec_statement(boost::python::str, boost::python::api::object, boost::python::api::object) in exec.o boost::python::exec_file(boost::python::str, boost::python::api::object, boost::python::api::object) in exec.o "_PyRun_StringFlags", referenced from: ........ "_PyExc_StopIteration", referenced from: boost::python::objects::stop_iteration_error() in iterator.o "_PyNumber_InPlaceAdd", referenced from: boost::python::api::operator+=(boost::python::api::object&, boost::python::api::object const&) in object_operators.o "_PyUnicodeUCS2_FromEncodedObject", referenced from: _encode_string_unaryfunc in builtin_converters.o "_PyErr_NoMemory", referenced from: boost::python::handle_exception_impl(boost::function0<void>) in errors.o "_PyDict_New", referenced from: boost::python::detail::dict_base::dict_base() in dict.o boost::python::detail::dict_base::dict_base() in dict.o _instance_get_dict in class.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) "g++" -dynamiclib -Wl,-single_module -install_name "libboost_python.dylib" -o "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/libboost_python.dylib" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/numeric.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/list.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/long.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/dict.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/tuple.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/str.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/slice.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/converter/from_python.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/converter/registry.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/converter/type_id.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object/enum.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object/class.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object/function.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object/inheritance.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object/life_support.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object/pickle_support.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/errors.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/module.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/converter/builtin_converters.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/converter/arg_to_python_base.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object/iterator.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object/stl_iterator.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object_protocol.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object_operators.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/wrapper.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/import.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/exec.o" "bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/object/function_doc_signature.o" -headerpad_max_install_names -Wl,-dead_strip -no_dead_strip_inits_and_terms ...failed darwin.link.dll bin.v2/libs/python/build/darwin-4.2.1/release/threading- multi/libboost_python.dylib... ...skipped <pstage/lib>libboost_python.dylib for lack of <pbin.v2/libs/python/build/darwin- 4.2.1/release/threading-multi>libboost_python.dylib... ...failed updating 1 target... ...skipped 1 target... Thanks for your help! Corentin Hamel Software Engineer Rocketboots Level 11, 189 Kent Street Sydney NSW 2000

AMDG On 03/31/2014 11:21 PM, Corentin Hamel wrote:
<snip> /*./bootstrap.sh --with-libraries=python toolset=darwin*/
/*./b2 include="/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/"*/
You shouldn't need to add the includes path explicitly if python is configured correctly.
And I get the following error:
/*link.jam: No such file or directory*/ /*Building the Boost C++ Libraries.*/
/*error: No best alternative for /python_for_extensions*/ /*next alternative: required properties: <python>2.7 <target-os>darwin*/ /*matched*/ /*next alternative: required properties: <python>2.7 <target-os>darwin*/ /*matched*/
You've probably initialized python more than once. Try ./b2 --debug-configuration to see what's happening. In Christ, Steven Watanabe

Thanks for your answer. The problem is if I don't specify include="/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/"*/ I get the following error: /boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found # include <pyconfig.h> ^ 1 error generated. Even if using ./b2 --debug-configuration, I can see the python include path well set notice: [python-cfg] interpreter command: "/Library/Frameworks/Python.framework/Versions/2.7/bin/python" notice: [python-cfg] include path: "/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7" notice: [python-cfg] library path: "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config" "/Library/Frameworks/Python.framework/Versions/2.7/lib" And here is the full message output but debug configuration. I can't really see anything bad notice: found boost-build.jam at /usr/local/boost_1_55_0/boost-build.jam notice: loading Boost.Build from /usr/local/boost_1_55_0/tools/build/v2 notice: Searching '/etc' '/Users/corentinhamel' '/usr/local/boost_1_55_0/tools/build/v2' '/usr/share/boost-build' '/usr/local/boost_1_55_0/tools/build/v2/kernel' '/usr/local/boost_1_55_0/tools/build/v2/util' '/usr/local/boost_1_55_0/tools/build/v2/build' '/usr/local/boost_1_55_0/tools/build/v2/tools' '/usr/local/boost_1_55_0/tools/build/v2/contrib' '/usr/local/boost_1_55_0/tools/build/v2/.' for site-config configuration file 'site-config.jam'. notice: Loading site-config configuration file 'site-config.jam' from '/usr/local/boost_1_55_0/tools/build/v2'. notice: Searching '/Users/corentinhamel' '/usr/local/boost_1_55_0/tools/build/v2' '/usr/share/boost-build' '/usr/local/boost_1_55_0/tools/build/v2/kernel' '/usr/local/boost_1_55_0/tools/build/v2/util' '/usr/local/boost_1_55_0/tools/build/v2/build' '/usr/local/boost_1_55_0/tools/build/v2/tools' '/usr/local/boost_1_55_0/tools/build/v2/contrib' '/usr/local/boost_1_55_0/tools/build/v2/.' for user-config configuration file 'user-config.jam'. notice: Loading user-config configuration file 'user-config.jam' from '/Users/corentinhamel'. notice: [python-cfg] Configuring python... notice: [python-cfg] user-specified version: "2.7" notice: [python-cfg] user-specified cmd-or-prefix: "/Library/Frameworks/Python.framework/Versions/2.7/bin/python" notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.7/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.7/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...requested configuration matched! notice: [python-cfg] Details of this Python configuration: notice: [python-cfg] interpreter command: "/Library/Frameworks/Python.framework/Versions/2.7/bin/python" notice: [python-cfg] include path: "/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7" notice: [python-cfg] library path: "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config" "/Library/Frameworks/Python.framework/Versions/2.7/lib" notice: [python-cfg] framework directory is "/Library/Frameworks/Python.framework" notice: Searching '.' for project-config configuration file 'project-config.jam'. notice: Loading project-config configuration file 'project-config.jam' from '.'. notice: OSX version on this machine is 10.9.2 notice: will use 'g++' for darwin, condition <toolset>darwin-4.2.1 notice: using strip for <toolset>darwin-4.2.1 at /usr/bin/strip notice: using archiver for <toolset>darwin-4.2.1 at /usr/bin/libtool notice: [python-cfg] Configuring python... notice: [python-cfg] user-specified version: "2.7" notice: [python-cfg] user-specified cmd-or-prefix: "/Library/Frameworks/Python.framework/Versions/2.7" notice: [python-cfg] Checking interpreter command "/Library/Frameworks/Python.framework/Versions/2.7/bin/python"... notice: [python-cfg] running command '/Library/Frameworks/Python.framework/Versions/2.7/bin/python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1' notice: [python-cfg] ...requested configuration matched! notice: [python-cfg] Details of this Python configuration: notice: [python-cfg] interpreter command: "/Library/Frameworks/Python.framework/Versions/2.7/bin/python" notice: [python-cfg] include path: "/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7" notice: [python-cfg] library path: "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config" "/Library/Frameworks/Python.framework/Versions/2.7/lib" notice: [python-cfg] framework directory is "/Library/Frameworks/Python.framework" link.jam: No such file or directory notice: [zlib] Using pre-installed library notice: [zlib] Condition notice: iostreams: using prebuilt bzip2 Building the Boost C++ Libraries. Thanks Corentin Hamel Software Engineer Rocketboots Level 11, 189 Kent Street Sydney NSW 2000 ----- Original Message ----- From: "Steven Watanabe" <watanabesj@gmail.com> To: boost-users@lists.boost.org Sent: Wednesday, 2 April, 2014 4:31:54 AM Subject: Re: [Boost-users] installing boost getting error "ld: symbol(s) not found for architecture x86_64" on OSX 10.9.2 AMDG On 03/31/2014 11:21 PM, Corentin Hamel wrote: <snip> /*./bootstrap.sh --with-libraries=python toolset=darwin*/ /*./b2 include="/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/"*/ You shouldn't need to add the includes path explicitly if python is configured correctly. <blockquote> And I get the following error: /*link.jam: No such file or directory*/ /*Building the Boost C++ Libraries.*/ /*error: No best alternative for /python_for_extensions*/ /*next alternative: required properties: <python>2.7 <target-os>darwin*/ /*matched*/ /*next alternative: required properties: <python>2.7 <target-os>darwin*/ /*matched*/ You've probably initialized python more than once. </blockquote> Try ./b2 --debug-configuration to see what's happening. In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

AMDG On 04/01/2014 03:35 PM, Corentin Hamel wrote:
The problem is if I don't specify include="/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/"*/
I get the following error: /boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found # include <pyconfig.h> ^ 1 error generated.
It's failing for the same reason that linking is failing later. double initialization is corrupting the python module and preventing the flags from being passed to the compiler.
Even if using ./b2 --debug-configuration, I can see the python include path well set
notice: [python-cfg] interpreter command: "/Library/Frameworks/Python.framework/Versions/2.7/bin/python" notice: [python-cfg] include path: "/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7" notice: [python-cfg] library path: "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config" "/Library/Frameworks/Python.framework/Versions/2.7/lib"
And here is the full message output but debug configuration. I can't really see anything bad
Both ~/user-config.jam and ./project-config.jam are trying to set up python. Just delete the using python ; line from project-config.jam and you should be good. (This is a bug in the bootstrap script, which I will fix.) In Christ, Steven Watanabe

Works grey! Thanks a lot! Corentin Hamel Software Engineer Rocketboots Level 11, 189 Kent Street Sydney NSW 2000 ----- Original Message ----- From: "Steven Watanabe" <watanabesj@gmail.com> To: boost-users@lists.boost.org Sent: Wednesday, 2 April, 2014 10:24:34 AM Subject: Re: [Boost-users] installing boost getting error "ld: symbol(s) not found for architecture x86_64" on OSX 10.9.2 AMDG On 04/01/2014 03:35 PM, Corentin Hamel wrote:
The problem is if I don't specify include="/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/"*/
I get the following error: /boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found # include <pyconfig.h> ^ 1 error generated.
It's failing for the same reason that linking is failing later. double initialization is corrupting the python module and preventing the flags from being passed to the compiler.
Even if using ./b2 --debug-configuration, I can see the python include path well set
notice: [python-cfg] interpreter command: "/Library/Frameworks/Python.framework/Versions/2.7/bin/python" notice: [python-cfg] include path: "/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7" notice: [python-cfg] library path: "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config" "/Library/Frameworks/Python.framework/Versions/2.7/lib"
And here is the full message output but debug configuration. I can't really see anything bad
Both ~/user-config.jam and ./project-config.jam are trying to set up python. Just delete the using python ; line from project-config.jam and you should be good. (This is a bug in the bootstrap script, which I will fix.) In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Actually I have another problem now... When try to build a python application using boost, I'm getting this error using make. I tried to use ./b2 cxxflags="-ftemplate-depth=256" as mentioned in this topic https://groups.google.com/forum/#!topic/boost-list/KJXwGcugNEs but didn't make any difference. Any idea? Thanks! [ 1%] Building CXX object src/CMakeFiles/pagmo_static.dir/problem/death_penalty.o In file included from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pagmo-code/src/problem/death_penalty.cpp:29: In file included from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pagmo-code/src/problem/../types.h:30: In file included from /usr/local/boost_1_55_0/boost/lexical_cast.hpp:165: In file included from /usr/local/boost_1_55_0/boost/type_traits/has_left_shift.hpp:43: In file included from /usr/local/boost_1_55_0/boost/type_traits/detail/has_binary_operator.hpp:15: /usr/local/boost_1_55_0/boost/type_traits/is_fundamental.hpp:26:20: fatal error: recursive template instantiation exceeded maximum depth of 128 ::boost::is_arithmetic<T>::value ^ /usr/local/boost_1_55_0/boost/type_traits/is_fundamental.hpp:38:64: note: in instantiation of template class 'boost::detail::is_fundamental_impl<const double>' requested here BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_fundamental,T,::boost::detail::is_fundamental_impl<T>::value) ^ /usr/local/boost_1_55_0/boost/type_traits/detail/bool_trait_def.hpp:69:30: note: expanded from macro 'BOOST_TT_AUX_BOOL_TRAIT_DEF1' BOOST_TT_AUX_BOOL_C_BASE(C) \ ^ /usr/local/boost_1_55_0/boost/type_traits/detail/bool_trait_def.hpp:63:81: note: expanded from macro 'BOOST_TT_AUX_BOOL_C_BASE' # define BOOST_TT_AUX_BOOL_C_BASE(C) : public ::boost::integral_constant<bool,C> ^ /usr/local/boost_1_55_0/boost/mpl/if.hpp:63:68: note: in instantiation of template class 'boost::is_fundamental<const double>' requested here BOOST_MPL_AUX_STATIC_CAST(bool, BOOST_MPL_AUX_VALUE_WKND(T1)::value) ^ /usr/local/boost_1_55_0/boost/mpl/aux_/value_wknd.hpp:57:40: note: expanded from macro 'BOOST_MPL_AUX_VALUE_WKND' # define BOOST_MPL_AUX_VALUE_WKND(C) C ^ /usr/local/boost_1_55_0/boost/mpl/aux_/static_cast.hpp:24:62: note: expanded from macro 'BOOST_MPL_AUX_STATIC_CAST' # define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr) ^ /usr/local/boost_1_55_0/boost/mpl/eval_if.hpp:37:22: note: in instantiation of template class 'boost::mpl::if_<boost::is_fundamental<const double>, mpl_::int_<1>, boost::mpl::eval_if<boost::is_class<const double>, mpl_::int_<3>, boost::mpl::eval_if<boost::is_array<const double>, mpl_::int_<2>, boost::mpl::eval_if<boost::is_enum<const double>, mpl_::int_<1>, mpl_::int_<0> > > > >' requested here typedef typename if_<C,F1,F2>::type f_; ^ /usr/local/boost_1_55_0/boost/mpl/eval_if.hpp:38:22: note: in instantiation of template class 'boost::mpl::eval_if<boost::is_fundamental<const double>, mpl_::int_<1>, boost::mpl::eval_if<boost::is_class<const double>, mpl_::int_<3>, boost::mpl::eval_if<boost::is_array<const double>, mpl_::int_<2>, boost::mpl::eval_if<boost::is_enum<const double>, mpl_::int_<1>, mpl_::int_<0> > > > >' requested here typedef typename f_::type type; ^ /usr/local/boost_1_55_0/boost/serialization/level.hpp:53:37: note: in instantiation of template class 'boost::mpl::eval_if<boost::is_base_and_derived<boost::serialization::basic_traits, const double>, boost::serialization::implementation_level_impl<const double>::traits_class_level<const double>, boost::mpl::eval_if<boost::is_fundamental<const double>, mpl_::int_<1>, boost::mpl::eval_if<boost::is_class<const double>, mpl_::int_<3>, boost::mpl::eval_if<boost::is_array<const double>, mpl_::int_<2>, boost::mpl::eval_if<boost::is_enum<const double>, mpl_::int_<1>, mpl_::int_<0> > > > > >' requested here BOOST_DEDUCED_TYPENAME mpl::eval_if< ^ /usr/local/boost_1_55_0/boost/serialization/level.hpp:93:12: note: (skipping 119 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) public implementation_level_impl<const T> ^ /usr/local/boost_1_55_0/boost/serialization/export.hpp:66:12: note: in instantiation of member function 'boost::serialization::singleton<boost::archive::detail::pointer_iserializer<boost::archive::text_iarchive, pagmo::problem::death_penalty> >::get_const_instance' requested here >::get_const_instance(); ^ /usr/local/boost_1_55_0/boost/serialization/export.hpp:111:5: note: in instantiation of member function 'boost::archive::detail::export_impl<boost::archive::text_iarchive, pagmo::problem::death_penalty>::enable_load' requested here export_impl<Archive,Serializable>::enable_load( ^ /usr/local/boost_1_55_0/boost/serialization/export.hpp:95:37: note: in instantiation of member function 'boost::archive::detail::ptr_serialization_support<boost::archive::text_iarchive, pagmo::problem::death_penalty>::instantiate' requested here &ptr_serialization_support::instantiate ^ /usr/local/boost_1_55_0/boost/serialization/export.hpp:142:9: note: in instantiation of member function 'boost::archive::detail::extra_detail::guid_initializer<pagmo::problem::death_penalty>::export_guid' requested here export_guid(boost::serialization::is_abstract< T >()); ^ /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pagmo-code/src/problem/death_penalty.cpp:206:1: note: in instantiation of member function 'boost::archive::detail::extra_detail::guid_initializer<pagmo::problem::death_penalty>::export_guid' requested here BOOST_CLASS_EXPORT_IMPLEMENT(pagmo::problem::death_penalty) ^ /usr/local/boost_1_55_0/boost/serialization/export.hpp:167:35: note: expanded from macro 'BOOST_CLASS_EXPORT_IMPLEMENT' >::get_mutable_instance().export_guid(); \ ^ /usr/local/boost_1_55_0/boost/type_traits/is_fundamental.hpp:26:20: note: use -ftemplate-depth=N to increase recursive template instantiation depth ::boost::is_arithmetic<T>::value ^ 1 error generated. make[2]: *** [src/CMakeFiles/pagmo_static.dir/problem/death_penalty.o] Error 1 make[1]: *** [src/CMakeFiles/pagmo_static.dir/all] Error 2 make: *** [all] Error 2 Corentin Hamel Software Engineer Rocketboots Level 11, 189 Kent Street Sydney NSW 2000 ----- Original Message ----- From: "Corentin Hamel" <corentin@rocketboots.com.au> To: boost-users@lists.boost.org Sent: Wednesday, 2 April, 2014 11:16:50 AM Subject: Re: [Boost-users] installing boost getting error "ld: symbol(s) not found for architecture x86_64" on OSX 10.9.2 Works grey! Thanks a lot! Corentin Hamel Software Engineer Rocketboots Level 11, 189 Kent Street Sydney NSW 2000 ----- Original Message ----- From: "Steven Watanabe" <watanabesj@gmail.com> To: boost-users@lists.boost.org Sent: Wednesday, 2 April, 2014 10:24:34 AM Subject: Re: [Boost-users] installing boost getting error "ld: symbol(s) not found for architecture x86_64" on OSX 10.9.2 AMDG On 04/01/2014 03:35 PM, Corentin Hamel wrote:
The problem is if I don't specify include="/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/"*/
I get the following error: /boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found # include <pyconfig.h> ^ 1 error generated.
It's failing for the same reason that linking is failing later. double initialization is corrupting the python module and preventing the flags from being passed to the compiler.
Even if using ./b2 --debug-configuration, I can see the python include path well set
notice: [python-cfg] interpreter command: "/Library/Frameworks/Python.framework/Versions/2.7/bin/python" notice: [python-cfg] include path: "/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7" notice: [python-cfg] library path: "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config" "/Library/Frameworks/Python.framework/Versions/2.7/lib"
And here is the full message output but debug configuration. I can't really see anything bad
Both ~/user-config.jam and ./project-config.jam are trying to set up python. Just delete the using python ; line from project-config.jam and you should be good. (This is a bug in the bootstrap script, which I will fix.) In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Corentin Hamel
-
Steven Watanabe