restc-cpp icon indicating copy to clipboard operation
restc-cpp copied to clipboard

conan failed installing dependencies

Open akshit-sharma opened this issue 5 years ago • 2 comments

Steps to reproduce:

git clone https://github.com/jgaa/restc-cpp.git && cd restc-cpp
mkdir build && cd build
conan install ../conan --build=missing # fails over here
cmake .. # won't reach here
make  # won't reach here
output shown right now

Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=9
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

conanfile.txt: Installing package
Requirements
    OpenSSL/1.1.0g@conan/stable from 'conan-center' - Cache
    boost/1.67.0@conan/stable from 'conan-center' - Cache
    bzip2/1.0.6@conan/stable from 'conan-center' - Cache
    rapidjson/1.1.0@bincrafters/stable from 'conan-center' - Cache
    zlib/1.2.11@conan/stable from 'conan-center' - Cache
Packages
    OpenSSL/1.1.0g@conan/stable:444d1eb978f872e0f5e5a1a07145f79c475221ca - Build
    boost/1.67.0@conan/stable:8888dbef82913d21e14f187ce1e8a6ca1b168301 - Build
    bzip2/1.0.6@conan/stable:da606cf731e334010b0bf6e85a2a6f891b9f36b0 - Cache
    rapidjson/1.1.0@bincrafters/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    zlib/1.2.11@conan/stable:6af9cc7cb931c5ad942174fd7838eb655717c709 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.6@conan/stable: Already installed!
[HOOK - conan-center.py] post_package_info(): ERROR: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: [''] (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H019)
[HOOK - conan-center.py] post_package_info(): ERROR: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files: ./lib/cmake/bzip2/BZip2Config-release.cmake; ./lib/cmake/bzip2/BZip2Config.cmake (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H019)
rapidjson/1.1.0@bincrafters/stable: Already installed!
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
zlib/1.2.11@conan/stable: Already installed!
[HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK
OpenSSL/1.1.0g@conan/stable: WARN: Build folder is dirty, removing it: /home/akshit/.conan/data/OpenSSL/1.1.0g/conan/stable/build/444d1eb978f872e0f5e5a1a07145f79c475221ca
OpenSSL/1.1.0g@conan/stable: Copying sources to build folder
OpenSSL/1.1.0g@conan/stable: Building your package in /home/akshit/.conan/data/OpenSSL/1.1.0g/conan/stable/build/444d1eb978f872e0f5e5a1a07145f79c475221ca
OpenSSL/1.1.0g@conan/stable: Generator txt created conanbuildinfo.txt
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK
OpenSSL/1.1.0g@conan/stable: Calling build()
OpenSSL/1.1.0g@conan/stable: =====> Options:  --with-zlib-include="/home/akshit/.conan/data/zlib/1.2.11/conan/stable/package/6af9cc7cb931c5ad942174fd7838eb655717c709/include" --with-zlib-lib="/home/akshit/.conan/data/zlib/1.2.11/conan/stable/package/6af9cc7cb931c5ad942174fd7838eb655717c709/lib"
OpenSSL/1.1.0g@conan/stable: ------RUNNING-------
bash -l -c -o pipefail "./Configure linux-x86_64 -m64 -O3 -s -fPIC --with-zlib-include=\"/home/akshit/.conan/data/zlib/1.2.11/conan/stable/package/6af9cc7cb931c5ad942174fd7838eb655717c709/include\" --with-zlib-lib=\"/home/akshit/.conan/data/zlib/1.2.11/conan/stable/package/6af9cc7cb931c5ad942174fd7838eb655717c709/lib\" | while read line; do printf \"%c\" .; done""glob" is not exported by the File::Glob module
Can't continue after import errors at ./Configure line 17.
BEGIN failed--compilation aborted at ./Configure line 17.
OpenSSL/1.1.0g@conan/stable: 
OpenSSL/1.1.0g@conan/stable: ERROR: Package '444d1eb978f872e0f5e5a1a07145f79c475221ca' build failed
OpenSSL/1.1.0g@conan/stable: WARN: Build folder /home/akshit/.conan/data/OpenSSL/1.1.0g/conan/stable/build/444d1eb978f872e0f5e5a1a07145f79c475221ca
ERROR: OpenSSL/1.1.0g@conan/stable: Error in build() method, line 83
        self.unix_build()
while calling 'unix_build', line 224
        self.run_in_src("./Configure %s %s" % (target, self._get_flags()), win_bash=win_bash)
while calling 'run_in_src', line 103
        self.run(command, win_bash=win_bash, output=buf)
        ConanException: Error 255 while executing bash -l -c -o pipefail "./Configure linux-x86_64 -m64 -O3 -s -fPIC --with-zlib-include=\"/home/akshit/.conan/data/zlib/1.2.11/conan/stable/package/6af9cc7cb931c5ad942174fd7838eb655717c709/include\" --with-zlib-lib=\"/home/akshit/.conan/data/zlib/1.2.11/conan/stable/package/6af9cc7cb931c5ad942174fd7838eb655717c709/lib\" | while read line; do printf \"%c\" .; done"

I can fix the conan dependencies and submit pull request if you are interested.

akshit-sharma avatar Jan 27 '21 19:01 akshit-sharma

I have not tested with conan for some time, as I'm not very familiar with it. Please submit a pull request if you have the time.

jgaa avatar Feb 18 '21 16:02 jgaa

Probably the same problem I was having: https://github.com/jgaa/restc-cpp/pull/148 should solve it.

ventsyv avatar Feb 22 '23 14:02 ventsyv