{"action":"created","issue":{"url":"https://api.github.com/repos/bincrafters/community/issues/117","repository_url":"https://api.github.com/repos/bincrafters/community","labels_url":"https://api.github.com/repos/bincrafters/community/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/bincrafters/community/issues/117/comments","events_url":"https://api.github.com/repos/bincrafters/community/issues/117/events","html_url":"https://github.com/bincrafters/community/issues/117","id":297224728,"node_id":"MDU6SXNzdWUyOTcyMjQ3Mjg=","number":117,"title":"Boost Python 1.66.0: building cannot find -lpython27 or -lpython36 on Msys2","user":{"login":"ArekPiekarz","id":3698606,"node_id":"MDQ6VXNlcjM2OTg2MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/3698606?v=4","gravatar_id":"","url":"https://api.github.com/users/ArekPiekarz","html_url":"https://github.com/ArekPiekarz","followers_url":"https://api.github.com/users/ArekPiekarz/followers","following_url":"https://api.github.com/users/ArekPiekarz/following{/other_user}","gists_url":"https://api.github.com/users/ArekPiekarz/gists{/gist_id}","starred_url":"https://api.github.com/users/ArekPiekarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArekPiekarz/subscriptions","organizations_url":"https://api.github.com/users/ArekPiekarz/orgs","repos_url":"https://api.github.com/users/ArekPiekarz/repos","events_url":"https://api.github.com/users/ArekPiekarz/events{/privacy}","received_events_url":"https://api.github.com/users/ArekPiekarz/received_events","type":"User","site_admin":false},"labels":[{"id":760639719,"node_id":"MDU6TGFiZWw3NjA2Mzk3MTk=","url":"https://api.github.com/repos/bincrafters/community/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"SSE4","id":870236,"node_id":"MDQ6VXNlcjg3MDIzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/870236?v=4","gravatar_id":"","url":"https://api.github.com/users/SSE4","html_url":"https://github.com/SSE4","followers_url":"https://api.github.com/users/SSE4/followers","following_url":"https://api.github.com/users/SSE4/following{/other_user}","gists_url":"https://api.github.com/users/SSE4/gists{/gist_id}","starred_url":"https://api.github.com/users/SSE4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SSE4/subscriptions","organizations_url":"https://api.github.com/users/SSE4/orgs","repos_url":"https://api.github.com/users/SSE4/repos","events_url":"https://api.github.com/users/SSE4/events{/privacy}","received_events_url":"https://api.github.com/users/SSE4/received_events","type":"User","site_admin":false},"assignees":[{"login":"SSE4","id":870236,"node_id":"MDQ6VXNlcjg3MDIzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/870236?v=4","gravatar_id":"","url":"https://api.github.com/users/SSE4","html_url":"https://github.com/SSE4","followers_url":"https://api.github.com/users/SSE4/followers","following_url":"https://api.github.com/users/SSE4/following{/other_user}","gists_url":"https://api.github.com/users/SSE4/gists{/gist_id}","starred_url":"https://api.github.com/users/SSE4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SSE4/subscriptions","organizations_url":"https://api.github.com/users/SSE4/orgs","repos_url":"https://api.github.com/users/SSE4/repos","events_url":"https://api.github.com/users/SSE4/events{/privacy}","received_events_url":"https://api.github.com/users/SSE4/received_events","type":"User","site_admin":false},{"login":"grafikrobot","id":2998253,"node_id":"MDQ6VXNlcjI5OTgyNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/2998253?v=4","gravatar_id":"","url":"https://api.github.com/users/grafikrobot","html_url":"https://github.com/grafikrobot","followers_url":"https://api.github.com/users/grafikrobot/followers","following_url":"https://api.github.com/users/grafikrobot/following{/other_user}","gists_url":"https://api.github.com/users/grafikrobot/gists{/gist_id}","starred_url":"https://api.github.com/users/grafikrobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grafikrobot/subscriptions","organizations_url":"https://api.github.com/users/grafikrobot/orgs","repos_url":"https://api.github.com/users/grafikrobot/repos","events_url":"https://api.github.com/users/grafikrobot/events{/privacy}","received_events_url":"https://api.github.com/users/grafikrobot/received_events","type":"User","site_admin":false},{"login":"sigmoidal","id":6106332,"node_id":"MDQ6VXNlcjYxMDYzMzI=","avatar_url":"https://avatars2.githubusercontent.com/u/6106332?v=4","gravatar_id":"","url":"https://api.github.com/users/sigmoidal","html_url":"https://github.com/sigmoidal","followers_url":"https://api.github.com/users/sigmoidal/followers","following_url":"https://api.github.com/users/sigmoidal/following{/other_user}","gists_url":"https://api.github.com/users/sigmoidal/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmoidal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmoidal/subscriptions","organizations_url":"https://api.github.com/users/sigmoidal/orgs","repos_url":"https://api.github.com/users/sigmoidal/repos","events_url":"https://api.github.com/users/sigmoidal/events{/privacy}","received_events_url":"https://api.github.com/users/sigmoidal/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2018-02-14T19:55:03Z","updated_at":"2018-08-23T16:14:16Z","closed_at":null,"author_association":"NONE","body":"### Description of Problem\r\n\r\nBuilding Boost Python on Msys2 results in a linking error, where it cannot find -lpython27 or -lpython36.\r\n\r\nPackages with Python 2 and 3 in Msys2 respectively contain files `libpython2.7.dll.a` and `libpython3.6.dll.a`.\r\nA workaround for now is to create a symlink without the dot between the numbers:\r\n```\r\ncd /mingw64/lib/\r\nln -s libpython2.7.dll.a libpython27.dll.a\r\n# and/or\r\nln -s libpython3.6.dll.a libpython36.dll.a\r\n```\r\n\r\n### Package Details\r\n* Package Name/Version: **boost_python/1.66.0@bincrafters/stable**\r\n* Operating System: **Windows 10 x64**\r\n* Compiler+version: **gcc-7.3.0 x64**\r\n* Conan version: **1.0.4**\r\n\r\n### Steps to reproduce\r\nOn Msys2 install Python 2 or 3, for instance x64 version:\r\n`pacboy sync python2:x`\r\nor\r\n`pacboy sync python3:x`\r\n\r\nCreate project folder:\r\n```\r\nmkdir conan-boost-python-test\r\ncd conan-boost-python-test\r\n```\r\n\r\nCreate conanfile.txt containing:\r\n```\r\n[requires]\r\nboost_python/1.66.0@bincrafters/stable\r\n\r\n[generators]\r\ncmake\r\n```\r\nCreate CMakeLists.txt with:\r\n```\r\nproject(conan-boost-python-test)\r\ncmake_minimum_required(VERSION 3.0)\r\nadd_definitions(\"-std=c++11\")\r\n\r\ninclude(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)\r\nconan_basic_setup()\r\n\r\nadd_library(${PROJECT} SHARED main.cpp)\r\ntarget_link_libraries(${PROJECT} ${CONAN_LIBS})\r\n```\r\nCreate main.cpp with a simple example taken from http://www.boost.org/doc/libs/1_66_0/libs/python/doc/html/tutorial/index.html:\r\n```\r\n#include <boost/python.hpp>\r\n\r\nchar const* greet()\r\n{\r\n   return \"hello, world\";\r\n}\r\n\r\nBOOST_PYTHON_MODULE(hello_ext)\r\n{\r\n    using namespace boost::python;\r\n    def(\"greet\", greet);\r\n}\r\n```\r\n\r\nBuild the dependencies:\r\n```\r\nmkdir build\r\ncd build\r\nconan install .. --build missing\r\n```\r\n### Expected result\r\nBoost Python should be built correctly.\r\n\r\n### Actual result\r\nBuilding Boost Python fails with:\r\n```\r\ngcc.link.dll bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\libboost_python.dll.a\r\nD:/app/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpython27\r\ncollect2.exe: error: ld returned 1 exit status\r\n\r\n    \"g++\" -L\"D:\\app\\msys64\\mingw64\\libs\" -Wl,-rpath -Wl,\"/D:/app/msys64/mingw64\" -Wl,-rpath -Wl,\"/D:/app/msys64/mingw64/libs\" \"-Wl,--out-implib,bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\libboost_python.dll.a\" -o \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\libboost_python.dll\" -Wl,-h -Wl,libboost_python.dll -shared -Wl,--start-group \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\list.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\long.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\dict.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\tuple.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\str.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\slice.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\converter\\from_python.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\converter\\registry.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\converter\\type_id.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object\\enum.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object\\class.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object\\function.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object\\inheritance.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object\\life_support.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object\\pickle_support.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\errors.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\module.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\converter\\builtin_converters.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\converter\\arg_to_python_base.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object\\iterator.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object\\stl_iterator.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object_protocol.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object_operators.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\wrapper.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\import.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\exec.o\" \"bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\object\\function_doc_signature.o\"  -Wl,-Bstatic  -Wl,-Bdynamic -lpython27 -Wl,--end-group -g -mthreads -m64 -std=c++11\r\n\r\n...failed gcc.link.dll bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\libboost_python.dll.a bin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0\\libboost_python.dll...\r\n...skipped <ppython\\lib>libboost_python.dll.a for lack of <pbin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0>libboost_python.dll.a...\r\n...skipped <ppython\\lib>libboost_python.dll for lack of <pbin\\python\\build\\3e3f2f3655644799d26375053fc0b3a0>libboost_python.dll...\r\n...failed updating 2 targets...\r\n...skipped 2 targets...\r\n...updated 38 targets...\r\nboost_python/1.66.0@bincrafters/stable:\r\nboost_python/1.66.0@bincrafters/stable: ERROR: Package 'fb1e48e0e2556ee4ac7fe311e918fa49ead4821b' build failed\r\nboost_python/1.66.0@bincrafters/stable: WARN: Build folder C:/.conan/fj7bv6zf/1\r\nERROR: boost_python/1.66.0@bincrafters/stable: Error in build() method, line 135\r\n        boost_package_tools.build(self)\r\n        ConanException: Error 1 while executing b2 -j8 -a --hash=yes --debug-configuration --layout=system  include=graph/include include=multi_index/include include=parameter/include \r\n```include=property_map/include include=serialization/include include=unordered/include python-build\r\n```\r\n### Full logs\r\n[log.txt](https://github.com/bincrafters/community/files/1725400/log.txt)\r\n\r\n### Conan profile\r\n```\r\n$ cat /c/Users/Fazer/.conan/profiles/default\r\n[build_requires]\r\n[settings]\r\nos=Windows\r\narch=x86_64\r\ncompiler=gcc\r\ncompiler.version=7\r\ncompiler.libcxx=libstdc++11\r\nbuild_type=Debug\r\narch_build=x86_64\r\nos_build=Windows\r\n[options]\r\n*:shared=True\r\n[env]\r\n```"},"comment":{"url":"https://api.github.com/repos/bincrafters/community/issues/comments/415475802","html_url":"https://github.com/bincrafters/community/issues/117#issuecomment-415475802","issue_url":"https://api.github.com/repos/bincrafters/community/issues/117","id":415475802,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTQ3NTgwMg==","user":{"login":"SSE4","id":870236,"node_id":"MDQ6VXNlcjg3MDIzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/870236?v=4","gravatar_id":"","url":"https://api.github.com/users/SSE4","html_url":"https://github.com/SSE4","followers_url":"https://api.github.com/users/SSE4/followers","following_url":"https://api.github.com/users/SSE4/following{/other_user}","gists_url":"https://api.github.com/users/SSE4/gists{/gist_id}","starred_url":"https://api.github.com/users/SSE4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SSE4/subscriptions","organizations_url":"https://api.github.com/users/SSE4/orgs","repos_url":"https://api.github.com/users/SSE4/repos","events_url":"https://api.github.com/users/SSE4/events{/privacy}","received_events_url":"https://api.github.com/users/SSE4/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T16:14:16Z","updated_at":"2018-08-23T16:14:16Z","author_association":"MEMBER","body":"okay, this one was trivial - MSYS2 has updated to python 3.7, so I've edited your **conanfile.txt**:\r\n```\r\ncat > conanfile.txt\r\n[requires]\r\nboost_python/1.66.0@bincrafters/testing\r\n\r\n[options]\r\npython_dev_config:python=python3\r\nboost_python:python_version=3.6\r\n\r\n[generators]\r\ncmake\r\n```\r\n\r\nafter that, I've got a new error:\r\n```\r\npython\\src\\converter\\builtin_converters.cpp:51:35: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]\r\n       return PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0;\r\n\r\n    \"g++\"   -O0 -fno-inline -Wall -g -mthreads -m64 -std=c++11 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -D_GLIBCXX_USE_CXX11_ABI=1  -I\"C:\\CONAN~1\\078a6vqf\\1\\foreach\\include\" -I\"C:\\CONAN~1\\0umg93lz\\1\\THROW_~1\\include\" -I\"C:\\CONAN~1\\10xo_20u\\1\\move\\include\" -I\"C:\\CONAN~1\\3bci19gn\\1\\tuple\\include\" -I\"C:\\CONAN~1\\6yuh3bec\\1\\assert\\include\" -I\"C:\\CONAN~1\\8rq5axd0\\1\\array\\include\" -I\"C:\\CONAN~1\\93cxkmr8\\1\\config\\include\" -I\"C:\\CONAN~1\\9frzlhjy\\1\\SMART_~1\\include\" -I\"C:\\CONAN~1\\bhrnds35\\1\\NUMERI~1\\include\" -I\"C:\\CONAN~1\\e983ews4\\1\\regex\\include\" -I\"C:\\CONAN~1\\eb9p62xd\\1\\TYPE_T~1\\include\" -I\"C:\\CONAN~1\\jnrjd99u\\1\\STATIC~1\\include\" -I\"C:\\CONAN~1\\m3m9nbj_\\1\\integer\\include\" -I\"C:\\CONAN~1\\mq8dyax7\\1\\range\\include\" -I\"C:\\CONAN~1\\npw74thd\\1\\lambda\\include\" -I\"C:\\CONAN~1\\q769djgx\\1\\bind\\include\" -I\"C:\\CONAN~1\\qp9uzde7\\1\\CONTAI~1\\include\" -I\"C:\\CONAN~1\\s3qhuw2q\\1\\LEXICA~1\\include\" -I\"C:\\CONAN~1\\s3qhuw2q\\1\\math\\include\" -I\"C:\\CONAN~1\\s65a9qgp\\1\\PREPRO~1\\include\" -I\"C:\\CONAN~1\\v43j1j3c\\1\\INTRUS~1\\include\" -I\"C:\\CONAN~1\\weywdw0g\\1\\atomic\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\CONCEP~1\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\CONVER~1\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\detail\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\function\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\FUNCTI~1\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\FUNCTI~2\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\fusion\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\iterator\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\mpl\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\optional\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\TYPE_I~1\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\typeof\\include\" -I\"C:\\CONAN~1\\xh_ka1j2\\1\\utility\\include\" -I\"C:\\CONAN~1\\z916unoi\\1\\predef\\include\" -I\"C:\\CONAN~1\\zuiy43p8\\1\\core\\include\" -I\"C:\\MSYS64~1\\mingw64\\include\\python3.7m\" -I\"graph\\include\" -I\"multi_index\\include\" -I\"parameter\\include\" -I\"property_map\\include\" -I\"python\\include\" -I\"serialization\\include\" -I\"unordered\\include\" -c -o \"bin\\python\\build\\540357c0269b1fe8294ca49f2ddb13be\\converter\\builtin_converters.o\" \"python\\src\\converter\\builtin_converters.cpp\"\r\n\r\n...failed gcc.compile.c++ bin\\python\\build\\540357c0269b1fe8294ca49f2ddb13be\\converter\\builtin_converters.o...\r\n```\r\nlooking..."}}
{"actor":{"display_login":"SSE4"}}