6 Replies Latest reply on Nov 16, 2016 5:46 PM by AxLi_1746341

    Internal compiler error on Linux

      When trying to compile WICED 3.5.2 on Ubuntu 16.06 Linux 64 bit system I get:

       

      WICED/platform/GCC/math_newlib.c:30:5: internal compiler error: Illegal instruction

           x -= ( (int) ( x / ( 2 * PI ) ) ) * 2 * PI;

       

      More output below.

       

      br1@void:~/wiced/WICED-SDK-3.5.2$ ./make snip.scan-BCM94343WWCD1 VERBOSE=1 JOBS=1

      MAKEFILE MAKECMDGOALS=snip.scan-BCM94343WWCD1 OTA2_SUPPORT is disabled

      ./tools/common/Linux64/mkdir -p build/snip.scan-BCM94343WWCD1/binary build/snip.scan-BCM94343WWCD1/modules build/snip.scan-BCM94343WWCD1/libraries build/snip.scan-BCM94343WWCD1/resources

      "./tools/common/Linux64/make" -r  -j1   -f ./tools/makefiles/wiced_elf.mk snip.scan-BCM94343WWCD1

      make[1]: Entering directory `/home/br1/wiced/WICED-SDK-3.5.2'

      echo Building Bootloader

      Building Bootloader

      "./tools/common/Linux64/make" -r -f ./Makefile waf.bootloader-NoOS-BCM94343WWCD1 -Ibuild/snip.scan-BCM94343WWCD1  SFLASH= EXTERNAL_WICED_GLOBAL_DEFINES= SUB_BUILD=bootloader

      MAKEFILE MAKECMDGOALS=waf.bootloader-NoOS-BCM94343WWCD1 OTA2_SUPPORT is disabled

      make[2]: Entering directory `/home/br1/wiced/WICED-SDK-3.5.2'

      ./tools/common/Linux64/mkdir -p build/waf.bootloader-NoOS-BCM94343WWCD1/binary build/waf.bootloader-NoOS-BCM94343WWCD1/modules build/waf.bootloader-NoOS-BCM94343WWCD1/libraries build/waf.bootloader-NoOS-BCM94343WWCD1/resources

      "./tools/common/Linux64/make" -r   -f ./tools/makefiles/wiced_elf.mk waf.bootloader-NoOS-BCM94343WWCD1

      make[3]: Entering directory `/home/br1/wiced/WICED-SDK-3.5.2'

      "./tools/ARM_GNU/bin/Linux64/arm-none-eabi-gcc" -isystem ./tools/ARM_GNU/bin/Linux64/../../include -isystem ./tools/ARM_GNU/bin/Linux64/../../lib/include -isystem ./tools/ARM_GNU/bin/Linux64/../../lib/include-fixed @build/waf.bootloader-NoOS-BCM94343WWCD1/libraries/common_GCC.c_opts -o build/waf.bootloader-NoOS-BCM94343WWCD1/Modules/WICED/platform/GCC/math_newlib.o WICED/platform/GCC/math_newlib.c

      WICED/platform/GCC/math_newlib.c: In function 'sin':

      WICED/platform/GCC/math_newlib.c:30:5: internal compiler error: Illegal instruction

           x -= ( (int) ( x / ( 2 * PI ) ) ) * 2 * PI;

           ^

      Please submit a full bug report,

      with preprocessed source if appropriate.

      See <http://gcc.gnu.org/bugs.html> for instructions.

      make[3]: *** [build/waf.bootloader-NoOS-BCM94343WWCD1/Modules/WICED/platform/GCC/math_newlib.o] Error 1

      make[3]: Leaving directory `/home/br1/wiced/WICED-SDK-3.5.2'

      make[2]: *** [main_app] Error 2

      make[2]: Leaving directory `/home/br1/wiced/WICED-SDK-3.5.2'

      make[1]: *** [bootloader] Error 2

      make[1]: Leaving directory `/home/br1/wiced/WICED-SDK-3.5.2'

      make: *** [main_app] Error 2