<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Problems to compile sprinter under Ubuntu 11.10</title>
        <description> Hi there,
I cannot compile Sprinter firmware after upgrade from Ubuntu 10.x to 11.10. Before upgrade all was OK, but now if I run &quot;Verify&quot; command (the play button) in the Arduino 022 or 018 (I tested both), after while it says Error compiling and writes down in the black window:

In file included from /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:44:0,
                 from /usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:37,
                 from /usr/share/arduino/hardware/Sanguino/cores/arduino/wiring_private.h:31,
                 from /usr/share/arduino/hardware/Sanguino/cores/arduino/WInterrupts.c:33:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected identifier or ‘(’ before ‘double’
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected ‘)’ before ‘&amp;gt;=’ token &quot;

If I try just &quot;make&quot; from the terminal window, it says:

cc1plus: warning: command line option &quot;-Wstrict-prototypes&quot; is valid for Ada/C/ObjC but not for C++
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(wiring.o)&#039; is incompatible with avr:5 output
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(wiring_analog.o)&#039; is incompatible with avr:5 output
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(wiring_digital.o)&#039; is incompatible with avr:5 output
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(HardwareSerial.o)&#039; is incompatible with avr:5 output
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(Print.o)&#039; is incompatible with avr:5 output
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(pins_arduino.o)&#039; is incompatible with avr:5 output
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(WString.o)&#039; is incompatible with avr:5 output
collect2: ld returned 1 exit status
make: *** [applet/Sprinter.elf] Error 1

Does anybody else have similar problems? Any tips, how to solve it?

Thanks

