Your message dated Thu, 21 Jul 2011 18:32:13 +0000
with message-id <[email protected]>
and subject line Bug#633659: fixed in arduino 0022+dfsg-4
has caused the Debian Bug report #633659,
regarding arduino-core: Broken with avr-libc 1.7.1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
633659: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633659
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: arduino-core
Version: 0022+dfsg-3
Severity: important


The newest version of avr-libc in Debian has broken compiling with
arduino-core (and probably arduino as well).  avr-libc 1.7.1 shipped
with a bug in the delay.h header because it did not include math.h
rendering any program which doesn't include math.h before the
util/delay.h header uncompilable.   I will report this bug against
avr-libc 1.7.1-1 in order to have this fixed, but 1.7.1 also
introduces another bug when using the wiring.h library included in
Arduino, because math.h includes a definition of round which conflicts
with the wiring.h declaration at line 74 of
/usr/share/arduino/hardware/arduino/cores/arduino/wiring.h

The bug manifests itself initially as a compliation error and can be
reproduced through:

mkdir ~/tmp_arduino_bug
cd ~/tmp_arduino_bug
cat > Makefile <<'!====EOF====!'
ARDUINO_DIR = /usr/share/arduino

TARGET       = Blink
#ARDUINO_LIBS = LiquidCrystal

MCU          = atmega168
F_CPU        = 16000000
ARDUINO_PORT = /dev/ttyUSB*

AVRDUDE_ARD_PROGRAMMER = arduino
AVRDUDE_ARD_BAUDRATE   = 57600
#AVRDUDE_ARD_EXTRAOPTS  = -F

include /usr/share/arduino/Arduino.mk
!====EOF====!
cp /usr/share/arduino/examples/1.Basics/Blink/Blink.pde .
make

which produces this output on unstable:
/usr/share/arduino/Arduino.mk:405: build-cli/depends.mk: No such file or 
directory
mkdir build-cli
echo \#include \"WProgram.h\" > build-cli/Blink.cpp
cat  Blink.pde >> build-cli/Blink.cpp
/usr/bin/avr-g++ -MM -mmcu=atmega168 -DF_CPU=16000000 -I. 
-I/usr/share/arduino/hardware/arduino/cores/arduino  -g -Os -w -Wall 
-ffunction-sections -fdata-sections -f
cat build-cli/Blink.d > build-cli/depends.mk
rm build-cli/Blink.cpp
echo \#include \"WProgram.h\" > build-cli/Blink.cpp
cat  Blink.pde >> build-cli/Blink.cpp
/usr/bin/avr-g++ -c -mmcu=atmega168 -DF_CPU=16000000 -I. 
-I/usr/share/arduino/hardware/arduino/cores/arduino  -g -Os -w -Wall 
-ffunction-sections -fdata-sections -fn
/usr/bin/avr-gcc -c -mmcu=atmega168 -DF_CPU=16000000 -I. 
-I/usr/share/arduino/hardware/arduino/cores/arduino  -g -Os -w -Wall 
-ffunction-sections -fdata-sections -st
/usr/bin/avr-gcc -c -mmcu=atmega168 -DF_CPU=16000000 -I. 
-I/usr/share/arduino/hardware/arduino/cores/arduino  -g -Os -w -Wall 
-ffunction-sections -fdata-sections -st
/usr/bin/avr-gcc -c -mmcu=atmega168 -DF_CPU=16000000 -I. 
-I/usr/share/arduino/hardware/arduino/cores/arduino  -g -Os -w -Wall 
-ffunction-sections -fdata-sections -st
/usr/bin/avr-gcc -c -mmcu=atmega168 -DF_CPU=16000000 -I. 
-I/usr/share/arduino/hardware/arduino/cores/arduino  -g -Os -w -Wall 
-ffunction-sections -fdata-sections -st
/usr/bin/avr-gcc -c -mmcu=atmega168 -DF_CPU=16000000 -I. 
-I/usr/share/arduino/hardware/arduino/cores/arduino  -g -Os -w -Wall 
-ffunction-sections -fdata-sections -st
/usr/bin/avr-gcc -c -mmcu=atmega168 -DF_CPU=16000000 -I. 
-I/usr/share/arduino/hardware/arduino/cores/arduino  -g -Os -w -Wall 
-ffunction-sections -fdata-sections -st
/usr/bin/avr-gcc -c -mmcu=atmega168 -DF_CPU=16000000 -I. 
-I/usr/share/arduino/hardware/arduino/cores/arduino  -g -Os -w -Wall 
-ffunction-sections -fdata-sections -st
/usr/bin/avr-g++ -c -mmcu=atmega168 -DF_CPU=16000000 -I. 
-I/usr/share/arduino/hardware/arduino/cores/arduino  -g -Os -w -Wall 
-ffunction-sections -fdata-sections -fn
In file included from 
/usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:37:0,
                 from 
/usr/share/arduino/hardware/arduino/cores/arduino/wiring_private.h:30,
                 from 
/usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp:28:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h: In function ‘void 
_delay_ms(double)’:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:149:42: error: ‘fabs’ 
was not declared in this scope
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:149:43: error: ‘ceil’ 
was not declared in this scope
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h: In function ‘void 
_delay_us(double)’:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:226:42: error: ‘fabs’ 
was not declared in this scope
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:226:43: error: ‘ceil’ 
was not declared in this scope
make: *** [build-cli/HardwareSerial.o] Error 1

After fixing the bug in avr-libc, the error changes to:

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/arduino/cores/arduino/wiring_private.h:30,
                 from 
/usr/share/arduino/hardware/arduino/cores/arduino/WInterrupts.c:34:
/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 ‘>=’ token

which is caused by the macro definition of round() in wiring.h:
#define round(x)     ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))

commenting out this line fixes this final compliation error and the program 
compiles, uploads and correctly works on the Arduino that I have.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages arduino-core depends on:
ii  avr-libc                      1:1.7.1-1  Standard C library for Atmel AVR d
ii  avrdude                       5.10-3     software for programming Atmel AVR
ii  gcc                           4:4.6.1-2  GNU C compiler
ii  gcc-avr                       1:4.5.3-1  The GNU C compiler (cross compiler

arduino-core recommends no packages.

arduino-core suggests no packages.

-- no debconf information

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed.  If 
you are not the named addressee, you should not disseminate, distribute or copy 
this email. Please notify the sender immediately by email if you have received 
this email by mistake and delete this email from your system. If you are not 
the intended recipient, you are notified that disclosing, copying, distributing 
or taking any action in reliance on the contents of this information is 
strictly prohibited.

Within the United States, sale of the Recon Scout to non-Federal and 
non-military entities is limited to state and local police and firefighters 
eligible for licensing under 47 C.F.R. § 90.20(a)(1) of the FCC Rules, and 
security personnel in Critical Infrastructure Industries as defined in  the FCC 
 Rules, 47 C.F.R. § 90.7.  Operation of this product by non-federal and 
non-military entities requires an FCC license. These FCC Rules do not apply to 
sales made outside the United States.



--- End Message ---
--- Begin Message ---
Source: arduino
Source-Version: 0022+dfsg-4

We believe that the bug you reported is fixed in the latest version of
arduino, which is due to be installed in the Debian FTP archive:

arduino-core_0022+dfsg-4_all.deb
  to main/a/arduino/arduino-core_0022+dfsg-4_all.deb
arduino_0022+dfsg-4.debian.tar.gz
  to main/a/arduino/arduino_0022+dfsg-4.debian.tar.gz
arduino_0022+dfsg-4.dsc
  to main/a/arduino/arduino_0022+dfsg-4.dsc
arduino_0022+dfsg-4_all.deb
  to main/a/arduino/arduino_0022+dfsg-4_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Scott Howard <[email protected]> (supplier of updated arduino package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 21 Jul 2011 14:16:53 -0400
Source: arduino
Binary: arduino arduino-core
Architecture: source all
Version: 0022+dfsg-4
Distribution: unstable
Urgency: low
Maintainer: Scott Howard <[email protected]>
Changed-By: Scott Howard <[email protected]>
Description: 
 arduino    - AVR development board IDE and built-in libraries
 arduino-core - Minimal (java-free) tool to interact with an Arduino
Closes: 633659
Changes: 
 arduino (0022+dfsg-4) unstable; urgency=low
 .
   * debian/patches/libc_1.7.1.patch
     - Comment out definition of round, which conflicts with math.h
       declaration (Closes: #633659)
   * debian/control: arduino-core depend on avr-libc (>> 1:1.7.1-2) for
     above patch
Checksums-Sha1: 
 1eb4659e2f727baa8f39502f781dbdeeb0c0a5ed 1279 arduino_0022+dfsg-4.dsc
 c62e9c6f98556765978c2c0a012340dbf94b78ec 95215 
arduino_0022+dfsg-4.debian.tar.gz
 8c70b7559dd4dc476368327d89be65c7ed8faa3b 695784 arduino_0022+dfsg-4_all.deb
 e89071943369e2049b0d7e68dd6824b61a3f08fe 640658 
arduino-core_0022+dfsg-4_all.deb
Checksums-Sha256: 
 64297562a6a566d6d09c1bb973ba5d6f66e39da5e704aede0ecff6a131823186 1279 
arduino_0022+dfsg-4.dsc
 041fd9bd5bda3e8d66a1bc29168299c21ce56cd70504f4f133f4959900068971 95215 
arduino_0022+dfsg-4.debian.tar.gz
 be4ee04a8e06a6be8c6dfe2e3dcb8e9bada9874d8495bc8f70a27023f0f2ef44 695784 
arduino_0022+dfsg-4_all.deb
 5c56d3e5a07cd2e228066e735db3de11eff90f4666cdcecb23e0e8ce3777ce5b 640658 
arduino-core_0022+dfsg-4_all.deb
Files: 
 52beaf1480d26a83ba3e13798714a81e 1279 electronics extra arduino_0022+dfsg-4.dsc
 6e455297d9a334d945a6c64c811e1f32 95215 electronics extra 
arduino_0022+dfsg-4.debian.tar.gz
 d1e592bfd84270a0ce66e793207d5010 695784 electronics extra 
arduino_0022+dfsg-4_all.deb
 44d38837fe52349626c0f362c6fc35ca 640658 electronics extra 
arduino-core_0022+dfsg-4_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk4obsMACgkQuqVp0MvxKmpAegCeOUK/53m0YISBfOMKepd7Ta8w
UpwAoL22QjGmntaa3c3skTqGeSWy52/J
=e8UA
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to