From: Marq R. <mar...@ya...> - 2007-10-10 18:05:25
|
I installed the avr gcc compiler as per instructions on this page http://docwiki.gumstix.org/Robostix_avr_gcc and then checked out the entire robostix tree from the svn. When I try to compile the Simple-Servo program I get the following error: ___________________________________________________________ marq@linux:~/robostix/Simple-Servo> make ../Rules.mk:205: warning: overriding commands for target `Simple-Servo' ../Rules.mk:14: warning: ignoring old commands for target `Simple-Servo' make: Circular Simple-Servo <- Simple-Servo dependency dropped. /home/marq/avr/bin/../lib/gcc/avr/4.2.0/../../../../avr/lib/avr5/crtm128.o: In function `__bad_interrupt': ../../../../crt1/gcrt1.S:123: undefined reference to `main' make: *** [.o] Error 1 ___________________________________________________________ When I try to compile the Simple-Servo-2 or the Flash-LED programs I get a different error: __________________________________________________________ marq@linux:~/robostix/Simple-Servo-2> make Compiling Simple-Servo-2.c ... In file included from Simple-Servo-2.c:24: ../Common/UART.h:91:42: error: missing terminating ' character ../Common/UART.h:95:42: error: missing terminating ' character ../Common/UART.h:153:39: error: missing terminating ' character ../Common/UART.h:157:39: error: missing terminating ' character ../Common/UART.h:198:39: error: missing terminating ' character ../Common/UART.h:202:39: error: missing terminating ' character ../Common/UART.h:249:39: error: missing terminating ' character ../Common/UART.h:253:39: error: missing terminating ' character ../Common/UART.h:294:39: error: missing terminating ' character ../Common/UART.h:298:39: error: missing terminating ' character make: *** [Simple-Servo-2.o] Error 1 ___________________________________________________ The only program I can get to compile is the Simple-Flasher program: ___________________________________________________ marq@linux:~/robostix/Simple-Flasher> make Compiling Simple-Flasher.c ... Compiling ../Common/Delay.c ... Compiling ../Common/Timer.c ... Linking Simple-Flasher.elf ... AVR Memory Usage: ----------------- Device: atmega128 Program: 622 bytes (0.5% Full) (.text + .data + .bootloader) Data: 3 bytes (0.1% Full) (.data + .bss + .noinit) Creating Simple-Flasher.hex ... ________________________________________________________ Any ideas on what I am doing wrong??? Thanks for your help guys Marq -- View this message in context: http://www.nabble.com/Problems-compiling-robostix-programs-tf4602429.html#a13141077 Sent from the Gumstix mailing list archive at Nabble.com. |
From: Dave H. <dhy...@gm...> - 2007-10-10 18:24:42
|
Hi Marq, On 10/10/07, Marq Rasmussen <mar...@ya...> wrote: > > I installed the avr gcc compiler as per instructions on this page > http://docwiki.gumstix.org/Robostix_avr_gcc and then checked out the entire > robostix tree from the svn. When I try to compile the Simple-Servo program I > get the following error: I haven't seen any of those errors before. Which OS are you using? (It looks like linux). What version of avr-gcc do you have? i.e. what does avr-gcc --version report. Which version of make are you using? make --version -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Marq R. <mar...@ya...> - 2007-10-10 18:32:37
|
Dave i am running linux suse 10.1. As for the versions of avr and make: avr-gcc (GCC) 4.2.0 GNU Make 3.80 Thanks for your help Marq Dave Hylands wrote: > > Hi Marq, > > On 10/10/07, Marq Rasmussen <mar...@ya...> wrote: >> >> I installed the avr gcc compiler as per instructions on this page >> http://docwiki.gumstix.org/Robostix_avr_gcc and then checked out the >> entire >> robostix tree from the svn. When I try to compile the Simple-Servo >> program I >> get the following error: > > I haven't seen any of those errors before. > > Which OS are you using? (It looks like linux). > > What version of avr-gcc do you have? i.e. what does > > avr-gcc --version > > report. > > Which version of make are you using? > > make --version > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/Problems-compiling-robostix-programs-tf4602429.html#a13141823 Sent from the Gumstix mailing list archive at Nabble.com. |
From: Lee W. W. <lw...@ds...> - 2007-10-10 18:43:19
|
I had the 2nd problem before. What I did was to go to the UART.h file = and remove all the <'> characters that are causing the problem. Thanks & Regards, Lee Wei Wei -----Original Message----- From: gum...@li... on behalf of Marq = Rasmussen Sent: Thu 10/11/2007 2:05 AM To: gum...@li... Subject: [Gumstix-users] Problems compiling robostix programs =20 I installed the avr gcc compiler as per instructions on this page http://docwiki.gumstix.org/Robostix_avr_gcc and then checked out the = entire robostix tree from the svn. When I try to compile the Simple-Servo = program I get the following error: ___________________________________________________________ marq@linux:~/robostix/Simple-Servo> make ../Rules.mk:205: warning: overriding commands for target `Simple-Servo' ../Rules.mk:14: warning: ignoring old commands for target `Simple-Servo' make: Circular Simple-Servo <- Simple-Servo dependency dropped. /home/marq/avr/bin/../lib/gcc/avr/4.2.0/../../../../avr/lib/avr5/crtm128.= o: In function `__bad_interrupt': ../../../../crt1/gcrt1.S:123: undefined reference to `main' make: *** [.o] Error 1 ___________________________________________________________ When I try to compile the Simple-Servo-2 or the Flash-LED programs I get = a different error: __________________________________________________________ marq@linux:~/robostix/Simple-Servo-2> make Compiling Simple-Servo-2.c ... In file included from Simple-Servo-2.c:24: ../Common/UART.h:91:42: error: missing terminating ' character ../Common/UART.h:95:42: error: missing terminating ' character ../Common/UART.h:153:39: error: missing terminating ' character ../Common/UART.h:157:39: error: missing terminating ' character ../Common/UART.h:198:39: error: missing terminating ' character ../Common/UART.h:202:39: error: missing terminating ' character ../Common/UART.h:249:39: error: missing terminating ' character ../Common/UART.h:253:39: error: missing terminating ' character ../Common/UART.h:294:39: error: missing terminating ' character ../Common/UART.h:298:39: error: missing terminating ' character make: *** [Simple-Servo-2.o] Error 1 ___________________________________________________ The only program I can get to compile is the Simple-Flasher program: ___________________________________________________ marq@linux:~/robostix/Simple-Flasher> make Compiling Simple-Flasher.c ... Compiling ../Common/Delay.c ... Compiling ../Common/Timer.c ... Linking Simple-Flasher.elf ... AVR Memory Usage: ----------------- Device: atmega128 Program: 622 bytes (0.5% Full) (.text + .data + .bootloader) Data: 3 bytes (0.1% Full) (.data + .bss + .noinit) Creating Simple-Flasher.hex ... ________________________________________________________ Any ideas on what I am doing wrong??? Thanks for your help guys Marq --=20 View this message in context: = http://www.nabble.com/Problems-compiling-robostix-programs-tf4602429.html= #a13141077 Sent from the Gumstix mailing list archive at Nabble.com. -------------------------------------------------------------------------= This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: Dave H. <dhy...@gm...> - 2007-10-10 18:57:16
|
On 10/10/07, Lee Wei Wei <lw...@ds...> wrote: > I had the 2nd problem before. What I did was to go to the UART.h file and remove all the <'> characters that are causing the problem. I was able to reproduce the problem with UART.h using the 4.2.0 compiler, so it seems that the preprocessor doesn't like the apostrophe. I've delivered a new version of UART.h which has those removed. As for the problem in the Simple-Servo directory, the only thing I can think of doing is this: cd Simple-Servo rm * svn update make If that works, then one of the files got modified somehow. If you look at the Simple-Servo and Simple-Flasher Makefiles, you'll see that they're almost identical, so the only way I can explain this is that somehow the Simple-Servo Makefile isn't quite like the original. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Marq R. <mar...@ya...> - 2007-10-10 19:30:58
|
Dave that fixed it. Thanks a ton for your help marq Dave Hylands wrote: > > On 10/10/07, Lee Wei Wei <lw...@ds...> wrote: >> I had the 2nd problem before. What I did was to go to the UART.h file >> and remove all the <'> characters that are causing the problem. > > I was able to reproduce the problem with UART.h using the 4.2.0 > compiler, so it seems that the preprocessor doesn't like the > apostrophe. I've delivered a new version of UART.h which has those > removed. > > As for the problem in the Simple-Servo directory, the only thing I can > think of doing is this: > > cd Simple-Servo > rm * > svn update > make > > If that works, then one of the files got modified somehow. If you look > at the Simple-Servo and Simple-Flasher Makefiles, you'll see that > they're almost identical, so the only way I can explain this is that > somehow the Simple-Servo Makefile isn't quite like the original. > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/Problems-compiling-robostix-programs-tf4602429.html#a13142928 Sent from the Gumstix mailing list archive at Nabble.com. |
From: Marq R. <mar...@ya...> - 2007-10-10 18:59:55
|
Dave, Going back into my robostix files and typing make I get the error: ________________________________________________ Compiling Simple-Servo-2.c ... make: avr-gcc: Command not found make: *** [Simple-Servo-2.o] Error 127 ________________________________________________ Which makes me think it has to do with my avr gcc, any ideas? Marq Marq Rasmussen wrote: > > Dave i am running linux suse 10.1. > > As for the versions of avr and make: > avr-gcc (GCC) 4.2.0 > GNU Make 3.80 > > Thanks for your help > Marq > > > Dave Hylands wrote: >> >> Hi Marq, >> >> On 10/10/07, Marq Rasmussen <mar...@ya...> wrote: >>> >>> I installed the avr gcc compiler as per instructions on this page >>> http://docwiki.gumstix.org/Robostix_avr_gcc and then checked out the >>> entire >>> robostix tree from the svn. When I try to compile the Simple-Servo >>> program I >>> get the following error: >> >> I haven't seen any of those errors before. >> >> Which OS are you using? (It looks like linux). >> >> What version of avr-gcc do you have? i.e. what does >> >> avr-gcc --version >> >> report. >> >> Which version of make are you using? >> >> make --version >> >> -- >> Dave Hylands >> Vancouver, BC, Canada >> http://www.DaveHylands.com/ >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> gumstix-users mailing list >> gum...@li... >> https://lists.sourceforge.net/lists/listinfo/gumstix-users >> >> > > -- View this message in context: http://www.nabble.com/Problems-compiling-robostix-programs-tf4602429.html#a13142254 Sent from the Gumstix mailing list archive at Nabble.com. |
From: Dave H. <dhy...@gm...> - 2007-10-10 19:03:05
|
Hi Marq, > Going back into my robostix files and typing make I get the error: > ________________________________________________ > Compiling Simple-Servo-2.c ... > make: avr-gcc: Command not found > make: *** [Simple-Servo-2.o] Error 127 This means that avr-gcc isn't in your PATH. So you'll need to do something like PATH=${PATH}:/home/marq/avr/bin and add that to your ~/.bashrc file. If your PATH is setup properly, you should be able to to type: avr-gcc --version and get the version number printed. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |