[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Anyone got C30 3.01 working on GNU/Linux?
From: John Steele Scott ####@####.#### Date: 18 Jul 2007 06:28:05 +0100 Message-Id: <f7k8cm$f5h$1@sea.gmane.org> Has anyone got a native GNU/Linux build of the newer versions (3.00 or 3.01) of the C30 compiler that works? I've updated my previous set of patches and can get it to build, but it refuses to compile anything, complaining about syntax errors. For even a simple file containing only: int sum(int x, int y) { return x + y; } I get "error: syntax error before '+' token". cheers, John | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |