chipKIT® Development Platform

Inspired by Arduino™

Compiling the ChipKIT compiler

Created Tue, 26 Feb 2013 15:12:30 +0000 by kinsa


kinsa

Tue, 26 Feb 2013 15:12:30 +0000

Hi,

I followed the instructions on how to compile the opensource chipKIT compiler here: https://github.com/jasonkajita/chipKIT-cxx-build

The process worked without a hitch. My only issue is that when compiling PIC32 code, the following warning comes up:

warning: configuration word information not available for this processor. #pragma config is ignored.

This doesn't come up if I use the pre-built compiler.

Does anyone knows how to resolve this issue?

Regards.


jasonk

Wed, 27 Feb 2013 17:13:00 +0000

That warning suggests that the configuration.data file for the selected device is missing. The configuration.data files, among others, should get installed when the script builds the pic32-part-support module.


kinsa

Fri, 01 Mar 2013 00:03:46 +0000

Thanks.

A bunch of stuff is missing from plib-image-20120428.tar.bz2. I just copied the missing files from the official release and everything is now OK.

BTW, I'm building a compiler for the Raspberry PI.

Cheers.


kinsa

Fri, 01 Mar 2013 00:22:13 +0000

These are the missing files and directory:

pic32mx/lib/cpp-startup.o
pic32mx/lib/crt0.o
pic32mx/lib/crti.o
pic32mx/lib/crtn.o
pic32mx/lib/libpic32.a
pic32mx/lib/mcrt0.o
pic32mx/lib/mips16/cpp-startup.o
pic32mx/lib/mips16/crt0.o
pic32mx/lib/mips16/crti.o
pic32mx/lib/mips16/crtn.o
pic32mx/lib/mips16/libpic32.a
pic32mx/lib/mips16/mcrt0.o
pic32mx/lib/proc/

jasonk

Fri, 01 Mar 2013 01:11:55 +0000

There shouldn't be anything missing from the plib-image file... that's the same file that we use to build the official release. In fact, we use the same build script run on a Mac. The listed files don't come from the plib image. They should come from this repository: https://github.com/jasonkajita/pic32-part-support and get built with the build script. If you know of something missing, please let us know so that we can fix it.

Incidentally, we do have an extremely experimental build for Raspberry Pi here: http://chipkit.s3.amazonaws.com/index.html I'd be very interested to see how your own build for Raspberry Pi compares and what your experience is like.


kinsa

Fri, 01 Mar 2013 01:49:40 +0000

There shouldn't be anything missing from the plib-image file... that's the same file that we use to build the official release. In fact, we use the same build script run on a Mac. The listed files don't come from the plib image. They should come from this repository: https://github.com/jasonkajita/pic32-part-support and get built with the build script. If you know of something missing, please let us know so that we can fix it. Incidentally, we do have an extremely experimental build for Raspberry Pi here: http://chipkit.s3.amazonaws.com/index.html I'd be very interested to see how your own build for Raspberry Pi compares and what your experience is like.

I missed the compiling phase! I only performed the install-headers step.

I did native compiling and it is agonizingly slow. Takes a whole day to build. :D

I'll post the script I used once I finish testing.

Thanks