Hi,

Which Linux is this? It looks like it is toolchain issue..
Also, could you do `newt info` and show result?


On Tue, 11 Apr 2023 at 16:26, Jan Clement <jan.clem...@cm-electronics.de>
wrote:

> Hi there,
>
> I am trying to compile and use mynewt unittests. I am not able to
> compile under Linux, it gets stuck at some C makros. Here is the compile
> output i got from newt build tool:
>
>
> > Testing package libs/xxx/selftest
> > In file included from
> /usr/lib/gcc/x86_64-linux-gnu/12/include/stdint.h:9,
> >                  from
> repos/apache-mynewt-core/crypto/tinycrypt/include/tinycrypt/ecc.h:74,
> >                  from
> repos/apache-mynewt-core/crypto/tinycrypt/src/ecc.c:55:
> > /usr/include/stdint.h:276:17: error: missing binary operator before
> token "("
> >   276 | #if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
> >       |                 ^
> > In file included from
> repos/apache-mynewt-core/crypto/tinycrypt/src/ecc.c:57:
> > /usr/include/string.h:36:43: error: missing binary operator before token
> "("
> >    36 | #if defined __cplusplus && (__GNUC_PREREQ (4, 4) \
> >       |                                           ^
> > /usr/include/string.h:53:71: error: missing ')' after "defined"
> >    53 | #if defined __USE_MISC || defined __USE_XOPEN || defined
> (__GLIBC_USE (ISOC2X))
> >       |
>      ^
> > /usr/include/string.h:53:72: error: missing binary operator before token
> "ISOC2X"
> >    53 | #if defined __USE_MISC || defined __USE_XOPEN || defined
> (__GLIBC_USE (ISOC2X))
> >       |
>       ^~~~~~
> > /usr/include/string.h:185:30: error: missing ')' after "defined"
> >   185 |      || defined (__GLIBC_USE (LIB_EXT2)) || defined (__GLIBC_USE
> (ISOC2X)))
> >       |                              ^
> > /usr/include/string.h:185:31: error: missing binary operator before
> token "LIB_EXT2"
> >   185 |      || defined (__GLIBC_USE (LIB_EXT2)) || defined (__GLIBC_USE
> (ISOC2X)))
> >       |                               ^~~~~~~~
> > /usr/include/string.h:194:52: error: missing ')' after "defined"
> >   194 | #if defined __USE_XOPEN2K8 || defined (__GLIBC_USE (LIB_EXT2))
> || defined (__GLIBC_USE (ISOC2X))
> >       |                                                    ^
> > /usr/include/string.h:194:53: error: missing binary operator before
> token "LIB_EXT2"
> >   194 | #if defined __USE_XOPEN2K8 || defined (__GLIBC_USE (LIB_EXT2))
> || defined (__GLIBC_USE (ISOC2X))
> >       |                                                     ^~~~~~~~
> > /usr/include/string.h:532:19: error: missing binary operator before
> token "("
> >   532 | #if __GNUC_PREREQ (3,4)
> >       |                   ^
> > ecc.o: repos/apache-mynewt-core/crypto/tinycrypt/src/ecc.c \
> >  repos/apache-mynewt-core/crypto/tinycrypt/include/tinycrypt/ecc.h \
> >
> repos/apache-mynewt-core/crypto/tinycrypt/include/tinycrypt/ecc_platform_specific.h
> > Error: Test failure(s):
> > Passed tests: []
>
> any ideas on what i could do to get things working? Thanks in advance :)
>
>
> Mit freundlichen Grüßen
>
> Jan Clement
>
>
> Clement, Mastalerz & Partner, Elektroingenieure
> cm-electronics
> Salzstrasse 9
> 79098 Freiburg, Germany
>
> +49 761 45894342
> i...@cm-electronics.de
> www.cm-electronics.de
>
> Clement, Mastalerz & Partner, Elektroingenieure - Handelsregister:
> Freiburg i. Br. PR700214
>


-- 
pozdrawiam
Szymon K. Janc

Reply via email to