Fixed: Compiler error for stack.c

Questions specifically related to the TCP/IP stack that interfaces with the driver.

Fixed: Compiler error for stack.c

Postby gordonendersby » Tue May 12, 2009 8:01 am

Hi,

Ive just got my WiShield, it looks good.
Ive downloaded the libraries, today at about 15.45GMT from the git repository, and placed them in my Libraries directory as per the instructions.
But when I start the Arduino ide. I get the following error when it tries to compile the libraries.
Im using Arduino Ver13 under Linux, Ubuntu Intrepid with avr-gcc ver 4.3.0
Do I need a specific version of the arduino ide or gcc?

stack.c: In function ‘stack_process’:
stack.c:643: error: insn does not satisfy its constraints:
(insn 1571 102 103 17 stack.c:193 (set (reg:HI 30 r30)
(reg/v/f:HI 87 [ pARP ])) 8 {*movhi} (nil))
stack.c:643: internal compiler error: in reload_cse_simplify_operands, at postreload.c:395
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Thanks

Gordon
Last edited by gordonendersby on Wed May 13, 2009 8:09 am, edited 1 time in total.
gordonendersby
 
Posts: 40
Joined: Tue May 12, 2009 7:43 am

Re: Compiler error for stack.c

Postby benquark » Tue May 12, 2009 10:34 am

This is something new to us. We have never seen this error. We have been using arduino-0013, 0014 and 0015 on Windows and Arduino with avr-gcc 4.2.2 on Linux. A quick search on the internet brought up these links,

http://discussion.forum.nokia.com/forum ... p?t=109712

http://www.nabble.com/insn-does-not-sat ... 11080.html

https://bugzilla.redhat.com/show_bug.cgi?id=485729

They seem to indicate that its a compiler issue. Can you please try with another version?
benquark
 
Posts: 63
Joined: Wed May 06, 2009 3:57 pm

Re: Compiler error for stack.c

Postby gordonendersby » Wed May 13, 2009 6:55 am

Thanks
Ill have bit more of a play.
Ill try arduino 15.
I dont fancy down grading avr-gcc to 4.2.2.
I see that Jaunty has 4.3.2 Ill try that in case there's already a fix.
Im using virtualbox virtual machines for development environments so its no big deal to keep swapping these around.

Gordon
gordonendersby
 
Posts: 40
Joined: Tue May 12, 2009 7:43 am

Re: Compiler error for stack.c

Postby gordonendersby » Wed May 13, 2009 8:09 am

Ok, all working now.

Updated my dev environment in virtualbox to Ubuntu Jaunty with avr-gcc 4.3.2 from the repositories.
Loaded up a clean Arduino ver 15, added WiShield libraries.
Tried webserver example with my WPA2 credentials and it worked first time.

Im not going to flog myself by working out what the problem was as it could have been practically anything on my system. From the compiler to the modified libraries Ive been using under Arduino ver 13.

Now I can have a play.

Thanks

Gordon
gordonendersby
 
Posts: 40
Joined: Tue May 12, 2009 7:43 am

Re: Fixed: Compiler error for stack.c

Postby benquark » Wed May 13, 2009 11:43 pm

@Gordon
Good to know the problem was solved easily. Thanks for posting the solution. It might be useful for somebody in the future.

-Ben
benquark
 
Posts: 63
Joined: Wed May 06, 2009 3:57 pm


Return to TCP/IP Stack

Who is online

Users browsing this forum: No registered users and 1 guest