Re: [nuttx] problems in porting the latest micropython to nuttx

111 views
Skip to first unread message
Message has been deleted

Gregory Nutt

unread,
Apr 19, 2020, 10:43:13 AM4/19/20
to nu...@googlegroups.com

I reverted the commit in which micropython was supported then in makefile, I changed the micropython version from 1.3.8 to 1.12, made the same change in Kconfig also. then tried to build but got following error :

       apps/interpreters/micropython/micropython-1.12/py/mphal.h:34:23: fatal error: mphalport.h: No such file or directory
        #include <mphalport.h>

so i tried to search this file then it was in /mpy-cross and ports/unix folder then i tried to give the address manually 
      #include "mpy-cross/mphalport.h"
then it gave following error:

         apps/interpreters/micropython/micropython-1.12/py/builtin.h:81:29: error: conflicting types for 'mp_builtin_open_obj'
         MP_DECLARE_CONST_FUN_OBJ_KW(mp_builtin_open_obj);

tried to include using ports/unix but still got the same above error.

please check this and let me know why it didn't include mphalport.h by itself and how can i correct the 2nd error.
Thank in advance for help.

This has nothing to do with NuttX.  Unless you happen to find a micropython person in this list, I think you are asking in the wrong forum.  This is only for the OS, not micropython.


Alan Carvalho de Assis

unread,
Apr 19, 2020, 11:22:47 AM4/19/20
to nu...@googlegroups.com
Hi Deepak,

Please note that this Google Group mailing list is "deprecated", you
could have more changes asking at ASF (Apache Software Foundation)
NuttX mailing list.

Search here in this list to find out how to subscribe there.

BR,

Alan

On 4/19/20, Deepak Sharma <asdeepak...@gmail.com> wrote:
> Hi everyone,
>
> I am new to nuttx and trrying to build nuttx with latest micropython using
> following method:
>
> I reverted the commit in which micropython was supported then in makefile,
> I changed the micropython version from 1.3.8 to 1.12, made the same change
> in Kconfig also. then tried to build but got following error :
>
> * apps/interpreters/micropython/micropython-1.12/py/mphal.h:34:23:
> fatal error: mphalport.h: No such file or directory*
> * #include <mphalport.h>*
>
> so i tried to search this file then it was in /mpy-cross and ports/unix
> folder then i tried to give the address manually
> #include "mpy-cross/mphalport.h"
> then it gave following error:
>
> *apps/interpreters/micropython/micropython-1.12/py/builtin.h:81:29:
>
> error: conflicting types for 'mp_builtin_open_obj'*
> * MP_DECLARE_CONST_FUN_OBJ_KW(mp_builtin_open_obj);*
>
> tried to include using ports/unix but still got the same above error.
>
> please check this and let me know why it didn't include mphalport.h by
> itself and how can i correct the 2nd error.
> Thank in advance for help.
>
> --
> You received this message because you are subscribed to the Google Groups
> "NuttX" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nuttx+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nuttx/9cc6d2bd-b559-4c8a-8f30-4893748057e7%40googlegroups.com.
>
Reply all
Reply to author
Forward
0 new messages