Jump to content

"Blinky" fails to compile

Recommended Posts

The Blinky and every other example does not compile.  Clearly there is nothing wrong with the example code.   The error is with the way Energia is set up on my system.  I'm running Linux Ubuntu 16.04 LTS.  This is a 64-bit system.


The error copy and pasted from Energia is.

fork/exec /home/chris/.energia15/packages/energia/tools/arm-none-eabi-gcc/4.8.4-20140725/bin/arm-none-eabi-g++: no such file or directory
Error compiling for board LaunchPad (Tiva C) w/ tm4c123 (80MHz).

I check to see if the file is actually there and what kind of file it is using the command "file" and get this

chris@chris-Satellite-A665:~$ file /home/chris/.energia15/packages/energia/tools/arm-none-eabi-gcc/4.8.4-20140725/bin/arm-none-eabi-g++
/home/chris/.energia15/packages/energia/tools/arm-none-eabi-gcc/4.8.4-20140725/bin/arm-none-eabi-g++: 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

The relevant part is "ELF 32-bit LSB executable"


The UNIX error "no such file..." can be misleading.  What it means in this case is that there is no interpreter to run the file.  (A 32-bit executable needs a 32-bit linker and the libraries that go with it.) 


Energia might work on a Ubuntu system that has been upgraded in place for years because maybe those old 32-bit files were never deleted during the upgrades?  I don't know  This is a clean install of the current version of Ubuntu.


As an experiment I tried to compile an Arduino sketch using the stock Arduino IDE.  It works perfectly.   


Is there a work around for this?











Link to post
Share on other sites

Hi Chris,


maybe the installation instructions for CCS under Linux will help?

The part I'm meaning is:


New in CCSv6.2.0 Starting with this version of CCS, the application is natively 64-bit and only requires one 32-bit library installed.

From a terminal prompt, issue the following command to install it: sudo apt-get install libc6:i386 This is due to the fact Linux 64-bit versions of the TI compilers were not yet ready.



Link to post
Share on other sites
  • 6 months later...

well, I had the same trouble. it was fixed by the following lines:

sudo apt-get install libc6:i386 libx11-6:i386 libasound2:i386 libatk1.0-0:i386 libcairo2:i386 libcups2:i386 libdbus-glib-1-2:i386 libgconf-2-4:i386 libgdk-pixbuf2.0-0:i386 libgtk-3-0:i386 libice6:i386 libncurses5:i386 libsm6:i386 liborbit2:i386 libudev1:i386 libusb-0.1-4:i386 libstdc++6:i386 libxt6:i386 libxtst6:i386 libgnomeui-0:i386 libusb-1.0-0-dev:i386 libcanberra-gtk-module:i386


sudo ln -s /lib/i386-linux-gnu/libudev.so.1 /lib/libudev.so.0

As the previous response, it ws related to the Code Composer Studio Installation, those lines are taken from


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...