I am having issues setting up my build environment

1,801 views
Skip to first unread message

Trevor Hancock

unread,
Apr 19, 2016, 12:24:41 AM4/19/16
to Kaa project
Hello,

I can't get an SDK to compile.

The main reason I am looking at Kaa is to deliver Over the air updates to our CC3200 based products.
I have downloaded the Sandbox image and that works fine.

I have tried both the windows cygwin environment and the Linux environment with similar results.

I am using a 64 bit PC so I used the cygwin64 install, - might be a mistake.

for the Linux I used Bodhi Linux in a VirtualBox vm (Bodhi is a minimalist Ubuntu distribution based on 14.04)

The host PC is Win 7 Ultimate with 16G of RAM

I go to this location http://10.0.0.17:9080/sandbox/#proj:projectId=gpio_slave_cc and hit the source button and the SDK is generated
I download with the OK button
I extract the files from the archive into a directory(folder)
I create the build directory 
I run the build script - 
./build.sh deploy

and the outputs at the end of this post are displayed 

If I enter (on the command line), the path displayed in the error message 
the compiler is there and responds with an appropriate error message. (see below)

The errors indicate the issues are with the path environment variables, but the command line says different.

I have exhausted my limited but improving Linux knowledge and spent a lot of time searching the web for clues, 
watching the webinars helped.

It would be great if someone could point out my beginners mistake so I can move on into some development

Regards
Trevor


Cygwin output

User@User-PC ~/gpio-cc-client
$ ./build.sh deploy
===================================
 ACCESS TOKEN:  dfxlmA
===================================
-- GCC not found, default path will be used
-- Default SDK location will be used
-- CC32XX SDK path: /opt/kaa/cc3200-sdk
-- Toolchain path: /opt/kaa/gcc-arm-none-eabi
-- Default SDK location will be used
-- CC32XX SDK path: /opt/kaa/cc3200-sdk
-- Toolchain path: /opt/kaa/gcc-arm-none-eabi
CMake Error at CMakeLists.txt:19 (project):
  The CMAKE_C_COMPILER:

    /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:19 (project):
  The CMAKE_CXX_COMPILER:

    /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-g++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "C:/cygwin64/home/User/gpio-cc-client/libs/kaa/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.
Enter WiFi SSID:

Enter WiFi Password:

cp: cannot stat 'libs/kaa/build/libkaa*': No such file or directory
-- GCC not found, default path will be used
-- Default SDK location will be used
-- CC32XX SDK path: /opt/kaa/cc3200-sdk
-- Toolchain path: /opt/kaa/gcc-arm-none-eabi
CMake Error at CMakeLists.txt:19 (project):
  The CMAKE_C_COMPILER:

    /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:19 (project):
  The CMAKE_CXX_COMPILER:

    /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-g++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "C:/cygwin64/home/User/gpio-cc-client/CMakeFiles/CMakeOutput.log".
./build.sh: line 112: ./demo_client: No such file or directory
./build.sh: line 145: syntax error near unexpected token `done'
./build.sh: line 145: `done'


Linux output
User@User-PC ~/gpio-cc-client
$ ./build.sh deploy
===================================
 ACCESS TOKEN:  dfxlmA
===================================
-- GCC not found, default path will be used
-- Default SDK location will be used
-- CC32XX SDK path: /opt/kaa/cc3200-sdk
-- Toolchain path: /opt/kaa/gcc-arm-none-eabi
-- Default SDK location will be used
-- CC32XX SDK path: /opt/kaa/cc3200-sdk
-- Toolchain path: /opt/kaa/gcc-arm-none-eabi
CMake Error at CMakeLists.txt:19 (project):
  The CMAKE_C_COMPILER:

    /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:19 (project):
  The CMAKE_CXX_COMPILER:

    /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-g++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "C:/cygwin64/home/User/gpio-cc-client/libs/kaa/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.
Enter WiFi SSID:

Enter WiFi Password:

cp: cannot stat 'libs/kaa/build/libkaa*': No such file or directory
-- GCC not found, default path will be used
-- Default SDK location will be used
-- CC32XX SDK path: /opt/kaa/cc3200-sdk
-- Toolchain path: /opt/kaa/gcc-arm-none-eabi
CMake Error at CMakeLists.txt:19 (project):
  The CMAKE_C_COMPILER:

    /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:19 (project):
  The CMAKE_CXX_COMPILER:

    /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-g++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "C:/cygwin64/home/User/gpio-cc-client/CMakeFiles/CMakeOutput.log".