Jakub</description>
        <link>https://reprap.org/forum/read.php?146,107925,107925#msg-107925</link>
        <lastBuildDate>Tue, 14 Jul 2026 12:48:59 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,140188#msg-140188</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,140188#msg-140188</link>
            <description><![CDATA[ My broken record says: "For using Arduino IDE 1.0 as well as recent gcc compilers the Sanguino extensions are of no use, you have to install <a href="https://github.com/Traumflug/Generation_7_Electronics/blob/Gen7-Arduino-IDE-Support-2.0/release%20documents/Gen7%20Arduino%20IDE%20Support%202.0.zip?raw=true" target="_blank"  rel="nofollow">Gen7 Arduino IDE Support 2.0</a> instead." :)]]></description>
            <dc:creator>Traumflug</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Wed, 27 Jun 2012 06:19:07 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,140147#msg-140147</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,140147#msg-140147</link>
            <description><![CDATA[ RobertB Wrote:<br />
-------------------------------------------------------<br />
&gt; Yes...edit<br />
&gt; /usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h<br />
&gt; , go to line 426 and insert a line<br />
&gt; <br />
&gt; #undef round <br />
&gt; <br />
&gt; before where 'round' is defined.<br />
<br />
Thank you kind Sir,<br />
That resolved the issue and at least now It compiles.. Now on to the Next error, actually getting it to upload. <br />
Hopefully the rest is easier to resolve than this one was.<br />
Thanks again for sharing.<br />
Tnt]]></description>
            <dc:creator>Timothy Tuck</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Wed, 27 Jun 2012 00:38:22 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,122756#msg-122756</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,122756#msg-122756</link>
            <description><![CDATA[ Never mind.  After redownloading everything and downgrading to Arduino 022 it works properly.]]></description>
            <dc:creator>thedoktorj</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Wed, 07 Mar 2012 00:16:45 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,122752#msg-122752</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,122752#msg-122752</link>
            <description><![CDATA[ I was getting the same error, but after adding the #undef round line, I get a new error:  <br />
/usr/bin/avr-gcc -mmcu=atmega2560 -I. -gstabs -DF_CPU=16000000 -I/home/doktorj/Downloads/Hacking/Arduino/arduino-0023/hardware/arduino/cores/arduino -Os -Wall -Wstrict-prototypes  -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -w -ffunction-sections -fdata-sections -DARDUINO=22 -Wl,--gc-sections -o applet/Sprinter.elf applet/Sprinter.cpp -L. applet/core.a -lm<br />
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/lib/avr6/crtm2560.o: In function `__bad_interrupt':<br />
../../../../crt1/gcrt1.S:195: undefined reference to `main'<br />
collect2: ld returned 1 exit status<br />
make: *** [applet/Sprinter.elf] Error 1<br />
<br />
<br />
Any ideas?  This is making me crazy.  After finally getting my Prusa Mendel built, I've spent the last 3 days unable to even power it on, since I can't compile the firmware.]]></description>
            <dc:creator>thedoktorj</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Tue, 06 Mar 2012 23:28:38 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,121255#msg-121255</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,121255#msg-121255</link>
            <description><![CDATA[ very useful thanks.]]></description>
            <dc:creator>Mino</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Mon, 27 Feb 2012 17:27:41 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,116588#msg-116588</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,116588#msg-116588</link>
            <description><![CDATA[ For Fredd6....I think that you have to write the next sentence in this order:<br />
<br />
<b>#undef round</b><br />
extern double round (double __x) __ATTR_CONST__;<br />
#define roundf round /**&lt; The alias for round(). */]]></description>
            <dc:creator>Raul</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Tue, 31 Jan 2012 11:35:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,114828#msg-114828</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,114828#msg-114828</link>
            <description><![CDATA[ Hello! I added <b>#undef round</b> to <b>/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h</b><br />
<u>Resulting in math.h</u> (lines 425 - 430):<br />
<span style="color:#33FF00">*/<br />
extern double round (double __x) __ATTR_CONST__;<br />
#undef round<br />
#define roundf	round		/**&lt; The alias for round().	*/<br />
<br />
/**</span><br />
<br />
After that i did a <b>restart</b> to my laptop (with Ubuntu 11.10).<br />
Opened Arduino IDE, from menu: Tools -&gt; Board -&gt; ATTiny85 (Arduino as ISP)<br />
Loaded Blink example, changed pin 13 to 3 and tried to upload.<br />
<br />
<u>Got these errors</u>:<br />
<span style="color:#99FF33">In file included from /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:44:0,<br />
                 from /usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:37,<br />
                 from /home/x/sketchbook/hardware/attiny45_85/cores/attiny45_85/wiring_private.h:32,<br />
                 from /home/x/sketchbook/hardware/attiny45_85/cores/attiny45_85/WInterrupts.c:36:<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected identifier or ‘(’ before ‘double’<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected ‘)’ before ‘&gt;=’ token</span><br />
<br />
BTW! I have Arduino Duemilanove, so NO capacitor between GND and reset... or anything was used.]]></description>
            <dc:creator>Fredd6</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Fri, 20 Jan 2012 17:50:33 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,114624#msg-114624</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,114624#msg-114624</link>
            <description><![CDATA[ type this in a terminal :<br />
<br />
<pre class="bbcode">
sudo gedit /usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h</pre>
<br />
<br />
and enter your password when asked]]></description>
            <dc:creator>DeuxVisNotLoged</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Thu, 19 Jan 2012 14:52:18 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,114051#msg-114051</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,114051#msg-114051</link>
            <description><![CDATA[ I am a new linux user, I am on 11.10, and I get almost the exact same error message as serych's first example.<br />
<br />
I am using <br />
Arduino core 0022<br />
Arduino-0022<br />
Sanguino-0018r2_1_4<br />
kliment-Sprinter-a352585<br />
<br />
Sanguinololu v1.3a w/Amega644p<br />
<br />
I have also tried the sanguino-0023, and the arduino-0018, with similar results.<br />
<br />
When I try to mount Sprinter.pde I get:<br />
<br />
<br />
In file included from /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:44:0,<br />
                 from /usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:37,<br />
                 from /home/jeppe/RepRap/arduino-0022/hardware/Sanguino/cores/arduino/wiring_private.h:31,<br />
                 from /home/jeppe/RepRap/arduino-0022/hardware/Sanguino/cores/arduino/WInterrupts.c:33:<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected identifier or ‘(’ before ‘double’<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected ‘)’ before ‘&gt;=’ token<br />
<br />
<br />
Problem is I can't edit the "/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h"<br />
<br />
It says i'm not the owner....<br />
<br />
I am on a fresh ubuntu install on my own computer. How come I cant get permission to alter the file?<br />
Please keep in mind that I've bee a linux user for 3 days.... Maybe I'm missing something reeeally obvious.<br />
<br />
Thanks]]></description>
            <dc:creator>Jepperas</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Sun, 15 Jan 2012 13:49:35 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,112438#msg-112438</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,112438#msg-112438</link>
            <description><![CDATA[ #undef round <br />
<br />
did the trick! THX a lot!<br />
<br />
Cheers, Mike]]></description>
            <dc:creator>mikele</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Thu, 05 Jan 2012 17:40:40 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,108043#msg-108043</guid>
            <title>Re: Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,108043#msg-108043</link>
            <description><![CDATA[ Yes...edit /usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h, go to line 426 and insert a line<br />
<br />
#undef round <br />
<br />
before where 'round' is defined.]]></description>
            <dc:creator>RobertB</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Mon, 28 Nov 2011 09:17:16 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?146,107925,107925#msg-107925</guid>
            <title>Problems to compile sprinter under Ubuntu 11.10</title>
            <link>https://reprap.org/forum/read.php?146,107925,107925#msg-107925</link>
            <description><![CDATA[ <b>Hi there,<br />
I cannot compile Sprinter firmware after upgrade from Ubuntu 10.x to 11.10. Before upgrade all was OK, but now if I run "Verify" command (the play button) in the Arduino 022 or 018 (I tested both), after while it says Error compiling and writes down in the black window:</b><br />
<br />
In file included from /usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:44:0,<br />
                 from /usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:37,<br />
                 from /usr/share/arduino/hardware/Sanguino/cores/arduino/wiring_private.h:31,<br />
                 from /usr/share/arduino/hardware/Sanguino/cores/arduino/WInterrupts.c:33:<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected identifier or ‘(’ before ‘double’<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected ‘)’ before ‘&gt;=’ token "<br />
<br />
<b>If I try just "make" from the terminal window, it says:</b><br />
<br />
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(wiring.o)' is incompatible with avr:5 output<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(wiring_analog.o)' is incompatible with avr:5 output<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(wiring_digital.o)' is incompatible with avr:5 output<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(HardwareSerial.o)' is incompatible with avr:5 output<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(Print.o)' is incompatible with avr:5 output<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(pins_arduino.o)' is incompatible with avr:5 output<br />
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: avr:6 architecture of input file `applet/core.a(WString.o)' is incompatible with avr:5 output<br />
collect2: ld returned 1 exit status<br />
make: *** [applet/Sprinter.elf] Error 1<br />
<br />
<b>Does anybody else have similar problems? Any tips, how to solve it?<br />
<br />
Thanks<br />
<br />
Jakub</b>]]></description>
            <dc:creator>serych</dc:creator>
            <category>Firmware - mainstream and related support</category>
            <pubDate>Sun, 27 Nov 2011 10:55:51 -0500</pubDate>
        </item>
    </channel>
</rss>
