Getting started with avr-uip

51 views
Skip to first unread message

Linus

unread,
Oct 5, 2012, 5:37:18 PM10/5/12
to avr...@googlegroups.com
Hi there,
i am just getting started with avr-uip. The board i am working on works with a ATmega1284 chip and ENC28J60. Therefore i thought i would be a good idea to start with compiling your "Halfmoon_Tech.1284" project, but i always fail doing that. I figured that i have a problem compiling "port_app_mapper.c" because the same problem appears when i try to compile "TuxGraphics.644". When i run the "make" command i always get the following error:

../..//apps/port_app_mapper/port_app_mapper.c: In function ‘uip_port_app_mapper’:
../..//apps/port_app_mapper/port_app_mapper.c:96:1: error: could not split insn
(insn 67 66 68 ../..//apps/port_app_mapper/port_app_mapper.c:86 (parallel [
            (set (reg:HI 16 r16 [86])
                (rotate:HI (reg:HI 16 r16 [orig:74 D.2973 ] [74])
                    (const_int 8 [0x8])))
            (clobber (mem/c:QI (plus:HI (reg/f:HI 28 r28)
                        (const_int 1 [0x1])) [10 %sfp+1 S1 A8]))
        ]) 936 {*rotbhi} (nil))
../..//apps/port_app_mapper/port_app_mapper.c:96:1: internal compiler error: in final_scan_insn, at final.c:2650
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [obj/port_app_mapper.o] Err
or 1

I am using UBUNTU 12.4 and just have limited experience with avr systems. Any help appreciated!

Quentin Arce

unread,
Oct 5, 2012, 7:31:20 PM10/5/12
to avr...@googlegroups.com
Hmm, looks like a bug in the compiler...

I'll see about looking into the issue.
> --
> You received this message because you are subscribed to the Google Groups
> "avr-uip" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/avr-uip/-/9NccFpW38iMJ.
> To post to this group, send email to avr...@googlegroups.com.
> To unsubscribe from this group, send email to
> avr-uip+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/avr-uip?hl=en.

Quentin Arce

unread,
Oct 13, 2012, 12:03:17 PM10/13/12
to avr...@googlegroups.com

Okay, I did some digging around and this is due to a bug in gcc core 4.6

Here are two bug reports:


The point is this is fixed in a late 4.6 and it should also be fixed in 4.7

I'll see about finding some time soon to build a tool chain with 4.7 and make sure it works...

Also, it looks like you can update your avr rpm or dep and you should have a working version.  Just check the change log for your tool set.
> avr-uip+unsubscribe@googlegroups.com.

Quentin Arce

unread,
Oct 20, 2012, 3:01:56 PM10/20/12
to avr...@googlegroups.com
Oh, it is also a bug in gcc 4.5 that is the default version for the Ubuntu I have on my laptop.

Quentin Arce

unread,
Oct 27, 2012, 10:05:56 PM10/27/12
to avr...@googlegroups.com
Oh, just to be clear... If you are on Debian you should just use the tool set I published.  It DOES work ;-)

If your on another Linux platform you should follow the notes and build your own tools and if they work, you can point me to a copy and I'll post them.

Thanks.
Reply all
Reply to author
Forward
0 new messages