mbientlab / PyWarble

MetaWear Python SDK - Linux / Windows - Wrapper for Warble C library
https://mbientlab.com
Other
6 stars 2 forks source link

g++ build error on Ubuntu 20.04 #10

Closed tekhnee closed 3 years ago

tekhnee commented 3 years ago

Log follows. Advice would be much appreciated.

``` ❯ pip install warble --verbose Using pip 20.2.4 from /home/myself/.pyenv/versions/3.6.12/envs/project/lib/python3.6/site-packages/pip (python 3.6) Non-user install because user site-packages disabled Created temporary directory: /tmp/pip-ephem-wheel-cache-_eoch6l8 Created temporary directory: /tmp/pip-req-tracker-bi_ehpv1 Initialized build tracking at /tmp/pip-req-tracker-bi_ehpv1 Created build tracker: /tmp/pip-req-tracker-bi_ehpv1 Entered build tracker: /tmp/pip-req-tracker-bi_ehpv1 Created temporary directory: /tmp/pip-install-jm8yzv3k 1 location(s) to search for versions of warble: * https://pypi.org/simple/warble/ Fetching project page and analyzing links: https://pypi.org/simple/warble/ Getting page https://pypi.org/simple/warble/ Found index url https://pypi.org/simple Looking up "https://pypi.org/simple/warble/" in the cache Request header has "max_age" as 0, cache bypassed Starting new HTTPS connection (1): pypi.org:443 https://pypi.org:443 "GET /simple/warble/ HTTP/1.1" 304 0 Found link https://files.pythonhosted.org/packages/fe/f1/857750727a1e0f640f658fb3a61ad4d1b920f22a45ad0825093508ff57d3/warble-1.0.0.tar.gz#sha256=3f176e16ebce58e224ed2f56de3405a43311baf2cc302fb9dffb96d4724c5121 (from https://pypi.org/simple/warble/), version: 1.0.0 Found link https://files.pythonhosted.org/packages/07/6a/bd90b1258fdde100bbc9e5b0740c6c2c9b4c7825d2f808dc6ff8c8487862/warble-1.0.2.tar.gz#sha256=687558a38d4a2bdb04bd32609add8a4f6bc5b2ee5154b17a46a31880c382713e (from https://pypi.org/simple/warble/), version: 1.0.2 Found link https://files.pythonhosted.org/packages/e5/b4/fe5235a7a8b36085356ef93b48aee1dee095f39e412b9f56ffa1c5b30bb3/warble-1.0.6.tar.gz#sha256=d3840077e9a56b44879e7463287c030cf382569c222f372c46e04123685863fd (from https://pypi.org/simple/warble/) (requires-python:>=2.7), version: 1.0.6 Found link https://files.pythonhosted.org/packages/be/1c/ea39f895b5d913952e3b1d486a731151088b123d270620742636ad19f7e2/warble-1.0.7.tar.gz#sha256=27db3e9ec7c0be3897b1de09e6f1a7de6a1021d6a25dd1740dc12599b826a814 (from https://pypi.org/simple/warble/) (requires-python:>=2.7), version: 1.0.7 Found link https://files.pythonhosted.org/packages/03/02/accca5d97dc2504b0ca9f2e16b2bc1a21ce98e6ad026e6a8e1976351a6c6/warble-1.0.10.tar.gz#sha256=61fc06f880f5c69664e690b379a3cdd2b1de79732c309dbf1c9dd0b3b17c6c94 (from https://pypi.org/simple/warble/) (requires-python:>=2.7), version: 1.0.10 Found link https://files.pythonhosted.org/packages/84/6b/b46e72840edad09c1effc01f20e31eb7e5281ac16415bebfdf267c70c05c/warble-1.1.0.tar.gz#sha256=81625638c802f7378be33e4beb8430eb4acc3595a0b2e9aad71471c266856590 (from https://pypi.org/simple/warble/) (requires-python:>=2.7), version: 1.1.0 Found link https://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz#sha256=e831ca465f1a6ff60a071f707fd847c282248d7268795816e121d530d52b3ebe (from https://pypi.org/simple/warble/) (requires-python:>=2.7), version: 1.2.0 Given no hashes to check 7 links for project 'warble': discarding no candidates Using version 1.2.0 (newest of versions: 1.0.0, 1.0.2, 1.0.6, 1.0.7, 1.0.10, 1.1.0, 1.2.0) Collecting warble Created temporary directory: /tmp/pip-unpack-v7hzcrvt Looking up "https://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz" in the cache Current age based on date: 69 Ignoring unknown cache-control directive: immutable Freshness lifetime from max-age: 365000000 The response is "fresh", returning cached response 365000000 > 69 Using cached warble-1.2.0.tar.gz (1.7 MB) Added warble from https://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz#sha256=e831ca465f1a6ff60a071f707fd847c282248d7268795816e121d530d52b3ebe to build tracker '/tmp/pip-req-tracker-bi_ehpv1' Running setup.py (path:/tmp/pip-install-jm8yzv3k/warble/setup.py) egg_info for package warble Created temporary directory: /tmp/pip-pip-egg-info-b114wnil Running command python setup.py egg_info running egg_info creating /tmp/pip-pip-egg-info-b114wnil/warble.egg-info writing /tmp/pip-pip-egg-info-b114wnil/warble.egg-info/PKG-INFO writing dependency_links to /tmp/pip-pip-egg-info-b114wnil/warble.egg-info/dependency_links.txt writing top-level names to /tmp/pip-pip-egg-info-b114wnil/warble.egg-info/top_level.txt writing manifest file '/tmp/pip-pip-egg-info-b114wnil/warble.egg-info/SOURCES.txt' reading manifest file '/tmp/pip-pip-egg-info-b114wnil/warble.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'clibs/warble/build' no previously-included directories found matching 'clibs/warble/dist' no previously-included directories found matching 'clibs/warble/vs2017/*/Debug' no previously-included directories found matching 'clibs/warble/vs2017/*/Release' no previously-included directories found matching 'clibs/warble/vs2017/*/x64' no previously-included directories found matching 'clibs/warble/vs2017/.vs' warning: no previously-included files matching 'config.log' found under directory 'clibs/warble/deps/libblepp' warning: no previously-included files matching 'config.status' found under directory 'clibs/warble/deps/libblepp' warning: no previously-included files matching 'generated' found under directory 'clibs/warble/deps/libblepp' warning: no previously-included files matching 'libblepp.pc' found under directory 'clibs/warble/deps/libblepp' warning: no previously-included files matching 'Makefile' found under directory 'clibs/warble/deps/libblepp' warning: no previously-included files matching '*.git' found anywhere in distribution warning: no previously-included files matching '*.gitmodules' found anywhere in distribution warning: no previously-included files matching '*.gitignore' found anywhere in distribution warning: no previously-included files matching '__pycache__' found anywhere in distribution warning: no previously-included files matching '*.py[co]' found anywhere in distribution warning: no previously-included files matching '*.d' found anywhere in distribution warning: no previously-included files matching '*.o' found anywhere in distribution warning: no previously-included files matching '*.so*' found anywhere in distribution warning: no previously-included files matching '*.dll' found anywhere in distribution warning: no previously-included files matching '*.a' found anywhere in distribution writing manifest file '/tmp/pip-pip-egg-info-b114wnil/warble.egg-info/SOURCES.txt' Source in /tmp/pip-install-jm8yzv3k/warble has version 1.2.0, which satisfies requirement warble fromhttps://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz#sha256=e831ca465f1a6ff60a071f707fd847c282248d7268795816e121d530d52b3ebe Removed warble from https://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz#sha256=e831ca465f1a6ff60a071f707fd847c282248d7268795816e121d530d52b3ebe from build tracker '/tmp/pip-req-tracker-bi_ehpv1' Using legacy 'setup.py install' for warble, since package 'wheel' is not installed. Installing collected packages: warble Created temporary directory: /tmp/pip-record-cfvscc8v Running command /home/myself/.pyenv/versions/3.6.12/envs/project/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jm8yzv3k/warble/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jm8yzv3k/warble/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-cfvscc8v/install-record.txt --single-version-externally-managed --compile --install-headers /home/myself/.pyenv/versions/3.6.12/envs/project/include/site/python3.6/warble running install running build running build_py make: Entering directory '/tmp/pip-install-jm8yzv3k/warble/clibs/warble' mkdir -p build/x64/release/src/warble/cpp g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/scanner.d" -c -o build/x64/release/src/warble/cpp/scanner.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/scanner.cpp g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/win10_api.d" -c -o build/x64/release/src/warble/cpp/win10_api.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/win10_api.cpp g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/gatt.d" -c -o build/x64/release/src/warble/cpp/gatt.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/gatt.cpp g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/blepp_api.d" -c -o build/x64/release/src/warble/cpp/blepp_api.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/blepp_api.cpp g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/win10_scanner.d" -c -o build/x64/release/src/warble/cpp/win10_scanner.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/win10_scanner.cpp g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/blepp_utils.d" -c -o build/x64/release/src/warble/cpp/blepp_utils.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/blepp_utils.cpp g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/gattchar.d" -c -o build/x64/release/src/warble/cpp/gattchar.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/gattchar.cpp g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/blepp_scanner.d" -c -o build/x64/release/src/warble/cpp/blepp_scanner.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/blepp_scanner.cpp g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/lib.d" -c -o build/x64/release/src/warble/cpp/lib.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/lib.cpp cd deps/libblepp; LDFLAGS=-m64 ./configure checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking if compiler flag -Wall works... yes checking if compiler flag -Wextra works... yes checking if compiler flag -W works... yes checking if compiler flag -O3 works... yes checking if compiler flag -ggdb works... yes checking whether g++ supports C++14 features by default... yes checking for pkg-config... /usr/bin/pkg-config checking for sed... sed checking for pkg-config library dir... ${exec_prefix}/lib/pkgconfig checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking bluetooth/bluetooth.h usability... yes checking bluetooth/bluetooth.h presence... yes checking for bluetooth/bluetooth.h... yes checking for library containing hci_open_dev... -lbluetooth checking boost/optional.hpp usability... yes checking boost/optional.hpp presence... yes checking for boost/optional.hpp... yes checking if compiler flag -fPIC works... yes configure: creating ./config.status config.status: creating libblepp.pc config.status: creating Makefile make -C deps/libblepp -j make[1]: Entering directory '/tmp/pip-install-jm8yzv3k/warble/clibs/warble/deps/libblepp' g++ -o src/att.o -c src/att.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/att.d g++ -o src/uuid.o -c src/uuid.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/uuid.d g++ -o src/bledevice.o -c src/bledevice.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MFsrc/bledevice.d g++ -o src/att_pdu.o -c src/att_pdu.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/att_pdu.d g++ -o src/pretty_printers.o -c src/pretty_printers.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/pretty_printers.d g++ -o src/blestatemachine.o -c src/blestatemachine.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/blestatemachine.d g++ -o src/float.o -c src/float.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/float.d g++ -o src/logging.o -c src/logging.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/logging.d g++ -o src/lescan.o -c src/lescan.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/lescan.d g++ -o examples/lescan.o -c examples/lescan.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP-MF examples/lescan.d g++ -o examples/blelogger.o -c examples/blelogger.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/blelogger.d g++ -o examples/bluetooth.o -c examples/bluetooth.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/bluetooth.d g++ -o examples/lescan_simple.o -c examples/lescan_simple.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/lescan_simple.d g++ -o examples/temperature.o -c examples/temperature.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/temperature.d g++ -o examples/read_device_name.o -c examples/read_device_name.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/read_device_name.d g++ -o examples/write.o -c examples/write.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/write.d src/att.cc: In function ‘uint16_t BLEPP::enc_write_resp(uint8_t*, size_t)’: src/att.cc:657:47: warning: unused parameter ‘len’ [-Wunused-parameter] 657 | uint16_t enc_write_resp(uint8_t *pdu, size_t len) | ~~~~~~~^~~ g++: fatal error: Killed signal terminated program cc1plus compilation terminated. make[1]: *** [Makefile:161: src/lescan.o] Error 1 make[1]: *** Waiting for unfinished jobs.... g++: fatal error: Killed signal terminated program cc1plus compilation terminated. make[1]: *** [Makefile:161: examples/bluetooth.o] Error 1 ```
tekhnee commented 3 years ago

Solved — there was no sufficient memory to build with. Apologies for the false alarm.