gl-inet / home-assistant-on-openwrt

134 stars 32 forks source link

My S1300 failed to compile hass #1

Closed ibnbd closed 5 years ago

ibnbd commented 5 years ago
 Install C library......libffi
cp: can't stat './HomeAssistantOnOPENWRT-master/ffi*': No such file or directory
 Install C library......libopenssl
cp: can't stat './HomeAssistantOnOPENWRT-master/openssl': No such file or directory
 Install C library......libsodium
Installing libsodium (1.0.16-1) to root...
Downloading http://download.gl-inet.com/releases/packages-3.x/ipq40xx/packages/libsodium_1.0.16-1_ipq806x.ipk.
Configuring libsodium.
cp: can't stat './HomeAssistantOnOPENWRT-master/sodium.h': No such file or directory
 Install python module: PyNaCl...... try 1.
Collecting pynacl
  Downloading https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
 (3.4MB)
     |################################| 3.4MB 2.4MB/s
  Installing build dependencies ... error
  ERROR: Complete output from command /usr/bin/python3 /usr/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /t
mp/pip-build-env-onjjpa9h/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools
 wheel 'cffi>=1.4.1; python_implementation != '"'"'PyPy'"'"'':
  ERROR: Collecting setuptools
    Using cached https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.
1-py2.py3-none-any.whl
  Collecting wheel
    Using cached https://files.pythonhosted.org/packages/bb/10/44230dd6bf3563b8f227dbf344c908d412ad2ff48066476672f3a72e174e/wheel-0.33.4-py2
.py3-none-any.whl
  Collecting cffi>=1.4.1
    Downloading https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.g
z (456kB)
  Collecting pycparser (from cffi>=1.4.1)
    Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.ta
