Error while I try to make UNix port

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
zaord
Posts: 32
Joined: Fri Jan 31, 2020 3:56 pm

Error while I try to make UNix port

Post by zaord » Fri Jul 17, 2020 12:54 pm

Hi here ;)

I have an error while I try to build micropython unix port :

Code: Select all

CC ../../extmod/modussl_axtls.c
In file included from ../../lib/axtls/ssl/tls1.h:46,
                 from ../../lib/axtls/ssl/ssl.h:75,
                 from ../../extmod/modussl_axtls.c:35:
../../lib/axtls/ssl/os_port.h:1:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
    1 | os_port_micropython.h
      |                    ^
In file included from ../../lib/axtls/crypto/crypto.h:42,
                 from ../../lib/axtls/ssl/tls1.h:47,
                 from ../../lib/axtls/ssl/ssl.h:75,
                 from ../../extmod/modussl_axtls.c:35:
../../lib/axtls/crypto/bigint_impl.h:89:5: error: unknown type name ‘comp’
   89 |     comp* comps;                /**< A ptr to the actual component data */
      |     ^~~~
In file included from ../../lib/axtls/crypto/crypto.h:43,
                 from ../../lib/axtls/ssl/tls1.h:47,
                 from ../../lib/axtls/ssl/ssl.h:75,
                 from ../../extmod/modussl_axtls.c:35:
../../lib/axtls/crypto/bigint.h:46:32: error: unknown type name ‘comp’
   46 | bigint *int_to_bi(BI_CTX *ctx, comp i);
      |                                ^~~~
make: *** [../../py/mkrules.mk:47: build-standard/extmod/modussl_axtls.o] Error 1
Did anyone solved this already ?

Best

User avatar
rcolistete
Posts: 259
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil

Re: Error while I try to make UNix port

Post by rcolistete » Fri Jul 17, 2020 3:33 pm

Have you done these steps ?

Code: Select all

[compiling_firmware]$ git clone --recurse-submodules https://github.com/rcolistete/micropython
[compiling_firmware]$ cd micropython
[micropython]$ git submodule update --init
[micropython]$ cd ports/unix
[unix]$ make clean
[unix]$ make -j8 submodules
[unix]$ make -j8

zaord
Posts: 32
Joined: Fri Jan 31, 2020 3:56 pm

Re: Error while I try to make UNix port

Post by zaord » Sat Jul 18, 2020 8:45 pm

Okay i reclean all and now its fixed :) tack !

Post Reply