gnupic: Anyone got C30 3.01 working on GNU/Linux?


Previous by date: 19 Jul 2007 00:55:13 +0100 Re: [gnupic] Anyone got C30 3.01 working on GNU/Linux?, Chris Emerson
Next by date: 19 Jul 2007 00:55:13 +0100 Re: possibility to blacklist HID PICKit 1 and PICkit 2, Xiaofan Chen
Previous in thread: 19 Jul 2007 00:55:13 +0100 Anyone got C30 3.01 working on GNU/Linux?, John Steele Scott
Next in thread:

Subject: Re: Anyone got C30 3.01 working on GNU/Linux?
From: John Steele Scott ####@####.####
Date: 19 Jul 2007 00:55:13 +0100
Message-Id: <f7m98c$e3k$1@sea.gmane.org>

Chris Emerson wrote:
> What command line did you use to compile that?  My first guess would be
> that you're running something other than the C compiler.
> 
> Alternatively, a non-standard macro named "sum" could give that sort of
> error.  Was there a line number?
> 
> Cheers,
> 
> Chris

john@john-ubuntu:~/min-max-logger $ cat foo.c

int sum(int x, int y)
{
  return x + y;
}
john@john-ubuntu:~/min-max-logger $ pic30-elf-cc -c foo.c
foo.c: In function 'sum':
foo.c:4: error: syntax error before '+' token

john@john-ubuntu:~/min-max-logger $ pic30-elf-cc -v -c foo.c
Using built-in specs.
Target: pic30-elf
Configured
with: /home/john/pic30-gcc-3.01/build_dir/src/gcc-4.0.2/gcc-4.0.2/configure -v --prefix=/usr --target=pic30-elf --enable-languages=c --with-gcc-version-trigger=/home/john/pic30-gcc-3.01/build_dir/objs/version-trigger
Thread model: single
gcc version 4.0.3 (dsPIC30, Microchip v3.01, modified for Debian GNU/Linux)
Build date: Jul 18 2007
 /usr/libexec/gcc/pic30-elf/3.01/pic30-elf-cc1 -quiet -v
foo.c -mresource=/usr/share/pic30-support/c30_device.info -quiet -dumpbase
foo.c -auxbase foo -version -o /tmp/ccZI9ezv.s
ignoring nonexistent
directory "/usr/lib/gcc/pic30-elf/3.01/../../../../pic30-elf/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/pic30-elf/3.01/include
 /usr/lib/gcc/pic30-elf/3.01/../../../../pic30-elf/include
End of search list.
GNU C version 4.0.3 (dsPIC30, Microchip v3.01, modified for Debian
GNU/Linux) Build date: Jul 18 2007 (pic30-elf)
        compiled by GNU C version 3.3.6 (Ubuntu 1:3.3.6-10).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64376
foo.c: In function 'sum':
foo.c:4: error: syntax error before '+' token

It looks like it should be a C compiler.


Previous by date: 19 Jul 2007 00:55:13 +0100 Re: [gnupic] Anyone got C30 3.01 working on GNU/Linux?, Chris Emerson
Next by date: 19 Jul 2007 00:55:13 +0100 Re: possibility to blacklist HID PICKit 1 and PICkit 2, Xiaofan Chen
Previous in thread: 19 Jul 2007 00:55:13 +0100 Anyone got C30 3.01 working on GNU/Linux?, John Steele Scott
Next in thread:


Powered by ezmlm-browse 0.20.