Skip to content

Doesn't build #400

Description

@skrat

I followed the intruction in README. I'm building an esp32 port. After adding gen_mpy to py/py.mk, I get this error:

~/W/m/micropython master• 2m 29.2s $ make -C mpy-cross
make: Entering directory '/home/skrat/Workspace/m5paperS3/micropython/mpy-cross'
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
LVGL-GEN build/lvgl/lv_mpy.c
Traceback (most recent call last):
  File "/home/skrat/Workspace/m5paperS3/micropython/mpy-cross/../lib/lv_binding/gen/gen_mpy.py", line 436, in <module>
    ast = parser.parse(s, filename="<none>")
  File "/home/skrat/Workspace/m5paperS3/micropython/lib/lv_binding/gen/../pycparser/pycparser/c_parser.py", line 147, in parse
    return self.cparser.parse(
           ~~~~~~~~~~~~~~~~~~^
            input=text,
            ^^^^^^^^^^^
            lexer=self.clex,
            ^^^^^^^^^^^^^^^^
            debug=debug)
            ^^^^^^^^^^^^
  File "/home/skrat/Workspace/m5paperS3/micropython/lib/lv_binding/gen/../pycparser/pycparser/ply/yacc.py", line 331, in parse
    return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/skrat/Workspace/m5paperS3/micropython/lib/lv_binding/gen/../pycparser/pycparser/ply/yacc.py", line 1199, in parseopt_notrack
    tok = call_errorfunc(self.errorfunc, errtoken, self)
  File "/home/skrat/Workspace/m5paperS3/micropython/lib/lv_binding/gen/../pycparser/pycparser/ply/yacc.py", line 193, in call_errorfunc
    r = errorfunc(token)
  File "/home/skrat/Workspace/m5paperS3/micropython/lib/lv_binding/gen/../pycparser/pycparser/c_parser.py", line 1931, in p_error
    self._parse_error(
    ~~~~~~~~~~~~~~~~~^
        'before: %s' % p.value,
        ^^^^^^^^^^^^^^^^^^^^^^^
        self._coord(lineno=p.lineno,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    column=self.clex.find_tok_column(p)))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/skrat/Workspace/m5paperS3/micropython/lib/lv_binding/gen/../pycparser/pycparser/plyparser.py", line 67, in _parse_error
    raise ParseError("%s: %s" % (coord, msg))
pycparser.plyparser.ParseError: ../lib/lv_binding/lvgl/src/widgets/bar/../label/lv_label.h:100:67: before: __attribute__
make: *** [../py/py.mk:40: build/lvgl/lv_mpy.c] Error 1
make: *** Deleting file 'build/lvgl/lv_mpy.c'
make: Leaving directory '/home/skrat/Workspace/m5paperS3/micropython/mpy-cross'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions