Arduino issue with avr-glibc function sprintf()

Dear all,
I would like to inform you about a potential bug in the avr-glibc library, that is distributed with openSuSE repositories.

For quite a while I analysed an issue, that kept me busy away from progress:
I used Arduino from the openSuSE repo, including avr-toolchain and avr-glibc, that comes with the packages.
Everything went well until I used an example coming with ITEAD Nextion library for Arduino from
https://github.com/itead/ITEADLIB_Arduino_Nextion
When I tried to compile CompWaveform example, the linker gave an error message, that there is something wrong with the sprintf() function.
I reinstalled everything without change. Then I tried the same example under Win7-setup, where it succeeded.
Comclusion: the issue is not with Arduino or Nextion library, it is related to avr-glibc library…and I obviously didn’t use sprintf() for Arduino/AVR before.

So this is what I did to fix the issue:

  1. I removed avr-glibc from installation.
  2. I removed Arduino from installation (because it demanded this avr-glibc)
  3. I downloaded avr-glibc from
    http://download.savannah.gnu.org/releases/avr-libc/
    and build the sources on my machine.
  4. I downloaded and installed Arduino from Arduino.cc
    Now the build of the above example with Arduino works well.

I would apreciate, if you could try to reconfirm the issue and fix the avr-libc library appropriately.

In case of questions, please send me a PN and I can provide the Nextion libs and examples.

kind regards,
sepp2gl

…and no one cares after more than 4 weeks(!)?

HEY GUYS! HEADS UP!
I really believe, that this glibc-issue is a bug and need to be fixed.
Even if this might be the wrong forum to post it…
…it would be too kind, if someone had replied.

with best wishes,
sepp2gl

The forum is users helping users.

Maybe you should consider reporting a bug:

openSUSE:Submitting bug reports

Also is this the German sub-forum.

I will move it to the English one.

Done.

Vielen Dank dafür.
Vielleicht findet sich im englischen Subforum jemand, der das Problem ebenfalls hatte und eine bessere Lösung als ich gefunden hat.
Ich habe diesen Post auf englisch geschrieben, weil ich ihn ggfs. auf anderen Foren mit teilen wollte, ich wollte es aber nicht überall gleichzeitig tun.

Ich habe zwar für mich das Symptom behoben aber nicht das eigentliche Problem gelöst,
daher habe ich soeben diesen Bug wie von nrickert empfohlen auf Bugzilla gepostet.

LG, sepp2gl

daher habe ich soeben diesen Bug wie von nrickert empfohlen auf Bugzilla gepostet.

Here is the Bugreport:
https://bugzilla.opensuse.org/show_bug.cgi?id=1136027