Non-docker install problem on Synology DS211J: *-gcc failed with exit status 1

Tags: #<Tag:0x00007f7805f7c248>

Hello all,

I just tried to install Home Assistant on my Synology DS211j according to the instructions given in “option 2” of Installation on a Synology NAS since this old model does not support docker anymore.

In the beginning everything seems to be running fine. But then, I get a compiler error for an unknown reason (at least unknown to me!).

Here is the log of the 2nd try (which is a bit shorter. The complete log of the first try is given below):

    /usr/local/arm-marvell-linux-gnueabi/bin/arm-marvell-linux-gnueabi-ccache-gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DSYNO_FIX_FLAG_BUG -DOPENSSL_NO_SSL3 -DOPENSSL_NO_SSL2 -DSYNOPLAT_F_ARMV5 -O2 -mcpu=marvell-f -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=32 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -I/volume1/@appstore/py3k/usr/local/include/python3.5m -c multidict/_multidict.c -o build/temp.linux-armv5tel-3.5/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
    error: command '/usr/local/arm-marvell-linux-gnueabi/bin/arm-marvell-linux-gnueabi-ccache-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/volume1/@appstore/py3k/usr/local/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-nzaxusqs/multidict/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bhgjoudd-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nzaxusqs/multidict
You are using pip version 7.1.2, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Here is the complete log of the first installation attempt:

[email protected]:/volume1/@appstore/py3k/usr/local/bin# ./python3 -m pip install homeassistant==0.64.3
Collecting homeassistant==0.64.3
  Downloading https://files.pythonhosted.org/packages/93/37/9842ecfc0caf451833a6ffdeeb301be50bf3500e5ee86e13c696d85e4ca0/homeassistant-0.64.3-py2.py3-none-any.whl (7.8MB)
    100% |████████████████████████████████| 7.8MB 2.8kB/s 
Collecting aiohttp==2.3.10 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/c0/b9/853b158f5cb5d218daaff0fb0dbc2bd7de45b2c6c5f563dff0ee530ec52a/aiohttp-2.3.10.tar.gz (848kB)
    100% |████████████████████████████████| 851kB 43kB/s 
Collecting async-timeout==2.0.0 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/16/6c/9a34c589658d63bb331db5a4a745f0f9814860a3ddadd10376965eb97ac0/async_timeout-2.0.0-py3-none-any.whl
Collecting requests==2.18.4 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl (88kB)
    100% |████████████████████████████████| 90kB 366kB/s 
Collecting attrs==17.4.0 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/b5/60/4e178c1e790fd60f1229a9b3cb2f8bc2f4cc6ff2c8838054c142c70b5adc/attrs-17.4.0-py2.py3-none-any.whl
Collecting jinja2>=2.10 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/27/24/4f35961e5c669e96f6559760042a55b9bcfcdb82b9bdb3c8753dbe042e35/Jinja2-2.11.1-py2.py3-none-any.whl (126kB)
    100% |████████████████████████████████| 126kB 293kB/s 
Collecting voluptuous==0.11.1 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/f5/09/a0e20a0bd743131e237128bad3a4f83b283f70c032b7e7c0f06baf7f6862/voluptuous-0.11.1-py2.py3-none-any.whl
Collecting astral==1.5 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/44/d0/2757b38018c53307f23efe7dd468f4ff789d11006c69cd0b489d1d589612/astral-1.5-py2.py3-none-any.whl
Collecting pip>=8.0.3 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 29kB/s 
Collecting yarl==1.1.0 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/a3/08/05b2d731ef5163b3bcb993f569c4d2b303642f7ee3cbdea373f59e4bd42a/yarl-1.1.0.tar.gz (156kB)
    100% |████████████████████████████████| 159kB 164kB/s 
Collecting chardet==3.0.4 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 135kB 273kB/s 
Collecting certifi>=2017.4.17 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
    100% |████████████████████████████████| 159kB 103kB/s 
Collecting pytz>=2017.02 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB)
    100% |████████████████████████████████| 512kB 43kB/s 
Collecting pyyaml<4,>=3.11 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
    100% |████████████████████████████████| 274kB 161kB/s 
