gnupic: Re: [gnupic] PIC32 C32 GCC Source Code Released


Previous by date: 6 Nov 2007 14:56:43 +0000 Re: [gnupic] PIC32 C32 GCC Source Code Released, Jeff
Next by date: 6 Nov 2007 14:56:43 +0000 Re: [gnupic] PIC32 C32 GCC Source Code Released, Xiaofan Chen
Previous in thread: 6 Nov 2007 14:56:43 +0000 Re: [gnupic] PIC32 C32 GCC Source Code Released, Jeff
Next in thread: 6 Nov 2007 14:56:43 +0000 Re: [gnupic] PIC32 C32 GCC Source Code Released, Xiaofan Chen

Subject: Re: [gnupic] PIC32 C32 GCC Source Code Released
From: "Xiaofan Chen" ####@####.####
Date: 6 Nov 2007 14:56:43 +0000
Message-Id: <a276da400711060656n34997427s2e18ba7a40ce0072@mail.gmail.com>

On 11/6/07, Jeff ####@####.#### wrote:
> On Tue November 6 2007 04:12, Xiaofan Chen wrote:
> >
> > You might want to try GCC 3.4.4 since C32 is based on it.
> >
> Better to fix the source than rely on a specific compiler version. In any
> case, I'm too short on time to pursue this further.

I think GCC version is not a problem but the configure flags
and building procedures are the problem.

So I got it compiled by cheating. Because building gcc will lead
to errors of missing header files, I installed the C32 student
version under Wine and copy the header files to the
directory /opt/pic32mx/pic32mx/include. The GCC can be built.
Building gdb will fail but anyway it is not included in the
Microchip C32 compiler either.

export TARGET=pic32mx
export PREFIX=/opt/$TARGET
export PATH=$PATH:$PREFIX/bin
./configure --target=$TARGET --prefix=$PREFIX --with-gnu-as --with-gnu-ld \
--with-headers=$prefix/$target/include  --enable-languages=c

Building the binutils first and install it. Then go to the as and ld
folder and build/install them. After that, gcc can be build.
gdb failed to be built.

mcuee@ubuntu:/opt/pic32mx/bin$ ./pic32mx-gcc --version
pic32mx-gcc (GCC) 3.4.4 MPLAB C32 v1.00-20071024
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mcuee@ubuntu:/opt/pic32mx/bin$ ls
pic32mx-addr2line  pic32mx-bin2hex  pic32mx-gcc
pic32mx-gcov  pic32mx-objcopy  pic32mx-readelf
pic32mx-strings
pic32mx-ar         pic32mx-c++filt  pic32mx-gcc-3.4.4
pic32mx-ld    pic32mx-objdump  pic32mx-run      pic32mx-strip
pic32mx-as         pic32mx-cpp      pic32mx-gccbug     pic32mx-nm
pic32mx-ranlib   pic32mx-size

Under Wine:
####@####.#### Files/Microchip/MPLAB C32/bin$ ls
pic32-addr2line.exe  pic32-cpp.exe   pic32mx-gcc-3.4.4  pic32-readelf.exe
pic32-ar.exe         pic32-gccbug    pic32-nm.exe       pic32-size.exe
pic32-as.exe         pic32-gcc.exe   pic32-objcopy.exe  pic32-strings.exe
pic32-bin2hex.exe    pic32-gcov.exe  pic32-objdump.exe  pic32-strip.exe
pic32-c++filt.exe    pic32-ld.exe    pic32-ranlib.exe

I know this is not right procedure but I am not so sure how to bypass
the missing header file errors when building gcc.

I asked the question in Microchip forum because I am afraid that
there are something missing.

Xiaofan

Previous by date: 6 Nov 2007 14:56:43 +0000 Re: [gnupic] PIC32 C32 GCC Source Code Released, Jeff
Next by date: 6 Nov 2007 14:56:43 +0000 Re: [gnupic] PIC32 C32 GCC Source Code Released, Xiaofan Chen
Previous in thread: 6 Nov 2007 14:56:43 +0000 Re: [gnupic] PIC32 C32 GCC Source Code Released, Jeff
Next in thread: 6 Nov 2007 14:56:43 +0000 Re: [gnupic] PIC32 C32 GCC Source Code Released, Xiaofan Chen


Powered by ezmlm-browse 0.20.