r.gz (158kB)
  Building wheels for collected packages: cffi, pycparser
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-hk9hsqdw/cffi/set
up.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(co
de, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-2iwuoae2 --python-tag cp36:
    ERROR: running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.6
    creating build/lib.linux-armv7l-3.6/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/lock.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/error.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.6/cffi
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv7l-3.6
    creating build/temp.linux-armv7l-3.6/c
    arm-openwrt-linux-uclibcgnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-sav
es -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -Os -pipe -march=armv
7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,no
w -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-var
iable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/han/release/ib/release_53/sdk_gh/ipq806
x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/target-arm_co
rtex-a7_uClibc-1.0.14_eabi/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClib
c-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_
eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6 -c c/_cffi_backen
d.c -o build/temp.linux-armv7l-3.6/c/_cffi_backend.o
    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
     #include <ffi.h>
                     ^
    compilation terminated.
    error: command 'arm-openwrt-linux-uclibcgnueabi-gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
    Building wheel for pycparser (setup.py): started
    Building wheel for pycparser (setup.py): finished with status 'done'
    Stored in directory: /root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
  Successfully built pycparser
  Failed to build cffi
  Installing collected packages: setuptools, wheel, pycparser, cffi
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-hk9hsqdw/cffi/s
etup.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-8h5djdx1/install-record.txt --single-version-externally-managed --prefix
/tmp/pip-build-env-onjjpa9h/overlay --compile:
      ERROR: running install
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-3.6
      creating build/lib.linux-armv7l-3.6/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/lock.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/api.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/error.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/model.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/_embedding.h -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.6/cffi
      warning: build_py: byte-compiling is disabled, skipping.

      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-armv7l-3.6
      creating build/temp.linux-armv7l-3.6/c
      arm-openwrt-linux-uclibcgnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-s
aves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -Os -pipe -march=ar
mv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,
now -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-v
ariable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/han/release/ib/release_53/sdk_gh/ipq8
06x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/target-arm_
cortex-a7_uClibc-1.0.14_eabi/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uCl
ibc-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.1
4_eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6 -c c/_cffi_back
end.c -o build/temp.linux-armv7l-3.6/c/_cffi_backend.o
      c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
       #include <ffi.h>
                       ^
      compilation terminated.
      error: command 'arm-openwrt-linux-uclibcgnueabi-gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-hk9hsqdw/cffi/setup.py'"'"';f=getattr(t
okenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exe
c'"'"'))' install --record /tmp/pip-record-8h5djdx1/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-onjjp
a9h/overlay --compile" failed with error code 1 in /tmp/pip-install-hk9hsqdw/cffi/
  ----------------------------------------
ERROR: Command "/usr/bin/python3 /usr/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-onjjp
a9h/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'cffi>=1.4.1; p
ython_implementation != '"'"'PyPy'"'"''" failed with error code 1 in None
YaoSir commented 5 years ago

Have fixed this bug.

ibnbd commented 5 years ago

@YaoSir doesn't seems like it fixed, I git pull-ed the new commit and try to compile again

 Install C library......libffi
cp: can't stat './home-assistant-on-openwrt-master/ffi*': No such file or directory
 Install C library......libopenssl
cp: can't stat './home-assistant-on-openwrt-master/openssl': No such file or directory
 Install C library......libsodium
Installing libsodium (1.0.16-1) to root...
Downloading http://download.gl-inet.com/releases/packages-3.x/ipq40xx/packages/libsodium_1.0.16-1_ipq806x.ipk.
Configuring libsodium.
cp: can't stat './home-assistant-on-openwrt-master/sodium.h': No such file or directory
 Install python module: PyNaCl...... try 1.
Collecting pynacl
  Downloading https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
 (3.4MB)
     |################################| 3.4MB 2.4MB/s
  Installing build dependencies ... error
  ERROR: Complete output from command /usr/bin/python3 /usr/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /t
mp/pip-build-env-75oa51ld/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools
 wheel 'cffi>=1.4.1; python_implementation != '"'"'PyPy'"'"'':
  ERROR: Collecting setuptools
    Using cached https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.
1-py2.py3-none-any.whl
  Collecting wheel
    Using cached https://files.pythonhosted.org/packages/bb/10/44230dd6bf3563b8f227dbf344c908d412ad2ff48066476672f3a72e174e/wheel-0.33.4-py2
.py3-none-any.whl
  Collecting cffi>=1.4.1
    Downloading https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.g
z (456kB)
  Collecting pycparser (from cffi>=1.4.1)
    Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.ta
r.gz (158kB)
  Building wheels for collected packages: cffi, pycparser
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-7kn63yy1/cffi/set
up.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(co
de, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-4fm1ce_w --python-tag cp36:
    ERROR: running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.6
    creating build/lib.linux-armv7l-3.6/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/lock.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/error.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.6/cffi
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv7l-3.6
    creating build/temp.linux-armv7l-3.6/c
    arm-openwrt-linux-uclibcgnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-sav
es -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -Os -pipe -march=armv
7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,no
w -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-var
iable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/han/release/ib/release_53/sdk_gh/ipq806
x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/target-arm_co
rtex-a7_uClibc-1.0.14_eabi/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClib
c-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_
eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6 -c c/_cffi_backen
d.c -o build/temp.linux-armv7l-3.6/c/_cffi_backend.o
    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
     #include <ffi.h>
                     ^
    compilation terminated.
    error: command 'arm-openwrt-linux-uclibcgnueabi-gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
    Building wheel for pycparser (setup.py): started
    Building wheel for pycparser (setup.py): finished with status 'done'
    Stored in directory: /root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
  Successfully built pycparser
  Failed to build cffi
  Installing collected packages: setuptools, wheel, pycparser, cffi
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-7kn63yy1/cffi/s
etup.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-j9kl01bq/install-record.txt --single-version-externally-managed --prefix
/tmp/pip-build-env-75oa51ld/overlay --compile:
      ERROR: running install
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-3.6
      creating build/lib.linux-armv7l-3.6/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/lock.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/api.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/error.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/model.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/_embedding.h -> build/lib.linux-armv7l-3.6/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.6/cffi
      warning: build_py: byte-compiling is disabled, skipping.

      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-armv7l-3.6
      creating build/temp.linux-armv7l-3.6/c
      arm-openwrt-linux-uclibcgnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-s
aves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -Os -pipe -march=ar
mv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,
now -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -march=armv7-a -mtune=cortex-a7 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-v
ariable -Wno-error=unused-result -mfloat-abi=soft -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/han/release/ib/release_53/sdk_gh/ipq8
06x/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/target-arm_
cortex-a7_uClibc-1.0.14_eabi/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uCl
ibc-1.0.14_eabi/usr/include -I/home/han/release/ib/release_53/sdk_gh/ipq806x/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.1
4_eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6 -c c/_cffi_back
end.c -o build/temp.linux-armv7l-3.6/c/_cffi_backend.o
      c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
       #include <ffi.h>
                       ^
      compilation terminated.
      error: command 'arm-openwrt-linux-uclibcgnueabi-gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-7kn63yy1/cffi/setup.py'"'"';f=getattr(t
okenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exe
c'"'"'))' install --record /tmp/pip-record-j9kl01bq/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-75oa5
1ld/overlay --compile" failed with error code 1 in /tmp/pip-install-7kn63yy1/cffi/
  ----------------------------------------
ERROR: Command "/usr/bin/python3 /usr/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-75oa5
1ld/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'cffi>=1.4.1; p
ython_implementation != '"'"'PyPy'"'"''" failed with error code 1 in None
 Install python module: PyNaCl...... try 2.
Collecting pynacl
ibnbd commented 5 years ago

I tried easy_install for PyNaCl and got this error

root@GL-S1300:~/home-assistant-on-openwrt# easy_install PyNaCl
Searching for PyNaCl
Reading https://pypi.org/simple/PyNaCl/
Downloading https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz#sha256=0c6100edd16fefd1557da078c7a31e7b7d7a52ce39fdca2bec29d4f7b6e7600c
Best match: PyNaCl 1.3.0
Processing PyNaCl-1.3.0.tar.gz
Writing /tmp/easy_install-tysnsnvo/PyNaCl-1.3.0/setup.cfg
Running PyNaCl-1.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-tysnsnvo/PyNaCl-1.3.0/egg-dist-tmp-ba5lorh4
warning: build_py: byte-compiling is disabled, skipping.

c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
 #include <ffi.h>
                 ^
compilation terminated.
error: Setup script exited with error: command 'arm-openwrt-linux-uclibcgnueabi-gcc' failed with exit status 1

Looks like libffi is already installed

root@GL-S1300:~/home-assistant-on-openwrt# opkg install libffi
Package libffi (3.0.13-1) installed in root is up to date.
root@GL-S1300:~/home-assistant-on-openwrt#
YaoSir commented 5 years ago

It has missing the .h file "ffi.h". It will copy the ffi.h by design but beacuse the folder name is "home-assistant-on-openwrt-master" not "home-assistant-on-openwrt", it cannot find the .h files. I have push new commit to fix this bug. Recommand that reset to factory setting and clone the newest commit and try again.

YaoSir commented 5 years ago

A more simple method is to install the package "gl-homeassistant". It will provide a command "hass-install". Use this command and it will install the HomeAssistant automatically.

ibnbd commented 5 years ago

@YaoSir it worked.... thank you