cancel
Showing results for 
Search instead for 
Did you mean: 

Wi-Fi Combo

Anonymous
Not applicable

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

0 Likes
6 Replies
Anonymous
Not applicable

Saw this same issue compiling from the command line on a linux64 host.  Seems there is some problem with the Linux64/arm-none-eabi-gcc ver 4.9 bundled with the 3.5.2 sdk.  Updating to the latest arm-none-eabi-gcc from this source, https://developer.arm.com/open-source/gnu-toolchain/gnu-rm​ ver 5.4 got me past that error but some other syntactical problems appeared.

Ultimately, I installed the latest 4.9 version from this page https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update​, which does build the sdk without error.

To use this from the command line I am using the TOOLCHAIN_PATH environment variable to select this alternate gcc compiler toolset.  Assuming the toolset downloaded above is untarred under ~/arm-gcc the command line used to build one of the sdk examples would be

$ ./make TOOLCHAIN_PATH=~/arm-gcc/gcc-arm-none-eabi-4_9-2015q3/bin/ demo.aws_iot.pub_sub.subscriber-BCM943362WCD4

0 Likes
Anonymous
Not applicable

I confirm that on another Ubuntu 16.04 64bit system where I have installed the `gcc-arm-embedded` package from GNU ARM Embedded Toolchain in Launchpad the problem does not appear.

br1@shiva:~$ arm-none-eabi-gcc --version

arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.3.1 20160307 (release) [ARM/embedded-5-branch revision 234589]

Copyright (C) 2015 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

br1@shiva:~$ which arm-none-eabi-gcc

/usr/bin/arm-none-eabi-gcc

0 Likes
MichaelF_56
Moderator
Moderator

Moving to the Linux support forum, adding the Linux AE team: seyhanvsbgangi

0 Likes
MichaelF_56
Moderator
Moderator

Moving back to the WICED Forum as I was informed by the Linux team that this is not a Linux partner module discussion.

I was also told to reference this Help Article as it may be helpful: Setup Eclipse Kepler for WICED SDK on Linux - Ubuntu 14.04 or 12.04

0 Likes
Anonymous
Not applicable

I just tried this on a 64 bit Ubuntu 14.04  and I don't see this issue. Attached are the logs.

0 Likes