[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Running testsuite
From: |
Andy H |
Subject: |
[avr-gcc-list] Running testsuite |
Date: |
Sat, 12 Sep 2009 17:17:45 -0400 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
I found the instructions and thought it worth reposting for future
reference.
Get avr-gcc, binutils and avr-libc built from sources and working.
Install dejagnu, expect and TCL
- unpack the avrtest tar file from WINAVR sources top "someplace".
- run "make" inside /someplace/avrtest which will build executable from
avrtest.c
- copy /someplace/.dejagnurc to your $HOME and change the path inside to
point to directory where "board file is located".
(This is dejagnuboards subdirectory of avrtest files.)
set board dir /someplace/avrtest/dejagnuboards
- edit /someplace/avrtest/dejagnuboards/atmega128-sim.exp and replace
"/home/pmarques" etc to point to correct location of files for simulator
(avrtest executable) and exit.c
set result [exec /someplace/avrtest/avrtest -m 2000000000 $prog ]
set board_info ldflags "/someplace/avrtest/dejagnuboards/exit.c"
-Wl,-u,vfprintf......................
Run the tests from your avr-gcc build directory.
make -k check RUNTESTFLAGS="--target_board=atmega128-sim"
Look under ./gcc/testsuite for logged results or you can add -all switch
to see it working 1 test at a time.
make -k check RUNTESTFLAGS="--target_board=atmega128-sim -all"
voila!
Andy H wrote:
Got it . 2.19 is ok.
Does anyone have the dejagnu setup files - in particular the make
check RUNTESTFLAGS settings to link correct exit.c and run avrtest.
I have lost instructions!
Andy
Weddington, Eric wrote:
-----Original Message-----
From: address@hidden
[mailto:address@hidden
org] On Behalf Of Andy H
Sent: Saturday, September 12, 2009 6:33 PM
To: address@hidden
Subject: [avr-gcc-list] Todays gcc build gives illegal opcode elpm
for mcuavr5
I'm reinstall gcc toolchain under Linux from sources.
This built from todays head version. I get :
Error: illegal opcode elpm for mcu avr5
What am I doing wrong here with binutils versions?
Or is this bug 35936 that Eric just closed.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35936
address@hidden:~/gccbuild/obj-dir$ avr-as -v
GNU assembler version 2.18.0 (avr) using BFD version (GNU Binutils)
2.18.0.20080103 (WinAVR 20080610)
That looks familiar. Don't use binutils 2.18, use binutils 2.19 or
later (and preferrably with the WinAVR patches).
AFAIK, there has been very little testing with gcc 4.4.0 or later,
and definitely hardly any testing with HEAD (future 4.5). Let me know
how it goes.
Thanks,
Eric Weddington
_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list