Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » MSPGCC
  • » [Mspgcc-users] problem generating object and elf [RSS Feed]

#1 Jan. 28, 2011 01:52:49

Dan B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] problem generating object and elf


Hi,
I'm baffled. It was time to put mspgcc4 on my lab computer and it sure
looks like it works, but... This is what I've got so far:

~~~~
set gcc=msp430-gcc
set dump=msp430-objdump.exe
set
PATH=%PATH%;C:\msp430\mspgcc\bin;C:\msp430\mspgcc\libexec\gcc\msp430\4.4.4;C:\cygwin\bin

cd C:\msp430\workspace\thermocouple\Debug

%gcc% -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -fmessage-length=0
-MMD -MP -MF "thermocouple.d" -MT"thermocouple.d" -o "thermocouple.o" -c
"../thermocouple.c"

~~~~

Now, I can cause a syntax error in the c file and it reports it. It
generates the .d file. But it won't generate the object file. And if I
copy object files from this machine and try to link.

~~~
%gcc% -mmcu=msp430x2013 -o"test.elf" ./thermocouple.o ./i2c.o
~~~

It looks like it works but no test.elf. It has to be something simple,
but I'm clueless. The old mspgcc works on that machine.

Thanks, Dan.



Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/mspgcc-users

Offline

#2 Jan. 28, 2011 12:40:01

Peter B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] problem generating object and elf


How did you build mspgcc4? The paths you have don't look like the ones
mspgcc4's build scripts use. (BTW, you should not have to add the libexec
path. The main tool driver will find the pieces it needs from there.)

If you add -v to the command line, do you see it trying to access the old
compiler or binutils?

Peter

On Thu, Jan 27, 2011 at 7:16 PM, Dan Bloomquist <d***@*akeweb.net> wrote:

>
> Hi,
> I'm baffled. It was time to put mspgcc4 on my lab computer and it sure
> looks like it works, but... This is what I've got so far:
>
> ~~~~
> set gcc=msp430-gcc
> set dump=msp430-objdump.exe
> set
>
> PATH=%PATH%;C:\msp430\mspgcc\bin;C:\msp430\mspgcc\libexec\gcc\msp430\4.4.4;C:\cygwin\bin
>
> cd C:\msp430\workspace\thermocouple\Debug
>
> %gcc% -mmcu=msp430x2013 -mendup-at=main -Os -g3 -Wall -fmessage-length=0
> -MMD -MP -MF "thermocouple.d" -MT"thermocouple.d" -o "thermocouple.o" -c
> "../thermocouple.c"
>
> ~~~~
>
> Now, I can cause a syntax error in the c file and it reports it. It
> generates the .d file. But it won't generate the object file. And if I
> copy object files from this machine and try to link.
>
> ~~~
> %gcc% -mmcu=msp430x2013 -o"test.elf" ./thermocouple.o ./i2c.o
> ~~~
>
> It looks like it works but no test.elf. It has to be something simple,
> but I'm clueless. The old mspgcc works on that machine.
>
> Thanks, Dan.
>
>
>
>
> Mspgcc-users mailing list
> Mspgcc-us***@*ists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/mspgcc-users>
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/mspgcc-users

Offline

#3 Jan. 29, 2011 20:43:33

Dan B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] problem generating object and elf


Peter Bigot wrote:
> How did you build mspgcc4? The paths you have don't look like the
> ones mspgcc4's build scripts use. (BTW, you should not have to add
> the libexec path. The main tool driver will find the pieces it needs
> from there.)
>
> If you add -v to the command line, do you see it trying to access the
> old compiler or binutils?

Hi Peter,
Thanks, I know you are busy. I got those from sourceforge, a zip labeled
something like window binaries. Anyway, I bit the bullit, got all the
cygwin tools installed and built it on this machine. What an adventure!
:) I copied the opt/xx folder to the other computer and voila, it works
fine. I didn't get the gdb tools compiled. When it got to 'checking
pthread.h' my computer went into overdrive and would not respond. I had
to unplug it to reboot.

But using older gdb tools seem to work just fine. (gdb dated 2/18/10,
proxy dated 6/19/08 )
I debug with eclipse so didn't build insight. But I will try it later
just cause...

Now that I have the source installed and building, I should learn more
about it.

Best, Dan.



Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/mspgcc-users

Offline

  • Root
  • » MSPGCC
  • » [Mspgcc-users] problem generating object and elf [RSS Feed]

Board footer

Moderator control

Enjoy the 19th of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support