./build.sh: line 112: ./demo_client: No such file or directory
./build.sh: line 145: syntax error near unexpected token `done'
./build.sh: line 145: `done'



User@User-PC ~/gpio-cc-client
$ /
opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc
arm
-none-eabi-gcc.exe: fatal error: no input files
compilation terminated
.



Maxim Olender

unread,
Apr 21, 2016, 4:43:03 AM4/21/16
to Kaa project
Hi Trevor!

I must note that your 'Linux output' and 'Cygwin output' are the same logs from Cygwin.  Could you please upload your Cygwin log "C:/cygwin64/home/User/gpio-cc-client/CMakeFiles/CMakeOutput.log"
and valid Linux log.

Overall, it looks like cmake can't resolve a compiler path normally.  It can be related to the Cygwin's view of the Windows filesystem tree. I recommend you to use a Linux distro since for now our build system of C SDK  targeting a native POSIX environment.  Likely that we will change this in future.

Regards,
Max

Trevor Hancock

unread,
Apr 22, 2016, 12:23:27 AM4/22/16
to Kaa project
Hi Max,

Thanks for the reply

My apologies for the copy and paste error, I have since found the clipboard options in VirtualBox.

The contents of the CMakeOutput.log are very brief
The target system is: Generic -  - 
The host system is: Windows - 6.1.7601 - AMD64


I have never liked using cygwin I  did try the 32 bit version with the same results.

I have setup a Raspberry Pi 2 with a clean install and tried again with much more promising results.

the CMakeOutput.log is equally brief

The target system is: Generic -  - 
The host system is: Linux - 4.1.19-v7+ - armv7l

the screen output is 
pi@raspberrypi:~ $ ls
CMakeLists.txt  Desktop  Documents  Downloads  gcc-arm-none-eabi-4_9-2015q2-20150609-linux.tar.bz2  gpio-cc-client  Music  Pictures  Public  python_games  Templates  Videos
pi@raspberrypi:~ $ cd gpio-cc-client/
pi@raspberrypi:~/gpio-cc-client $ ls
build  build.sh  cc32xx  CMakeCache.txt  CMakeFiles  CMakeLists.txt  libs  README.txt  src
pi@raspberrypi:~/gpio-cc-client $ ./build.sh deploy
===================================
 ACCESS TOKEN:  X0sDmQ
===================================
-- GCC not found, default path will be used
-- Default SDK location will be used
-- CC32XX SDK path: /opt/kaa/cc3200-sdk
-- Toolchain path: /opt/kaa/gcc-arm-none-eabi
-- Default SDK location will be used
-- CC32XX SDK path: /opt/kaa/cc3200-sdk
-- Toolchain path: /opt/kaa/gcc-arm-none-eabi
==================================
BUILD_TYPE = RELEASE
KAA_PLATFORM = cc32xx
KAA_MAX_LOG_LEVEL = 3
==================================
EVENTS ENABLED
LOGGING ENABLED
CONFIGURATION ENABLED
NOTIFICATION ENABLED
==================================
Successfully generated
KAA WILL BE INSTALLED TO  /usr/local 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/gpio-cc-client/libs/kaa/build
Scanning dependencies of target kaac_o
[  2%] [  4%] [  6%] [  9%] Building C object CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/sha1.c.obj
Building C object CMakeFiles/kaac_o.dir/src/kaa/platform-impl/posix/posix_kaa_client.c.obj
Building C object CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/sha.c.obj
Building C object CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/kaa_failover_strategy.c.obj
/opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")Syntax error: word unexpected (expecting ")")

