delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:content-type:content-transfer-encoding; q=dns; s=default; b=WpE | |
nES53KtHclsYkMvlbQCBTo92IspQHxykmDk1D4ZgHS4FIu6SaByz8dOe0ex/vslj | |
AV7/BhdrKMY7WTMx6ad4AFdNO5x35WLq/fCOjZBRyIlgyi5RYUFiF6kg2usk3WwW | |
pwmk7FElrK1WvvhoWw6JOiESxdcAlDPTy9vdPbnc= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:content-type:content-transfer-encoding; s=default; bh=uP3PMG+rG | |
5bOHEcPzHmC2vzlSb4=; b=Jm2Jm1r6VqpaO339k5IgVKHlV4+JTEdCSYgwd3WAx | |
cR3Uj9irTeJHf4yQlJ//jqiJn3m+xZ3W12/XmtSMVONw3+TwmimlQuXv5VwJMm/6 | |
cqhEQUFXhg8hFVLnG9rNOsWwdvDBWcWeyZhl7LKu3eQqhUTh6Lx/gzJwaNdfbIHU | |
HA= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=1.6 required=5.0 tests=BAYES_50,RDNS_NONE,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 |
X-HELO: | tura-home.de |
Message-ID: | <527A5BCA.5020801@tura-home.de> |
Date: | Wed, 06 Nov 2013 16:10:02 +0100 |
From: | Whitedwarf <whitedwarf AT tura-home DOT de> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | YouCompleteMe build fails: problem with LONG_BIT in pyport.h or ld missing python lib |
Hi all, I'm trying to install (i.e., mainly, build) the vim plugin YouCompleteMe in cygwin64 on a x86_64 machine and got stuck. The first error message was [ 11%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o In file included from /usr/include/python2.7/Python.h:58:0, from /home/matu_gr/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/wrap_python.hpp:142, from /home/matu_gr/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/detail/prefix.hpp:13, from /home/matu_gr/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/handle.hpp:8, from /home/matu_gr/.vim/bundle/YouCompleteMe/cpp/BoostParts/boost/python/converter/arg_to_python_base.hpp:7, from /home/matu_gr/.vim/bundle/YouCompleteMe/cpp/BoostParts/libs/python/src/converter/arg_to_python_base.cpp:6: /usr/include/python2.7/pyport.h:886:2: Fehler: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." ^ BoostParts/CMakeFiles/BoostParts.dir/build.make:402: recipe for target 'BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o' failed make[3]: *** [BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o] Error 1 CMakeFiles/Makefile2:78: recipe for target 'BoostParts/CMakeFiles/BoostParts.dir/all' failed make[2]: *** [BoostParts/CMakeFiles/BoostParts.dir/all] Error 2 CMakeFiles/Makefile2:212: recipe for target 'ycm/CMakeFiles/ycm_support_libs.dir/rule' failed make[1]: *** [ycm/CMakeFiles/ycm_support_libs.dir/rule] Error 2 Makefile:148: recipe for target 'ycm_support_libs' failed make: *** [ycm_support_libs] Error 2 I've tried to work around with (as mentioned in https://github.com/Valloric/YouCompleteMe/issues/66 ) -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.dylib but this did not help. (CMake configuration reports the same libs if not provided explicitly anyway.) Then I've tried to reset the compilers CMake uses: using -DCMAKE_C_COMPILER and -DCMAKE_CXX_COMPILER, I've set the compilers first to /usr/bin/x86_64-pc-cygwin-gcc and /usr/bin/x86_64-pc-cygwin-g++, respectively; then to /usr/bin/i686-pc-cygwin-gcc and /usr/bin/i686-pc-cygwin-g++. But now I get: Linking CXX shared library ycm_core.pyd /usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lpython2.7 collect2: Fehler: ld gab 1 als Ende-Status zurück ycm/CMakeFiles/ycm_core.dir/build.make:390: recipe for target 'ycm/ycm_core.pyd' failed make[3]: *** [ycm/ycm_core.pyd] Error 1 CMakeFiles/Makefile2:168: recipe for target 'ycm/CMakeFiles/ycm_core.dir/all' failed make[2]: *** [ycm/CMakeFiles/ycm_core.dir/all] Error 2 CMakeFiles/Makefile2:212: recipe for target 'ycm/CMakeFiles/ycm_support_libs.dir/rule' failed make[1]: *** [ycm/CMakeFiles/ycm_support_libs.dir/rule] Error 2 Makefile:148: recipe for target 'ycm_support_libs' failed make: *** [ycm_support_libs] Error 2 Do you have any ideas or experience on how to fix this? Best regards, whitedwarf System/versions: win7-64, cygwin64 with cygwin-gcc installed in 32- and 64-bit versions, https://github.com/Valloric/YouCompleteMe -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |