chipKIT® Development Platform

Inspired by Arduino™

Compiler error--Max32

Created Sat, 07 Jan 2012 05:27:53 +0000 by kciszewski


kciszewski

Sat, 07 Jan 2012 05:27:53 +0000

I ran the "blink" sketch on the chipkit Max32, and got the error message shown below--the sketch failed to compile. It looks like there are software library problems or path problems (this a very long path if it's accurate)--the program apparently couldn't find a particular file. Any thoughts on this?

In file included from c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\compiler\pic32-tools\bin../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/stdlib.h:7:0,

from C:\Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\cores\pic32/WProgram.h:5,

from Blink.cpp:8: c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\compiler\pic32-tools\bin../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/stddef.h:75:26: fatal error: machine/ansi.h: No such file or directory compilation terminated.


Jacob Christ

Sat, 07 Jan 2012 16:52:23 +0000

Make sure you select the Max32 from the boards list.

Jacob


kciszewski

Sat, 07 Jan 2012 20:38:44 +0000

I tried both max32 Chipkit Max32 and Chipkit Max32 for USB serial--I got the same error in both situations.


jumpin_jack

Wed, 11 Jan 2012 20:32:04 +0000

Can you Hold down Shift and press the Verify button? That should give you the full output from the build process. You can then post the output here.


kciszewski

Thu, 12 Jan 2012 04:04:45 +0000

Using ChipKit Max 32 after just plugging board into USB cable:

In file included from c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\compiler\pic32-tools\bin../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/stdlib.h:7:0, from C:\Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\cores\pic32/WProgram.h:5, from Blink.cpp:8: c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\compiler\pic32-tools\bin../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/stddef.h:75:26: fatal error: machine/ansi.h: No such file or directory compilation terminated.


After pressing reset button on board and using ChipKit Max 32:

C \Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822/hardware/pic32/compiler/pic32-tools/bin/pic32-g++ -O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -g -mdebugger -Wcast-align -mprocessor=32MX795F512L -DF_CPU=80000000L -DARDUINO=22 -D_BOARD_MEGA_= -Danything_you_want -IC \Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\examples\1.Basics\Blink -IC \Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\cores\pic32 C \DOCUME~1\KENNET~1\LOCALS~1\Temp\build8966404362916161869.tmp\Blink.cpp -o C \DOCUME~1\KENNET~1\LOCALS~1\Temp\build8966404362916161869.tmp\Blink.cpp.o In file included from c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\compiler\pic32-tools\bin../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/stdlib.h:7:0, from C:\Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\cores\pic32/WProgram.h:5, from C:\DOCUME~1\KENNET~1\LOCALS~1\Temp\build8966404362916161869.tmp\Blink.cpp:8: c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\compiler\pic32-tools\bin../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/stddef.h:75:26: fatal error: machine/ansi.h: No such file or directory compilation terminated.


After pressing reset button on board and using ChipKit Max 32 USB for Serial:

C \Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822/hardware/pic32/compiler/pic32-tools/bin/pic32-g++ -O2 -c -mno-smart-io -w -fno-exceptions -ffunction-sections -fdata-sections -g -mdebugger -Wcast-align -mprocessor=32MX795F512L -DF_CPU=80000000L -DARDUINO=22 -D_BOARD_MEGA_USB_ -Danything_you_want -IC \Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\examples\1.Basics\Blink -IC \Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\cores\pic32 C \DOCUME~1\KENNET~1\LOCALS~1\Temp\build6346823401130485385.tmp\Blink.cpp -o C \DOCUME~1\KENNET~1\LOCALS~1\Temp\build6346823401130485385.tmp\Blink.cpp.o In file included from c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\compiler\pic32-tools\bin../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/stdlib.h:7:0, from C:\Documents and Settings\Kenneth Ciszewski\My Documents\Design Spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\cores\pic32/WProgram.h:5, from C:\DOCUME~1\KENNET~1\LOCALS~1\Temp\build6346823401130485385.tmp\Blink.cpp:8: c:\documents and settings\kenneth ciszewski\my documents\design spark\mpide-0022-windows-20110822\mpide-0022-windows-20110822\mpide-0022-windows-20110822\hardware\pic32\compiler\pic32-tools\bin../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/stddef.h:75:26: fatal error: machine/ansi.h: No such file or directory compilation terminated.


kciszewski

Mon, 16 Jan 2012 02:26:51 +0000

I solved this problem. It turns out if the mpide-0022-windows-20110822.zip zip file is unzipped at the C:\mpide-0022-windows-20110822 level, it works properly. I originally unzipped it at a level much farther down the subfolder chain, and this is where it didn't work.

It really would have helped if the documentation would have made this clear.!!!!!