CMakeFiles/kaac_o.dir/build.make:54: recipe for target 'CMakeFiles/kaac_o.dir/src/kaa/platform-impl/posix/posix_kaa_client.c.obj' failed
make[2]: *** [CMakeFiles/kaac_o.dir/src/kaa/platform-impl/posix/posix_kaa_client.c.obj] Error 2
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/kaac_o.dir/build.make:123: recipe for target 'CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/sha1.c.obj' failed
make[2]: *** [CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/sha1.c.obj] Error 2
/opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")
CMakeFiles/kaac_o.dir/build.make:100: recipe for target 'CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/sha.c.obj' failed
make[2]: *** [CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/sha.c.obj] Error 2
/opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")
CMakeFiles/kaac_o.dir/build.make:77: recipe for target 'CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/kaa_failover_strategy.c.obj' failed
make[2]: *** [CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/kaa_failover_strategy.c.obj] Error 2
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/kaac_o.dir/all' failed
make[1]: *** [CMakeFiles/kaac_o.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
Enter WiFi SSID:
xxxxxxxx
Enter WiFi Password:
xxxxxxxx
cp: cannot stat ‘libs/kaa/build/libkaa*’: No such file or directory
CMake Error at CMakeLists.txt:31 (include):
  include could not find load file:

    /home/pi/cc32xx/cc32xx.cmake


CMake Error at CMakeLists.txt:40 (add_executable):
  add_executable called with incorrect number of arguments


CMake Error at CMakeLists.txt:41 (target_link_libraries):
  Cannot specify link libraries for target "demo_client" which is not built
  by this project.


-- Configuring incomplete, errors occurred!
See also "/home/pi/gpio-cc-client/CMakeFiles/CMakeOutput.log".
./build.sh: line 112: ./demo_client: No such file or directory
./build.sh: line 145: syntax error near unexpected token `done'
./build.sh: line 145: `done'
pi@raspberrypi:~/gpio-cc-client $ 

I work in an office full of Windows PCs I will try again on a machine with Ubuntu installed at home over the weekend

Regards
Trevor

Maxim Olender

unread,
Apr 22, 2016, 10:08:32 AM4/22/16
to Kaa project
Hi Trevor!

I see there two kinds of errors. First is:


/opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")Syntax error: word unexpected (expecting ")")

CMakeFiles/kaac_o.dir/build.make:54: recipe for target 'CMakeFiles/kaac_o.dir/src/kaa/platform-impl/posix/posix_kaa_client.c.obj' failed
make[2]: *** [CMakeFiles/kaac_o.dir/src/kaa/platform-impl/posix/posix_kaa_client.c.obj] Error 2
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/kaac_o.dir/build.make:123: recipe for target 'CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/sha1.c.obj' failed
make[2]: *** [CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/sha1.c.obj] Error 2
/opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")
CMakeFiles/kaac_o.dir/build.make:100: recipe for target 'CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/sha.c.obj' failed
make[2]: *** [CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/sha.c.obj] Error 2
/opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")
CMakeFiles/kaac_o.dir/build.make:77: recipe for target 'CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/kaa_failover_strategy.c.obj' failed
make[2]: *** [CMakeFiles/kaac_o.dir/src/kaa/platform-impl/common/kaa_failover_strategy.c.obj] Error 2



To find out what happened, navigate to the build dir and run verbose build:
cd build
VERBOSE=1 make


And post log here.

Second issue will require deeper investigation. I'll check the code and return with some info.

Regards,
Max

Trevor Hancock

unread,
Apr 24, 2016, 8:08:57 AM4/24/16
to Kaa project
Hi Max,

