Which Linux is this? It looks like it is toolchain issue..Welcome to Ubuntu 22.04.2 LTS (GNU/Linux
5.15.90.1-microsoft-standard-WSL2 x86_64)

i am using WSL on Win10

Also, could you do `newt info` and show result?
Apache Newt 1.9.0 / 5e4874f / 2021-03-24_23:48

Repository info:
* apache-mynewt-core: ab4c872471d65be1375f6bb49f21d58cdf389bac, 0.0.1, (dirty: local changes) * apache-mynewt-mcumgr: ab4c872471d65be1375f6bb49f21d58cdf389bac, 0.0.0, (dirty: local changes) * apache-mynewt-nimble: ab4c872471d65be1375f6bb49f21d58cdf389bac, 0.0.0, (dirty: local changes) * mcuboot: ab4c872471d65be1375f6bb49f21d58cdf389bac, 0.0.0, (dirty: local changes) * my_project (project): ab4c872471d65be1375f6bb49f21d58cdf389bac (dirty: local changes)


on Windows I can build for mys target with no problems, but native builds are not working due to POSIX issues..

Thank you for your time.



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

Am 12.04.2023 um 11:48 schrieb Szymon Janc:
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



Reply via email to