Error building python on arm64

https://github.com/laibulle/rpi3-wifi-conf

name: rpi3-wifi-conf
version: git
summary: RPI3 Wifi Config from bluetooth
description: |
  Configure Wifi from bluetooth
base: core18
confinement: devmode
grade: devel
architectures:
  - arm64
parts:
  rpi3-wifi-conf:
    plugin: python
    python-version: python3
    source: .
    stage-packages:
      - bluez
      - libbluetooth3
    build-packages:
      - libbluetooth-dev
apps:
  rpi3-wifi-conf:
    command: bin/rpi3-wifi-conf

Skipping astroid, due to already being wheel.
Skipping certifi, due to already being wheel.
Skipping isort, due to already being wheel.
Skipping mccabe, due to already being wheel.
Skipping pipenv, due to already being wheel.
Skipping pycodestyle, due to already being wheel.
Skipping pylint, due to already being wheel.
Skipping six, due to already being wheel.
Skipping virtualenv, due to already being wheel.
Skipping virtualenv-clone, due to already being wheel.
Skipping wheel, due to already being wheel.
Skipping setuptools, due to already being wheel.
Skipping pip, due to already being wheel.
Building wheels for collected packages: rpi3-wifi-conf, autopep8, lazy-object-proxy, pbkdf2, typed-ast, wifi, wrapt, PyBluez
  Building wheel for rpi3-wifi-conf (setup.py): started
  Building wheel for rpi3-wifi-conf (setup.py): finished with status 'done'
  Created wheel for rpi3-wifi-conf: filename=rpi3_wifi_conf-0.1.0-py3-none-any.whl size=2463 sha256=76a3d0e423578a1dc008d4ead7d7338b8e2a205ff08d487123c4bd471788041e
  Stored in directory: /tmp/tmpxtdrhnbt
  Building wheel for autopep8 (setup.py): started
  Building wheel for autopep8 (setup.py): finished with status 'done'
  Created wheel for autopep8: filename=autopep8-1.4.4-py2.py3-none-any.whl size=42631 sha256=a6a27a30da3c397be4098f8ad1f789431d67f1723a5b3383c9051f9b1ee40ffe
  Stored in directory: /tmp/tmpxtdrhnbt
  Building wheel for lazy-object-proxy (setup.py): started
  Building wheel for lazy-object-proxy (setup.py): finished with status 'done'
  Created wheel for lazy-object-proxy: filename=lazy_object_proxy-1.4.1-cp36-cp36m-linux_aarch64.whl size=40728 sha256=ae6f0c88478e28521803fd15fe235985a4a6d4bd072724cede2e442a91b5aa76
  Stored in directory: /tmp/tmpxtdrhnbt
  Building wheel for pbkdf2 (setup.py): started
  Building wheel for pbkdf2 (setup.py): finished with status 'done'
  Created wheel for pbkdf2: filename=pbkdf2-1.3-py3-none-any.whl size=5104 sha256=b9dd28b534e893fde08cd0bba22313c6e6f380dc2fa5f6aae31814d8e8ec50e2
  Stored in directory: /tmp/tmpxtdrhnbt
  Building wheel for typed-ast (setup.py): started
  Building wheel for typed-ast (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /build/rpi3-wifi-conf/parts/rpi3-wifi-conf/install/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-7k44npr0/typed-ast/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-7k44npr0/typed-ast/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-y33thn20
       cwd: /tmp/pip-wheel-7k44npr0/typed-ast/
  Complete output (108 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.6
  creating build/lib.linux-aarch64-3.6/typed_ast
  copying typed_ast/conversions.py -> build/lib.linux-aarch64-3.6/typed_ast
  copying typed_ast/__init__.py -> build/lib.linux-aarch64-3.6/typed_ast
  copying typed_ast/ast27.py -> build/lib.linux-aarch64-3.6/typed_ast
  copying typed_ast/ast3.py -> build/lib.linux-aarch64-3.6/typed_ast
  package init file 'ast3/tests/__init__.py' not found (or not a regular file)
  creating build/lib.linux-aarch64-3.6/typed_ast/tests
  copying ast3/tests/test_basics.py -> build/lib.linux-aarch64-3.6/typed_ast/tests
  running build_ext
  building '_ast27' extension
  creating build/temp.linux-aarch64-3.6
  creating build/temp.linux-aarch64-3.6/ast27
  creating build/temp.linux-aarch64-3.6/ast27/Parser
  creating build/temp.linux-aarch64-3.6/ast27/Python
  creating build/temp.linux-aarch64-3.6/ast27/Custom
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/python3.6m -fPIC -Iast27/Include -I/build/rpi3-wifi-conf/parts/rpi3-wifi-conf/install/usr/include/python3.6m -c ast27/Parser/acceler.c -o build/temp.linux-aarch64-3.6/ast27/Parser/acceler.o
  ast27/Parser/acceler.c: In function ‘fixstate’:
  ast27/Parser/acceler.c:88:23: warning: implicit declaration of function ‘Ta27Grammar_FindDFA’; did you mean ‘PyGrammar_FindDFA’? [-Wimplicit-function-declaration]
               dfa *d1 = Ta27Grammar_FindDFA(g, type);
                         ^~~~~~~~~~~~~~~~~~~
                         PyGrammar_FindDFA
  ast27/Parser/acceler.c:88:23: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/python3.6m -fPIC -Iast27/Include -I/build/rpi3-wifi-conf/parts/rpi3-wifi-conf/install/usr/include/python3.6m -c ast27/Parser/bitset.c -o build/temp.linux-aarch64-3.6/ast27/Parser/bitset.o
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/python3.6m -fPIC -Iast27/Include -I/build/rpi3-wifi-conf/parts/rpi3-wifi-conf/install/usr/include/python3.6m -c ast27/Parser/grammar.c -o build/temp.linux-aarch64-3.6/ast27/Parser/grammar.o
  In file included from ast27/Parser/grammar.c:5:0:
  /usr/include/python3.6m/pgenheaders.h:19:16: error: conflicting types for ‘_Py_adddfa’
   #define adddfa _Py_adddfa
                  ^
  ast27/Parser/grammar.c:36:1: note: in expansion of macro ‘adddfa’
   adddfa(grammar *g, int type, char *name)
   ^~~~~~
  /usr/include/python3.6m/pgenheaders.h:19:16: note: previous declaration of ‘_Py_adddfa’ was here
   #define adddfa _Py_adddfa
                  ^
  /usr/include/python3.6m/grammar.h:73:6: note: in expansion of macro ‘adddfa’
   dfa *adddfa(grammar *g, int type, const char *name);
        ^~~~~~
  /usr/include/python3.6m/pgenheaders.h:21:18: error: conflicting types for ‘_Py_addlabel’
   #define addlabel _Py_addlabel
                    ^
  ast27/Parser/grammar.c:92:1: note: in expansion of macro ‘addlabel’
   addlabel(labellist *ll, int type, char *str)
   ^~~~~~~~
  /usr/include/python3.6m/pgenheaders.h:21:18: note: previous declaration of ‘_Py_addlabel’ was here
   #define addlabel _Py_addlabel
                    ^
  /usr/include/python3.6m/grammar.h:78:5: note: in expansion of macro ‘addlabel’
   int addlabel(labellist *ll, int type, const char *str);
       ^~~~~~~~
  ast27/Parser/grammar.c: In function ‘_Py_addlabel’:
  ast27/Parser/grammar.c:111:16: warning: implicit declaration of function ‘Ta27Grammar_LabelRepr’; did you mean ‘PyGrammar_LabelRepr’? [-Wimplicit-function-declaration]
                  Ta27Grammar_LabelRepr(lb));
                  ^~~~~~~~~~~~~~~~~~~~~
                  PyGrammar_LabelRepr
  ast27/Parser/grammar.c:110:35: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
           printf("Label @ %8p, %d: %s\n", ll, ll->ll_nlabels,
                                    ~^
                                    %d
                  Ta27Grammar_LabelRepr(lb));
                  ~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from ast27/Parser/grammar.c:5:0:
  ast27/Parser/grammar.c: At top level:
  /usr/include/python3.6m/pgenheaders.h:25:19: error: conflicting types for ‘_Py_findlabel’
   #define findlabel _Py_findlabel
                     ^
  ast27/Parser/grammar.c:118:1: note: in expansion of macro ‘findlabel’
   findlabel(labellist *ll, int type, char *str)
   ^~~~~~~~~
  /usr/include/python3.6m/pgenheaders.h:25:19: note: previous declaration of ‘_Py_findlabel’ was here
   #define findlabel _Py_findlabel
                     ^
  /usr/include/python3.6m/grammar.h:79:5: note: in expansion of macro ‘findlabel’
   int findlabel(labellist *ll, int type, const char *str);
       ^~~~~~~~~
  ast27/Parser/grammar.c: In function ‘translabel’:
  ast27/Parser/grammar.c:154:36: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
           printf("Translating label %s ...\n", Ta27Grammar_LabelRepr(lb));
                                     ~^         ~~~~~~~~~~~~~~~~~~~~~~~~~
                                     %d
  ast27/Parser/grammar.c:171:36: error: ‘_Ta27Parser_TokenNames’ undeclared (first use in this function); did you mean ‘_PyParser_TokenNames’?
               if (strcmp(lb->lb_str, _Ta27Parser_TokenNames[i]) == 0) {
                                      ^~~~~~~~~~~~~~~~~~~~~~
                                      _PyParser_TokenNames
  ast27/Parser/grammar.c:171:36: note: each undeclared identifier is reported only once for each function it appears in
  ast27/Parser/grammar.c:212:30: warning: implicit declaration of function ‘Ta27Token_OneChar’; did you mean ‘PyToken_OneChar’? [-Wimplicit-function-declaration]
               int type = (int) Ta27Token_OneChar(lb->lb_str[1]);
                                ^~~~~~~~~~~~~~~~~
                                PyToken_OneChar
  ast27/Parser/grammar.c:223:30: warning: implicit declaration of function ‘Ta27Token_TwoChars’; did you mean ‘PyToken_TwoChars’? [-Wimplicit-function-declaration]
               int type = (int) Ta27Token_TwoChars(lb->lb_str[1],
                                ^~~~~~~~~~~~~~~~~~
                                PyToken_TwoChars
  ast27/Parser/grammar.c:235:30: warning: implicit declaration of function ‘Ta27Token_ThreeChars’; did you mean ‘PyToken_ThreeChars’? [-Wimplicit-function-declaration]
               int type = (int) Ta27Token_ThreeChars(lb->lb_str[1],
                                ^~~~~~~~~~~~~~~~~~~~
                                PyToken_ThreeChars
  ast27/Parser/grammar.c:252:41: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
           printf("Can't translate label '%s'\n",
                                          ~^
                                          %d
                  Ta27Grammar_LabelRepr(lb));
                  ~~~~~~~~~~~~~~~~~~~~~~~~~
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for typed-ast
  Running setup.py clean for typed-ast
  Building wheel for wifi (setup.py): started
  Building wheel for wifi (setup.py): finished with status 'done'
  Created wheel for wifi: filename=wifi-0.3.8-py3-none-any.whl size=12953 sha256=60b13d0afc8787d93c217b206e6955771952104040f9ec399b3ab2e13e9cde98
  Stored in directory: /tmp/tmpxtdrhnbt
  Building wheel for wrapt (setup.py): started
  Building wheel for wrapt (setup.py): finished with status 'done'
  Created wheel for wrapt: filename=wrapt-1.11.2-cp36-cp36m-linux_aarch64.whl size=67111 sha256=a03336aba63344f9e07d32daed3fa774a8d4be02ad4253a7c4abeda4347691d1
  Stored in directory: /tmp/tmpxtdrhnbt
  Building wheel for PyBluez (setup.py): started
  Building wheel for PyBluez (setup.py): finished with status 'done'
  Created wheel for PyBluez: filename=PyBluez-0.22-cp36-cp36m-linux_aarch64.whl size=116182 sha256=d2540c2bb2efdb2bd2bf6458b0d1effd344aee2f0838447974caefb8286615a9
  Stored in directory: /tmp/tmpxtdrhnbt
Successfully built rpi3-wifi-conf autopep8 lazy-object-proxy pbkdf2 wifi wrapt PyBluez
Failed to build typed-ast
ERROR: Failed to build one or more wheels
Failed to run '/build/rpi3-wifi-conf/parts/rpi3-wifi-conf/install/usr/bin/python3 -m pip wheel --no-index --find-links /build/rpi3-wifi-conf/parts/rpi3-wifi-conf/python-packages --wheel-dir /tmp/tmpxtdrhnbt .': Exited with code 1.
Build failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 268, in run
    self.build()
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 257, in build
    env=env)
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/build_snap.py", line 104, in run_build_command
    return self.backend.run(args, env=full_env, **kwargs)
  File "/usr/lib/python2.7/dist-packages/lpbuildd/target/lxd.py", line 502, in run
    subprocess.check_call(cmd, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['lxc', 'exec', 'lp-bionic-arm64', '--env', 'LANG=C.UTF-8', '--env', 'SHELL=/bin/sh', '--env', 'SNAPCRAFT_BUILD_INFO=1', '--env', 'SNAPCRAFT_IMAGE_INFO={"build-request-id": "lp-51028885", "build-request-timestamp": "2019-08-25T20:13:23Z", "build_url": "https://launchpad.net/~build.snapcraft.io/+snap/12f2690771fe8cf37782c60457ebb70d/+build/656941"}', '--env', 'SNAPCRAFT_BUILD_ENVIRONMENT=host', '--env', 'http_proxy=http://10.10.10.1:8222/', '--env', 'https_proxy=http://10.10.10.1:8222/', '--env', 'GIT_PROXY_COMMAND=/usr/local/bin/snap-git-proxy', '--', '/bin/sh', '-c', 'cd /build/rpi3-wifi-conf && linux64 snapcraft']' returned non-zero exit status 2
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=lxd --series=bionic --arch=arm64 SNAPBUILD-656941
Scanning for processes to kill in build SNAPBUILD-656941