Verbose make output

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2016.04.24 20:55:47 =~=~=~=~=~=~=~=~=~=~=~=
clear
pi@raspberrypi
:~/gpio-cc-client/libs/kaa/build $ ls
CMakeCache.txt  CMakeFiles  cmake_install.cmake  Makefile
pi@raspberrypi
:~/gpio-cc-client/libs/kaa/build $ VERBOSE=1 make
/usr/bin/cmake -H/home/pi/gpio-cc-client/libs/kaa -B/home/pi/gpio-cc-client/libs/kaa/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/pi/gpio-cc-client/libs/kaa/build/CMakeFiles /home/pi/gpio-cc-client/libs/kaa/build/CMakeFiles/progress.marks
make
-f CMakeFiles/Makefile2 all
make
[1]: Entering directory '/home/pi/gpio-cc-client/libs/kaa/build'
make
-f CMakeFiles/kaac_o.dir/build.make CMakeFiles/kaac_o.dir/depend
make
[2]: Entering directory '/home/pi/gpio-cc-client/libs/kaa/build'
cd
/home/pi/gpio-cc-client/libs/kaa/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/gpio-cc-client/libs/kaa /home/pi/gpio-cc-client/libs/kaa /home/pi/gpio-cc-client/libs/kaa/build /home/pi/gpio-cc-client/libs/kaa/build /home/pi/gpio-cc-client/libs/kaa/build/CMakeFiles/kaac_o.dir/DependInfo.cmake --color=
make
[2]: Leaving directory '/home/pi/gpio-cc-client/libs/kaa/build'
make
-f CMakeFiles/kaac_o.dir/build.make CMakeFiles/kaac_o.dir/build
make
[2]: Entering directory '/home/pi/gpio-cc-client/libs/kaa/build'
/usr/bin/cmake -E cmake_progress_report /home/pi/gpio-cc-client/libs/kaa/build/CMakeFiles 1
[  2%] Building C object CMakeFiles/kaac_o.dir/src/kaa/platform-impl/posix/posix_kaa_client.c.obj
/opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc  -DCC32XX -DCC32XX_PLATFORM -DUSER_INPUT_ENABLE -Dgcc -mthumb -mcpu=cortex-m4 -ffunction-sections  -fdata-sections -MD -O0  -fPIC -Wall -std=gnu99 -DKAA_MAX_LOG_LEVEL=3 -O3 -DNDEBUG -Os -s -I/opt/kaa/cc3200-sdk/inc -I/opt/kaa/cc3200-sdk/driverlib -I/opt/kaa/cc3200-sdk/simplelink -I/opt/kaa/cc3200-sdk/simplelink/include -I/opt/kaa/cc3200-sdk/simplelink/source -I/opt/kaa/cc3200-sdk/simplelink_extlib/provisioninglib -I/opt/kaa/cc3200-sdk/example/common -I/opt/kaa/cc3200-sdk/oslib -I/home/pi/gpio-cc-client/libs/kaa/src -I/home/pi/gpio-cc-client/libs/kaa/src/kaa    -o CMakeFiles/kaac_o.dir/src/kaa/platform-impl/posix/posix_kaa_client.c.obj   -c /home/pi/gpio-cc-client/libs/kaa/src/kaa/platform-impl/posix/posix_kaa_client.c
/opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")
CMakeFiles/kaac_o.dir/build.make:54: recipe for target 'CMakeFiles/kaac_o.dir/src/kaa/platform-impl/posix/posix_kaa_client.c.obj' failed
make
[2]: *** [CMakeFiles/kaac_o.dir/src/kaa/platform-impl/posix/posix_kaa_client.c.obj] Error 2

make
[2]: Leaving directory '/home/pi/gpio-cc-client/libs/kaa/build'

CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/kaac_o.dir/all' failed
make
[1]: *** [CMakeFiles/kaac_o.dir/all] Error 2

make
[1]: Leaving directory '/home/pi/gpio-cc-client/libs/kaa/build'

Makefile:117: recipe for target 'all' failed
make
: *** [all] Error 2

pi@raspberrypi
:~/gpio-cc-client/libs/kaa/build $


The CMakeOutput.log file is also much larger now I have attached it to this reply

Regards
Trevor
...
CMakeOutput.log

Max Payne

unread,
Apr 25, 2016, 9:16:03 AM4/25/16
to Trevor Hancock, Kaa project
Hi Trevor,

Looks like there is something wrong with arm-none-eabi-gcc.

Could you please post an output of the following commands:
uname -a
echo $0
echo $SHELL
ps
file /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc
head /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc

Regards,
Max
--
You received this message because you are subscribed to a topic in the Google Groups "Kaa project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kaaproject/KtVSFmA93KM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kaaproject+...@googlegroups.com.
Visit this group at https://groups.google.com/group/kaaproject.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaaproject/f9e95632-2632-4a88-877d-4ba19c6cef6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Trevor Hancock

unread,
Apr 26, 2016, 2:38:33 AM4/26/16
to Kaa project, trevor....@gmail.com
Hi Max,

Thanks again for your help

The requested outputs
putty ssh did not like the non printable characters so this is copied from the raspberry pi