Collecting typing<4,>=3 (from homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/fe/2e/b480ee1b75e6d17d2993738670e75c1feeb9ff7f64452153cf018051cc92/typing-3.7.4.1-py3-none-any.whl
Collecting multidict>=4.0.0 (from aiohttp==2.3.10->homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/b6/22/ae21cedaa0e6d35e84e8ab57700dcf3d4609421ebe113e1aaafc468eec42/multidict-4.7.4.tar.gz (50kB)
    100% |████████████████████████████████| 53kB 226kB/s 
Collecting idna-ssl>=1.0.0 (from aiohttp==2.3.10->homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/46/03/07c4894aae38b0de52b52586b24bf189bb83e4ddabfe2e2c8f2419eec6f4/idna-ssl-1.1.0.tar.gz
Collecting urllib3<1.23,>=1.21.1 (from requests==2.18.4->homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl (132kB)
    100% |████████████████████████████████| 135kB 186kB/s 
Collecting idna<2.7,>=2.5 (from requests==2.18.4->homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl (56kB)
    100% |████████████████████████████████| 57kB 294kB/s 
Collecting MarkupSafe>=0.23 (from jinja2>=2.10->homeassistant==0.64.3)
  Downloading https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
Installing collected packages: chardet, multidict, async-timeout, idna, yarl, idna-ssl, aiohttp, certifi, urllib3, requests, attrs, MarkupSafe, jinja2, voluptuous, pytz, astral, pip, pyyaml, typing, homeassistant
  Running setup.py install for multidict
    Complete output from command /volume1/@appstore/py3k/usr/local/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-xwkqlu4n/multidict/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-foh9oabh-record/install-record.txt --single-version-externally-managed --compile:
    **********************
    * Accellerated build *
    **********************
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv5tel-3.5
    creating build/lib.linux-armv5tel-3.5/multidict
    copying multidict/_multidict_py.py -build/lib.linux-armv5tel-3.5/multidict
    copying multidict/_multidict_base.py -build/lib.linux-armv5tel-3.5/multidict
    copying multidict/_compat.py -build/lib.linux-armv5tel-3.5/multidict
    copying multidict/_abc.py -build/lib.linux-armv5tel-3.5/multidict
    copying multidict/__init__.py -build/lib.linux-armv5tel-3.5/multidict
    running egg_info
    writing dependency_links to multidict.egg-info/dependency_links.txt
    writing top-level names to multidict.egg-info/top_level.txt
    writing multidict.egg-info/PKG-INFO
    /volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)
    /volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'project_urls'
      warnings.warn(msg)
    warning: manifest_maker: standard file '-c' not found
    
    reading manifest file 'multidict.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files found matching 'multidict/_multidict.html'
    warning: no previously-included files found matching 'multidict/*.so'
    warning: no previously-included files found matching 'multidict/*.pyd'
    warning: no previously-included files found matching 'multidict/*.pyd'
    no previously-included directories found matching 'docs/_build'
    writing manifest file 'multidict.egg-info/SOURCES.txt'
    copying multidict/__init__.pyi -build/lib.linux-armv5tel-3.5/multidict
    copying multidict/_multidict.c -build/lib.linux-armv5tel-3.5/multidict
    copying multidict/py.typed -build/lib.linux-armv5tel-3.5/multidict
    creating build/lib.linux-armv5tel-3.5/multidict/_multilib
    copying multidict/_multilib/defs.h -build/lib.linux-armv5tel-3.5/multidict/_multilib
    copying multidict/_multilib/dict.h -build/lib.linux-armv5tel-3.5/multidict/_multilib
    copying multidict/_multilib/istr.h -build/lib.linux-armv5tel-3.5/multidict/_multilib
    copying multidict/_multilib/iter.h -build/lib.linux-armv5tel-3.5/multidict/_multilib
    copying multidict/_multilib/pair_list.h -build/lib.linux-armv5tel-3.5/multidict/_multilib
    copying multidict/_multilib/views.h -build/lib.linux-armv5tel-3.5/multidict/_multilib
    running build_ext
    building 'multidict._multidict' extension
    creating build/temp.linux-armv5tel-3.5
    creating build/temp.linux-armv5tel-3.5/multidict
    /usr/local/arm-marvell-linux-gnueabi/bin/arm-marvell-linux-gnueabi-ccache-gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DSYNO_FIX_FLAG_BUG -DOPENSSL_NO_SSL3 -DOPENSSL_NO_SSL2 -DSYNOPLAT_F_ARMV5 -O2 -mcpu=marvell-f -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=32 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -I/volume1/@appstore/py3k/usr/local/include/python3.5m -c multidict/_multidict.c -o build/temp.linux-armv5tel-3.5/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
    error: command '/usr/local/arm-marvell-linux-gnueabi/bin/arm-marvell-linux-gnueabi-ccache-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/volume1/@appstore/py3k/usr/local/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-xwkqlu4n/multidict/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-foh9oabh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-xwkqlu4n/multidict
You are using pip version 7.1.2, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[email protected]:/volume1/@appstore/py3k/usr/local/bin#

Thanks a lot for any advice you could give!

Kind regards,

Kai