title: Unable to compile TinyOs applications with avr-gcc 4.2.1 but able to compile with avr-gcc 3.3
body: <p>i'm trying to compile TinyOs 1.x applications on my cygwin machine. I'm able to compile the applications of TinyOs 1.x using avr-gcc v3.3 but not with v4.2.1. </p>
  
  <p>I wanted to upgrade my avr-gcc from v3.3 to v4.2.1 as there are support for new controllers. So i followed the steps that were provided to build the toolchains. </p>
  
  <p><a href="https://www.microchip.com/webdoc/AVRLibcReferenceManual/install_tools_1install_avr_binutils.html" rel="nofollow noreferrer">https://www.microchip.com/webdoc/AVRLibcReferenceManual/install_tools_1install_avr_binutils.html</a> </p>
  
  <p>I have used : <em>binutils-2.17, gcc-4.2-20070719 , avr-libc-1.8.1</em> to build my toolchain. I choose this versions because it is the base version for the new mcu's support. </p>
  
  <p>Now when i try to compile the TinyOs applications using v4.2.1 , i'm stuck at the errors like this.
  <a href="https://i.stack.imgur.com/6UMQt.png" rel="nofollow noreferrer">Error Given while compiling with avr-gcc v4.2.1</a></p>
  
  <p><a href="https://i.stack.imgur.com/MRHxy.png" rel="nofollow noreferrer">Working with avr-gcc v3.3 </a></p>
  
  <p>And For v3.3 : <em>binutils-2.13, gcc-3.3 , avr-libc-20030512</em>. </p>
  
  <p>and additionally : <em>nesc-1.1-1w.cygwin.i386.rpm, tinyos-1.1.0-1.cygwin.noarch.rpm, tinyos-tools-1.1.0-1.cygwin.i386.rpm, galsc-0.1.0-1.cygwin.i386.rpm</em> were installed for both the versions of avr-gcc.</p>
  
  <p><strong>How can i fix this error ? If more information needed, feel free to ask. Thank you in advance .</strong></p>