msp430-gcc-full-linux-installer-2.1.1.0.run

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

msp430-gcc-full-linux-installer-2.1.1.0.run

Kees Schoenmakers
Hello All,

I downloaded and installed this toolkit.  After that I tried to build
my project with it.

It fails with the following errors:

[snip]

/opt/ti/gcc/bin/msp430-elf-gcc -c Modbusserial.c -g -I
/opt/ti/gcc/include -std=gnu99 -mmcu=msp430f449 -fms-extensions
/opt/ti/gcc/bin/msp430-elf-gcc -c Hartconversion.c -g -I
/opt/ti/gcc/include -std=gnu99 -mmcu=msp430f449 -fms-extensions
/opt/ti/gcc/bin/msp430-elf-gcc -c Hartplatformdep.c -g -I
/opt/ti/gcc/include -std=gnu99 -mmcu=msp430f449 -fms-extensions
/opt/ti/gcc/bin/msp430-elf-gcc -o mymy.elf   Dataalloc.o Main.o
Timers.o Subroutines.o Eerom.o Modbusmaster.o Hartserial.o
Hartprocess.o Display.o Displayapp.o Hartunivers.o Hartcompractice.o
Harttransmitspec.o Hartmain.o Harttimers.o Sensors.o Modbusserial.o
Hartconversion.o Hartplatformdep.o  -L/opt/ti/gcc/include
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld:
error: Dataalloc.o uses MSP430 instructions but
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o
uses MSP430X
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld:
failed to merge target specific data of file Dataalloc.o
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld:
error: Main.o uses MSP430 instructions but
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o
uses MSP430X
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld:
failed to merge target specific data of file Main.o
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld:
error: Timers.o uses MSP430 instructions but
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o
uses MSP430X
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld:
failed to merge target specific data of file Timers.o
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld:
error: Subroutines.o uses MSP430 instructions but
/opt/ti/gcc/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/lib/crt0.o
uses MSP430X

[snip]

Is there an option that I missed to force it to build for the non
MSP430X memory-model?

best regards

Kees

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Mspgcc-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: msp430-gcc-full-linux-installer-2.1.1.0.run

DJ Delorie

> Is there an option that I missed to force it to build for the non
> MSP430X memory-model?

If you specify -mmcu= when compiling, specify the same -mmcu= when
linking, else the tools don't know which libraries to use.

If that fails, add -mcpu=msp430x or -mcpu=msp430 to force the issue.

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Mspgcc-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users