crossenv
crossenv copied to clipboard
Wrong compiler when cross-compile package
I'm trying to cross-compile a package for openwrt (python3.7, cpu mips).
This is what I did to set up the environment:
cd build-mipsel/
mkdir build-python host-python wheels
tar zxvf Python-3.7.13.tgz
mv Python-3.7.13 Python-3.7.13-build
tar zxvf Python-3.7.13.tgz
mv Python-3.7.13 Python-3.7.13-host
cd Python-3.7.13-build/
./configure --prefix=$(realpath ../build-python/)
make -j
make install
cd ../Python-3.7.13-host/
PATH=$(realpath ../build-python/)/bin:$PATH ./configure --prefix=$(realpath ../host-python/) --build=x86_64-pc-linux-gnu --host=mipsel-linux-gnu --without-ensurepip ac_cv_buggy_getaddrinfo=no ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no
PATH=$(realpath ../build-python/)/bin:$PATH make -j
PATH=$(realpath ../build-python/)/bin:$PATH make install
cd ..
build-python/bin/python3 -m crossenv host-python/bin/python3 cross_venv
. ./cross_venv/bin/activate
sudo apt install cmake ninja-build
build-python -m pip install -U pip
build-python -m pip install -U setuptools cmake wheel ninja
pip install -U pip
pip install -U setuptools wheel
pip -v wheel c104 -w wheels/ --no-build-isolation
The last command gives the following errors:
Collecting c104
Using cached c104-2.0.2.tar.gz (1.5 MB)
Preparing metadata (pyproject.toml): started
Running command Preparing metadata (pyproject.toml)
running dist_info
creating /tmp/pip-modern-metadata-rup88la6/c104.egg-info
writing /tmp/pip-modern-metadata-rup88la6/c104.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-rup88la6/c104.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-modern-metadata-rup88la6/c104.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-rup88la6/c104.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-modern-metadata-rup88la6/c104.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'src/main_client.cpp'
warning: no previously-included files found matching 'src/main_server.cpp'
warning: no previously-included files matching '**/.*' found anywhere in distribution
no previously-included directories found matching '**/tests'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-modern-metadata-rup88la6/c104.egg-info/SOURCES.txt'
creating '/tmp/pip-modern-metadata-rup88la6/c104-2.0.2.dist-info'
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: c104
Building wheel for c104 (pyproject.toml): started
Running command Building wheel for c104 (pyproject.toml)
running bdist_wheel
running build
running build_ext
-- The CXX compiler identification is GNU 13.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Processor: x86_64
-- ModulePath:
-- Add Pybind11
CMake Deprecation Warning at depends/pybind11/CMakeLists.txt:13 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- pybind11 v2.13.5
-- Found Python: /home/install/build-mipsel/cross_venv/cross/bin/python3 (found suitable version "3.7.13", minimum required is "3.7") found components: Interpreter Development.Module Development.Embed
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test ATOMIC_INT64_IS_BUILTIN
-- Performing Test ATOMIC_INT64_IS_BUILTIN - Success
-- Patch lib60870
-- > Patch already applied or cannot be applied
-- Add lib60870
-- > copy mbedtls
CMake Deprecation Warning at depends/lib60870/lib60870-C/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Performing Test SUPPORT_REDUNDANT_DECLS
-- Performing Test SUPPORT_REDUNDANT_DECLS - Success
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Skip catch2 and tests
-- Configuring done (2.3s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/build/temp.linux-mipsel-cpython-37/c104
[1/137] Building CXX object CMakeFiles/c104.dir/src/enums.cpp.o
[2/137] Building CXX object CMakeFiles/c104.dir/src/remote/Helper.cpp.o
FAILED: CMakeFiles/c104.dir/src/remote/Helper.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/remote/Helper.cpp.o -MF CMakeFiles/c104.dir/src/remote/Helper.cpp.o.d -o CMakeFiles/c104.dir/src/remote/Helper.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/Helper.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/Helper.h:50,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/Helper.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[3/137] Building CXX object CMakeFiles/c104.dir/src/remote/TransportSecurity.cpp.o
FAILED: CMakeFiles/c104.dir/src/remote/TransportSecurity.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/remote/TransportSecurity.cpp.o -MF CMakeFiles/c104.dir/src/remote/TransportSecurity.cpp.o.d -o CMakeFiles/c104.dir/src/remote/TransportSecurity.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/TransportSecurity.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.h:49,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/TransportSecurity.h:36,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/TransportSecurity.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[4/137] Building CXX object CMakeFiles/c104.dir/src/remote/message/OutgoingMessage.cpp.o
FAILED: CMakeFiles/c104.dir/src/remote/message/OutgoingMessage.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/remote/message/OutgoingMessage.cpp.o -MF CMakeFiles/c104.dir/src/remote/message/OutgoingMessage.cpp.o.d -o CMakeFiles/c104.dir/src/remote/message/OutgoingMessage.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/OutgoingMessage.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.h:49,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/ScopedGilRelease.h:38,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/GilAwareMutex.h:40,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/IMessageInterface.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/OutgoingMessage.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/OutgoingMessage.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[5/137] Building CXX object CMakeFiles/c104.dir/src/remote/message/PointCommand.cpp.o
FAILED: CMakeFiles/c104.dir/src/remote/message/PointCommand.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/remote/message/PointCommand.cpp.o -MF CMakeFiles/c104.dir/src/remote/message/PointCommand.cpp.o.d -o CMakeFiles/c104.dir/src/remote/message/PointCommand.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/PointCommand.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.h:49,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/ScopedGilRelease.h:38,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/GilAwareMutex.h:40,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/IMessageInterface.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/OutgoingMessage.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/PointCommand.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/PointCommand.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[6/137] Building CXX object CMakeFiles/c104.dir/src/remote/message/PointMessage.cpp.o
FAILED: CMakeFiles/c104.dir/src/remote/message/PointMessage.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/remote/message/PointMessage.cpp.o -MF CMakeFiles/c104.dir/src/remote/message/PointMessage.cpp.o.d -o CMakeFiles/c104.dir/src/remote/message/PointMessage.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/PointMessage.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.h:49,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/ScopedGilRelease.h:38,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/GilAwareMutex.h:40,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/IMessageInterface.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/OutgoingMessage.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/PointMessage.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/PointMessage.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[7/137] Building CXX object CMakeFiles/c104.dir/src/object/Information.cpp.o
FAILED: CMakeFiles/c104.dir/src/object/Information.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/object/Information.cpp.o -MF CMakeFiles/c104.dir/src/object/Information.cpp.o.d -o CMakeFiles/c104.dir/src/object/Information.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/object/Information.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.h:49,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/object/Information.h:41,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/object/Information.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[8/137] Building CXX object CMakeFiles/c104.dir/src/remote/message/IncomingMessage.cpp.o
FAILED: CMakeFiles/c104.dir/src/remote/message/IncomingMessage.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/remote/message/IncomingMessage.cpp.o -MF CMakeFiles/c104.dir/src/remote/message/IncomingMessage.cpp.o.d -o CMakeFiles/c104.dir/src/remote/message/IncomingMessage.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/IncomingMessage.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.h:49,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/ScopedGilRelease.h:38,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/GilAwareMutex.h:40,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/IMessageInterface.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/IncomingMessage.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/message/IncomingMessage.cpp:33:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[9/137] Building CXX object CMakeFiles/c104.dir/src/types.cpp.o
FAILED: CMakeFiles/c104.dir/src/types.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/types.cpp.o -MF CMakeFiles/c104.dir/src/types.cpp.o.d -o CMakeFiles/c104.dir/src/types.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.h:49,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[10/137] Building CXX object CMakeFiles/c104.dir/src/Client.cpp.o
FAILED: CMakeFiles/c104.dir/src/Client.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/Client.cpp.o -MF CMakeFiles/c104.dir/src/Client.cpp.o.d -o CMakeFiles/c104.dir/src/Client.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/Client.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.h:49,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/Client.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/Client.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[11/137] Building CXX object CMakeFiles/c104.dir/src/Server.cpp.o
FAILED: CMakeFiles/c104.dir/src/Server.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/Server.cpp.o -MF CMakeFiles/c104.dir/src/Server.cpp.o.d -o CMakeFiles/c104.dir/src/Server.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/Server.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/Helper.h:50,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/Server.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/Server.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[12/137] Building CXX object CMakeFiles/c104.dir/src/remote/Connection.cpp.o
FAILED: CMakeFiles/c104.dir/src/remote/Connection.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/remote/Connection.cpp.o -MF CMakeFiles/c104.dir/src/remote/Connection.cpp.o.d -o CMakeFiles/c104.dir/src/remote/Connection.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/Connection.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.h:49,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/ScopedGilRelease.h:38,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/GilAwareMutex.h:40,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/Callback.h:37,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/Connection.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/remote/Connection.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
[13/137] Building CXX object CMakeFiles/c104.dir/src/object/DataPoint.cpp.o
FAILED: CMakeFiles/c104.dir/src/object/DataPoint.cpp.o
/usr/bin/c++ -DVERSION_INFO=\"2.0.2\" -Dc104_EXPORTS -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/inc/api -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/hal/inc -I/tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/lib60870/lib60870-C/src/common/inc -isystem /home/install/build-mipsel/host-python/include/python3.7m -isystem /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include -O3 -DNDEBUG -std=gnu++17 -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -Os -MD -MT CMakeFiles/c104.dir/src/object/DataPoint.cpp.o -MF CMakeFiles/c104.dir/src/object/DataPoint.cpp.o.d -o CMakeFiles/c104.dir/src/object/DataPoint.cpp.o -c /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/object/DataPoint.cpp
In file included from /home/install/build-mipsel/host-python/include/python3.7m/Python.h:63,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/common.h:274,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/attr.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/detail/class.h:12,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/depends/pybind11/include/pybind11/pybind11.h:13,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/types.h:49,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/ScopedGilRelease.h:38,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/GilAwareMutex.h:40,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/module/Callback.h:37,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/object/DataPoint.h:35,
from /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109/src/object/DataPoint.cpp:32:
/home/install/build-mipsel/host-python/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
699 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 252, in build_wheel
metadata_directory)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/build_meta.py", line 417, in build_wheel
wheel_directory, config_settings)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/build_meta.py", line 401, in _build_with_temp_dir
self.run_setup()
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 130, in <module>
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 368, in run
self.run_command("build")
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "<string>", line 125, in build_extension
File "/home/install/build-mipsel/build-python/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'c104']' returned non-zero exit status 1.
error: subprocess-exited-with-error
× Building wheel for c104 (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/install/build-mipsel/cross_venv/cross/bin/python3 /home/install/build-mipsel/cross_venv/build/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpuvgj9pne
cwd: /tmp/pip-wheel-22qcb863/c104_c8795924102c4144a1f87874b32c8109
Building wheel for c104 (pyproject.toml): finished with status 'error'
ERROR: Failed building wheel for c104
Failed to build c104
ERROR: Failed to build one or more wheels
Note that the compiler is specified as /usr/bin/c++, instead of the correct one. Perhaps this gives an error due to the bitness.
However, if I run the command with the correct compiler: CC=mipsel-linux-gnu-gcc CXX=mipsel-linux-gnu-g++ pip -v wheel c104 --no-build-isolation, the problem goes away.
Perhaps I did something wrong or is this a bug in crossenv?