You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/05/05 19:03:15 UTC

[GitHub] [mynewt-newt] NilsMinor commented on issue #398: Not able to build newt example project on OS X

NilsMinor commented on issue #398:
URL: https://github.com/apache/mynewt-newt/issues/398#issuecomment-624246352


   Hi @ccollins476ad ,
   
   thanks for your help. You were right, I used the wrong compiler + an old version ^^.
   
   I updated my ar-none-eabi-gcc. 
   
   arm-none-eabi-gcc -v
   ```
   Using built-in specs.
   COLLECT_GCC=arm-none-eabi-gcc
   COLLECT_LTO_WRAPPER=/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/lto-wrapper
   Target: arm-none-eabi
   Configured with: /tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/src/gcc/configure --target=arm-none-eabi --prefix=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/install-native --libexecdir=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/install-native/lib --infodir=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/install-native/share/doc/gcc-arm-none-eabi/info --mandir=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/install-native/share/doc/gcc-arm-none-eabi/man --htmldir=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/install-native/share/doc/gcc-arm-none-eabi/html --pdfdir=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/install-native/share/doc/gcc-arm-none-eabi/pdf --enable-languages=c,c++ --enable-plugins --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-newlib --with-headers=yes --with-python-dir=share/gcc-arm-none-eabi --with-sysroot=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/install-native/arm-none-eabi --build=x86_64-apple-darwin10 --host=x86_64-apple-darwin10 --with-gmp=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/build-native/host-libs/usr --with-mpfr=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/build-native/host-libs/usr --with-mpc=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/build-native/host-libs/usr --with-isl=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/build-native/host-libs/usr --with-libelf=/tmp/jenkins-GCC-9-pipeline-100_20191030_1572397548/build-native/host-libs/usr --with-host-libstdcxx='-static-libgcc -Wl,-lstdc++ -lm' --with-pkgversion='GNU Tools for Arm Embedded Processors 9-2019-q4-major' --with-multilib-list=rmprofile
   Thread model: single
   gcc version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (GNU Tools for Arm Embedded Processors 9-2019-q4-major)
   ```
   I use now the latest version 9.2.1
   
   I changed the same project to 1-latest and 0-dev and used newt 1.9.0-dev and 1.7.0 but when building the app I now get this error. What have I missed?
   
   ```
   Error: In file included from repos/apache-mynewt-core/kernel/os/include/os/os_fault.h:26,
                    from repos/apache-mynewt-core/libc/baselibc/include/assert.h:24,
                    from repos/mcuboot/boot/mynewt/src/main.c:22:
   repos/mcuboot/boot/mynewt/src/main.c: In function 'main':
   repos/apache-mynewt-core/hw/hal/include/hal/hal_debug.h:49:17: error: implicit declaration of function 'hal_debug_break' [-Werror=implicit-function-declaration]
      49 |                (hal_debug_break(), 1))
         |                 ^~~~~~~~~~~~~~~
   repos/apache-mynewt-core/kernel/os/include/os/os_fault.h:38:21: note: in expansion of macro 'HAL_DEBUG_BREAK'
      38 | #define OS_CRASH() (HAL_DEBUG_BREAK(), __assert_func(NULL, 0, NULL, NULL))
         |                     ^~~~~~~~~~~~~~~
   repos/apache-mynewt-core/libc/baselibc/include/assert.h:26:36: note: in expansion of macro 'OS_CRASH'
      26 | #define assert(x) ((x) ? (void)0 : OS_CRASH())
         |                                    ^~~~~~~~
   repos/mcuboot/boot/mynewt/src/main.c:222:5: note: in expansion of macro 'assert'
     222 |     assert(rc == 0);
         |     ^~~~~~
   cc1: all warnings being treated as errors
   ```
   
   Thanks for your support,
   Nils


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org