regards
Trevor

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
pi@raspberrypi
:~ $ echo $0
/bin/bash
pi@raspberrypi
:~ $ echo $SHELL
/bin/bash
pi@raspberrypi
:~ $ ps
  PID TTY          TIME CMD
 
1973 pts/0    00:00:00 bash
 
1984 pts/0    00:00:00 ps
pi@raspberrypi
:~ $ file /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc
/opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.8, stripped
pi@raspberrypi
:~ $ head /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc
ELF x�4�+
               
4     ( 44�4� T T�T� ���
                                                     
�
                                                       
�
                                                           
ħ
                                                           
�w �
                                                                   
���� h h�h�   �
                                                                                     
P�tdH<
HHt"t" Q�td /lib/ld-linux.so.2 GNU ���eWh"�|UA4`D 9��fv?O��RP *g8z}�q7<>_ ^o �� �!~xQ�Id :6;,J� C]\nB�)rc    ï¿½sXE�Hi {� Z#b��M

�Km .(& $L51G/0T=FYV+NSp [ u-w2@tjky%'
   ï¿½3���a� l�� "
� � Y � � � � $ � q G q �
                                                       
!
� �� � � j � � �
+
  I
� x ! � q � � P � x � � <�
                                       
! � �
+
 
� �"� � n e � � �
                            ` ! � � � � N . [ U � "
! � � �
                                                                               
                                                                               
+ K . 8D
F� ;
� 6 x m! M �H ! ( � � � � � �   _ � U � r � j T � � y � � @ �� ! � � � ! � " � � ! � ' ( ! % ! � ; � � R �,! �
� j W 4 { (�
                  ! # � H ! 5 ? � �    
+"

 
� \�
     
! x / & ! � � �,! K E ( � � ! � � C 0
pi@raspberrypi
:~ $
...

Max Payne

unread,
Apr 26, 2016, 10:10:57 AM4/26/16
to Trevor Hancock, Kaa project

Hi Trevor!

Seems that you are using the arm-none-eabi-gcc binary that was compiled for x86 architecture. But, raspberry is built above ARM processor.

Using raspberry for this purpose is a bit tricky. You can try to find some info about how to use cross-compile bare metal projects on raspberry, like this: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=99127 . It is an uncommon case though.

I suggest you to use x86 Linux (you can install it to the virtual machine) and arm-none-eabi cross-compiler.

Regards,

Max

-- You received this message because you are subscribed to a topic in the Google Groups "Kaa project" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/kaaproject/KtVSFmA93KM/unsubscribe. To unsubscribe from this group and all its topics, send an email to kaaproject+...@googlegroups.com. Visit this group at https://groups.google.com/group/kaaproject. To view this discussion on the web visit https://groups.google.com/d/msgid/kaaproject/3168dab8-b240-484f-9d1c-5c533685371e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

Trevor Hancock

unread,
Apr 28, 2016, 2:54:14 AM4/28/16
to Kaa project, trevor....@gmail.com
Hi Max,
I have moved to the Bodhi install in the VM
Here is what I get

root@bodhi-VirtualBox:/home/bodhi/cc-gpio-client# ./build.sh clean
===================================
 ACCESS TOKEN:  ufGS4q
===================================
./build.sh: line 145: syntax error near unexpected token `done'
./build.sh: line 145: `done'
root@bodhi-VirtualBox:/home/bodhi/cc-gpio-client# ./build.sh deploy
===================================
 ACCESS TOKEN:  UEJCiG
===================================
-- GCC not found, default path will be used
-- Default SDK location will be used
-- CC32XX SDK path: /opt/kaa/cc3200-sdk
-- Toolchain path: /opt/kaa/gcc-arm-none-eabi
CMake Error at toolchains/cc32xx.cmake:71 (set):
  Syntax error in cmake code at
    /home/bodhi/cc-gpio-client/libs/kaa/toolchains/cc32xx.cmake:71
  when parsing string
    -mthumb -mcpu=cortex-m4 -ffunction-sections \
   -fdata-sections -MD -O0 
  syntax error, unexpected cal_SYMBOL, expecting $end (71)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:90 (include)
  CMakeLists.txt:19 (project)
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:


root@bodhi-VirtualBox:/home/bodhi/cc-gpio-client# ls
build.sh  cc32xx  CMakeCache.txt  CMakeFiles  CMakeLists.txt  libs  README.txt  src

root@bodhi-VirtualBox:/home/bodhi/cc-gpio-client# uname -a
Linux bodhi-VirtualBox 4.2.0-30-generic #36~14.04.1-Ubuntu SMP Fri Feb 26 18:49:23 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

root@bodhi-VirtualBox:/home/bodhi/cc-gpio-client# echo $0
bash

root@bodhi-VirtualBox:/home/bodhi/cc-gpio-client# echo $SHELL
/bin/bash

root@bodhi-VirtualBox:/home/bodhi/cc-gpio-client# ps
  PID TTY          TIME CMD
 2918 pts/0    00:00:00 sudo
 2919 pts/0    00:00:00 su
 2920 pts/0    00:00:00 bash
 3479 pts/0    00:00:00 ps

root@bodhi-VirtualBox:/home/bodhi/cc-gpio-client# file /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc
/opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: ELF 32-bit LSB  executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped

root@bodhi-VirtualBox:/home/bodhi/cc-gpio-client# head /opt/kaa/gcc-arm-none-eabi/bin/arm-none-eabi-gcc                                                               
ELFx4 +
       4        (444  TTTÄ
                          Ä
                           Ä
                            ħ
                            Ôw¤ 
                                ¤¤øøhhh  Ä
                                         PåtdH<
HHt"t"Qåtd/lib/ld-linux.so.2GNƒœ†eWh"‘|UA4`D9 ›fv?O—‚RP*g8z}Šq7<>_^o˜– ‡!~xQ Id:6;,J“C]\nB‰)rc  …sXE•HiŽ{šZ#bˆ‹M

„Km$L51G/0T=FYV+NSp[ u-w2@tjky%'
    3Œƒ€a”l™»"ù«YÀÈüÓ$àúqGqä¯
                            !
’ðò–jê €
+
 I¤x!¦q ØP‘xñÈ<¯
               !ó 
+
 ¢ã"Ô£ne£Šš
           `!˰ñÒN.[Uö"!å‹Ï
                            
                            +K.8Dß
F¼;
¦6xm!M•H!(åØùùÌ  _—UÏèrÆjT Ûy„Ì@Ý !¶ªˆ!±"׸ !ê'(!%à!„;øÐR€,!€
Þj W4{(°
       !#‘H!5?¢Ð
+"
  Î\¯
    !x/&à!þûÀ,!KE(¶ä! ë½C0
root@bodhi-VirtualBox:/home/bodhi/cc-gpio-client# 

...
CMakeError.log
CMakeOutput.log

Max Payne

unread,
May 30, 2016, 9:47:38 AM5/30/16
to Trevor Hancock, Kaa project

Hi Trevor!

Seems to me that you are using arm-none-eabi-gcc binary that was compiled for x86 architecture. But raspberry is built above ARM processor.

Using raspberry for this purpose is a bit tricky. You can try to find some info about how to cross-compile for bare-metal on raspberry, like this: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=99127 . But it is an uncommon case.

I suggest you to use x86 Linux (you can install it to the virtual machine) and arm-none-eabi cross-compiler.


Regards,

Max

-- You received this message because you are subscribed to a topic in the Google Groups "Kaa project" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/kaaproject/KtVSFmA93KM/unsubscribe. To unsubscribe from this group and all its topics, send an email to kaaproject+...@googlegroups.com. Visit this group at https://groups.google.com/group/kaaproject. To view this discussion on the web visit https://groups.google.com/d/msgid/kaaproject/3168dab8-b240-484f-9d1c-5c533685371e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

Max Payne

unread,
May 30, 2016, 11:17:24 AM5/30/16
to Trevor Hancock, Kaa project

Hi Trevor!

Sorry for such a late reply. Something wrong with my email client, I was sure that I've sent reply to you.

I suspect that cmake v2.8 contains a bug when parsing '\' symbol and we are in process of upgrading required version for our applications: http://jira.kaaproject.org/browse/APP-73

Right now, you can upgrade your cmake to version 3.0 or higher, or try to reconstruct flag string (i.e. remove '\' character and following newline).


Regards,

Max

Reply all
Reply to author
Forward
0 new messages