Description of problem: Impossible to compile any sketch. I open sketch, for example Basics->Blink Compiling...and I have got below error. Output from terminal window: WARNING: RXTX Version mismatch Jar version = RXTX-2.2 native lib Version = RXTX-2.2pre2 In file included from /usr/share/arduino/hardware/arduino/cores/arduino/Platform.h:9:0, from /usr/share/arduino/hardware/arduino/cores/arduino/CDC.cpp:19: /usr/avr/include/util/delay.h: In function 'void _delay_ms(double)': /usr/avr/include/util/delay.h:149:42: error: 'fabs' was not declared in this scope __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); ^ /usr/avr/include/util/delay.h:149:43: error: 'ceil' was not declared in this scope __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); ^ /usr/avr/include/util/delay.h: In function 'void _delay_us(double)': /usr/avr/include/util/delay.h:226:42: error: 'fabs' was not declared in this scope __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); ^ /usr/avr/include/util/delay.h:226:43: error: 'ceil' was not declared in this scope __ticks_dc = (uint32_t)(ceil(fabs(__tmp))); ^ Version-Release number of selected component (if applicable): arduino-1.0-8.mga4.noarch arduino-core-1.0-8.mga4.noarch arduino-doc-1.0-8.mga4.noarch avr-libc-1.7.1-6.mga4 avrdude-6.0.1-4.mga4 cross-avr-gcc-c++-4.8.1-2.mga4 cross-avr-gcc-4.8.1-2.mga4 cross-avr-binutils-2.23.2-2.mga4 How reproducible: Steps to Reproduce: 1. run arduino 2. load example sketch 3. try to compile Reproducible: Steps to Reproduce:
CC: (none) => dmorganec, pierre-malo.denielouKeywords: (none) => Triaged
Adding #include <math.h> after #include <inttypes.h> in /usr/avr/include/util/delay.h fixes it A workaround is adding #include <math.h> to the script
CC: (none) => birrachiara
I saw this problem with firmware for Scratch (S4A) http://vps34736.ovh.net/S4A/S4AFirmware15.ino Encountered the same problem. The same workaround in delay.h solved the problem. Is it an upstream problem? A patch is needed.
CC: (none) => yves.brungard_mageia
The same error in Mageia 5 Beta 2. The same workaround solv the problem I agree with papoteur, a patch is needed.
CC: (none) => jan
Source RPM: arduino-1.0-8.mga4.noarch => arduinoHardware: x86_64 => AllVersion: 4 => CauldronWhiteboard: (none) => MGA4TOO
*** Bug 15075 has been marked as a duplicate of this bug. ***
Assigning to maintainer.
Assignee: bugsquad => shlomifWhiteboard: MGA4TOO => MGA4TOO MGA5TOOSeverity: normal => major
Whiteboard: MGA4TOO MGA5TOO => MGA4TOO MGA5TOO OK
Uploaded patched package for Mageia 5 Compiling should work now, please test. Advisory: ======================== Compilation for Arduino boards failed due to a missing include in one of avr-libc header file. This update fixes it. ======================== Updated packages in core/updates_testing: ======================== avr-libc-1.7.1-9.mga5.noarch avr-libc-docs-1.7.1-9.mga5.noarch From source RPMs: avr-libc-1.7.1-9.mga5.src.rpm
Assignee: shlomif => qa-bugsCC: (none) => yann.cantin
If it's fixed in Cauldron, make sure to change the version tag to 5 (and remove MGA5TOO from the whiteboard). Also, there is MGA4TOO in the whiteboard but you didn't make an update for Mageia 4. If it's assigned to QA and MGA4TOO is in the whiteboard, there should be an update for Mageia 4 as well. If you're marking this as WONTFIX for Mageia 4, remove MGA4TOO from the whiteboard. Assigning back to Yann until that's straightened out.
CC: (none) => qa-bugsAssignee: qa-bugs => yann.cantin
Updated Advisory : Uploaded patched package for Mageia 4 and 5 Compiling should work now, please test. Advisory: ======================== Compilation for Arduino boards failed due to a missing include in one of avr-libc header file. This update fixes it. ======================== Updated packages in core/updates_testing: ======================== avr-libc-1.7.1-6.1.mga4.noarch avr-libc-docs-1.7.1-6.1.mga4.noarch avr-libc-1.7.1-9.mga5.noarch avr-libc-docs-1.7.1-9.mga5.noarch From source RPMs: avr-libc-1.7.1-6.1.mga4.src.rpm avr-libc-1.7.1-9.mga5.src.rpm
Version: Cauldron => 5Assignee: yann.cantin => qa-bugsWhiteboard: MGA4TOO MGA5TOO OK => MGA4TOO OK
Tested: installing avr-libc-1.7.1-9.mga5 and arduino. launching arduino loading a sketch. Asking for check/compile. The compiling is OK Fine \o/ Papoteur
Tried this in Mageia 4 in vbox x86_64 Installed arduino and noarch libraries. Invoked arduino and tried to compile BlinkWithoutDelay. That failed as expected. Installed updates and tried again. Successful that time and also saw the cross-compile warning about not having the actual hardware connected to USB.
CC: (none) => tarazed25
Whiteboard: MGA4TOO OK => MGA4TOO MGA4-64-OK
Testing this in Mageia 4 vbox i586 Before updates testing compilation failed on several of the supplied programs. The warning is actually about the group membership needed for cross-compilation for connected hardware. Updated the libraries and successfully compiled several sketches in different groups.
Whiteboard: MGA4TOO MGA4-64-OK => MGA4TOO MGA4-64-OK MGA4-32-OK
@papoteur: are you doing the i586 test for mga5? If not I shall run it in a VM.
(In reply to Len Lawrence from comment #12) > @papoteur: are you doing the i586 test for mga5? If not I shall run it in a > VM. I have only x64 :/
We are still validating on one arch per release so one mga5 test will suffice, thanks.
OK. Thanks Claire. We can put up the OK then for mga5.
Whiteboard: MGA4TOO MGA4-64-OK MGA4-32-OK => MGA4TOO MGA4-64-OK MGA4-32-OK MGA5-64-OK
Validating. Advisory uploaded from comment 8. Please push to 4 & 5 updates Thanks
Keywords: (none) => validated_updateWhiteboard: MGA4TOO MGA4-64-OK MGA4-32-OK MGA5-64-OK => MGA4TOO has_procedure advisory MGA4-64-OK MGA4-32-OK MGA5-64-OKCC: (none) => sysadmin-bugs
An update for this issue has been pushed to Mageia Updates repository. http://advisories.mageia.org/MGAA-2015-0122.html
Status: NEW => RESOLVEDResolution: (none) => FIXED
*** Bug 16044 has been marked as a duplicate of this bug. ***