Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux binary distribution not available #77

Closed
pbrier opened this issue Jul 8, 2012 · 6 comments
Closed

Linux binary distribution not available #77

pbrier opened this issue Jul 8, 2012 · 6 comments

Comments

@pbrier
Copy link
Member

pbrier commented Jul 8, 2012

Make a linux binary distribution available, optionally including correct GCC version, as the MSPGCC version in most major linux distributions is outdated and incompatible.

@pbrier
Copy link
Member Author

pbrier commented Jul 8, 2012

A temporary solution is the download here:
https://github.com/downloads/energia/Energia/energia-0101e0007-beta-linux.tgz

It is a build version of the Energia software, and source code of GCC. The GCC compiler needs to be build with
build-mspgcc in the hardware/tools folder (as root).

A final solution would be to include a compiled GCC for the various architectures (32/64 bit, ARM, etc.).

pbrier pushed a commit that referenced this issue Jul 8, 2012
@morrowsend
Copy link

After first installing missing dependency "texinfo" and following the info here: http://blog.onaclovtech.com/2012/07/energia-setup.html using LinuxMint 12, When trying to compile using Energia (running as root) I get the following error: Cannot run program "msp430-G++": java.io.IOException: error=2, No such file or directory" Is this a new problem?

@pbrier
Copy link
Member Author

pbrier commented Jul 27, 2012

Seems the binaries are not installed, or not found in the right location.
As I recall the binaries of the compiler should be in /opt/mspgcc/bin,
And this should be included in the search path in the energia starup script.

@morrowsend
Copy link

there are some items in /opt/mspgcc/bin, but not the G++ compiler:
msp430-addr2line msp430-gdb msp430mcu-config msp430-readelf
msp430-ar msp430-gdbtui msp430-nm msp430-run
msp430-as msp430-gprof msp430-objcopy msp430-size
msp430-c++filt msp430-ld msp430-objdump msp430-strings
msp430-elfedit msp430-ld.bfd msp430-ranlib msp430-strip

I installed mspgcc from synaptic since 'find' could not locate msp430-g++ on my machine, even after running the build script. I then added /usr/bin (where msp430-g++ is located) to the energia start script. When I try to compile the Blink example, I get the following:
/home/user1/Desktop/energia-beta/hardware/msp430/cores/msp430/wiring_analog.c: In function ‘analogWrite’:
/home/user1/Desktop/energia-beta/hardware/msp430/cores/msp430/wiring_analog.c:104:33: error: ‘TA0CCR0’ undeclared (first use in this function)
/home/user1/Desktop/energia-beta/hardware/msp430/cores/msp430/wiring_analog.c:104:33: note: each undeclared identifier is reported only once for each function it appears in
/home/user1/Desktop/energia-beta/hardware/msp430/cores/msp430/wiring_analog.c:105:33: error: ‘TA0CCTL1’ undeclared (first use in this function)
/home/user1/Desktop/energia-beta/hardware/msp430/cores/msp430/wiring_analog.c:106:33: error: ‘TA0CCR1’ undeclared (first use in this function)
/home/user1/Desktop/energia-beta/hardware/msp430/cores/msp430/wiring_analog.c:107:33: error: ‘TA0CTL’ undeclared (first use in this function)

@kevix
Copy link

kevix commented Jul 30, 2012

I did a bunch of things and I think these 2 are the key ones:
I have a msp430g2231 mcu.
I added
#include "/home/kevin/PROJECTS/ENERGIA/energia-0101e0007-beta/hardware/tools/mspgcc-4.6/msp430mcu-20120406/upstream/msp430g2231.h"
to Tone.cpp and wiring_analog.c before the first includes and this seem to satisfy the compiler with the 'TA0CTL undeclared'

@pbrier
Copy link
Member Author

pbrier commented Jul 30, 2012

you are running into issue #90, with incompatible version of GCC. Please look at the buildlog and see why the compile of GCC fails (probably some dependcy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants