singnet / das

1 stars 0 forks source link

docker-compose build fail #48

Open mjsduncan opened 2 months ago

mjsduncan commented 2 months ago
.../das$ git branch -vv
* main 96065d7 [origin/main] Merge pull request #141 from singnet/senna-fixes-5

appears to fail calling gcc to build couchbase wheel:

.../das$ docker-compose up -d
...
...
384.2       Launching build with env: {'PYTHON_PIP_VERSION': '23.0.1', 'HOME': '/root', 'GPG_KEY': 'E3FF2839C048B25C084DEBE9B26995E310250568', 'PYTHON_GET_PIP_URL': 'https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py', 'PATH': '/tmp/pip-build-env-rzuk8at4/overlay/bin:/tmp/pip-build-env-rzuk8at4/normal/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'LANG': 'C.UTF-8', 'PYTHON_VERSION': '3.9.19', 'PYTHON_SETUPTOOLS_VERSION': '58.1.0', 'PWD': '/app', 'PYTHON_GET_PIP_SHA256': 'dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9', 'PLAT': 'linux-x86_64', 'PIP_BUILD_TRACKER': '/tmp/pip-build-tracker-c20putk1', 'PYTHONNOUSERSITE': '1', 'PYTHONPATH': '/tmp/pip-build-env-rzuk8at4/site', 'PEP517_BUILD_BACKEND': 'setuptools.build_meta:__legacy__', 'CXXFLAGS': ' -Wno-strict-prototypes -fPIC -Wuninitialized -Wswitch -Werror -Wno-missing-braces -DPYCBC_LCB_API=0x02FF04 -DVERSION_INFO=\\"3.2.3\\"', 'CFLAGS': ' -Wno-strict-prototypes -fPIC -std=c11 -Wuninitialized -Wswitch -Werror -Wno-missing-braces -DPYCBC_LCB_API=0x02FF04'}, build_args: ['--config', 'Release', '--', '-j2'], cmake_args: ['-DPYCBC_LCB_API=0x02FF04', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-tqyo9fa8/couchbase_d73e3742d88e47b69f403c9d297010fe/build/lib.linux-x86_64-cpython-39/couchbase_core', '-DPYTHON_EXECUTABLE=/usr/local/bin/python', '-DPYTHON_INCLUDE_DIR=/usr/local/include/python3.9', '-DHYBRID_BUILD=TRUE', '-DPYTHON_LIBFILE=/usr/local/lib/libpython3.9.so', '-DPYTHON_LIBDIR=/usr/local/lib', '-DPYTHON_VERSION_EXACT=3.9', '-DCMAKE_BUILD_TYPE=RELEASE', '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON', '-DPYTHON_EXECUTABLE=/usr/local/bin/python']
384.2       Got platform linux
384.2       self.base is ['build', 'temp.linux-x86_64-cpython-39']
384.2       self.base is ['build', 'temp.linux-x86_64-cpython-39']
384.2       self.base is ['build', 'temp.linux-x86_64-cpython-39']
384.2       self.base is ['build', 'temp.linux-x86_64-cpython-39']
384.2       copying build/temp.linux-x86_64-cpython-39/install/lib/Release/libcouchbase.so.8 to /tmp/pip-install-tqyo9fa8/couchbase_d73e3742d88e47b69f403c9d297010fe/build/lib.linux-x86_64-cpython-39/couchbase_core/libcouchbase.so.8
384.2       success
384.2       self.base is ['build', 'temp.linux-x86_64-cpython-39']
384.2       self.base is ['build', 'temp.linux-x86_64-cpython-39']
384.2       self.base is ['build', 'temp.linux-x86_64-cpython-39']
384.2       self.base is ['build', 'temp.linux-x86_64-cpython-39']
384.2       copying build/temp.linux-x86_64-cpython-39/install/lib/Release/libcouchbase.so.8 to /tmp/pip-install-tqyo9fa8/couchbase_d73e3742d88e47b69f403c9d297010fe/couchbase_core/libcouchbase.so.8
384.2       success
384.2       self.base is ['build', 'temp.linux-x86_64-cpython-39']
384.2       self.base is ['build', 'temp.linux-x86_64-cpython-39']
384.2       error: command '/usr/bin/gcc' failed with exit code 1
384.2       [end of output]
384.2   
384.2   note: This error originates from a subprocess, and is likely not a problem with pip.
384.2   ERROR: Failed building wheel for couchbase
384.2   Building wheel for durationpy (setup.py): started
384.4   Building wheel for durationpy (setup.py): finished with status 'done'
384.4   Created wheel for durationpy: filename=durationpy-0.5-py3-none-any.whl size=2512 sha256=de6df5ff2a12c7ccbf47de730fde6c0a0b8a150e0d04bbc3da3686205cdcdc36
384.4   Stored in directory: /tmp/pip-ephem-wheel-cache-8y__iosy/wheels/bc/16/3f/24b88b08411d6866c581f9c024d049dbb89a8def6287efe448
384.5 Successfully built durationpy
384.5 Failed to build couchbase
384.5 ERROR: Could not build wheels for couchbase, which is required to install pyproject.toml-based projects
393.1 
393.1 [notice] A new release of pip is available: 23.0.1 -> 24.1.1
393.1 [notice] To update, run: pip install --upgrade pip
------
Dockerfile:13
--------------------
  11 |     WORKDIR /app
  12 |     
  13 | >>> RUN pip install --no-cache-dir -r requirements.txt
  14 |     
  15 |     CMD [ "bash" ]
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
ERROR: Service 'app' failed to build : Build failed