Crosscompiling Toolchain for ATMEL AVR microcontrollers

Install avr-example.rpm to get all required packages automatically resolved.

Name Changed
Comments for CrossToolchain:avr 6

Michal Suchanek's avatar

michals wrote over 1 year ago

Hello,

can you build the packages for all supported architectures?

I suppose ppc has very few users in practice but aarch64 might be useful.

There is not go for armv7 so the arduino-builder will not build there, unfortunately.


Klaus Kämpf's avatar

kwk wrote over 1 year ago

Enabled ppc64le and aarch64 for Leap15 and Tumbleweed


Michal Suchanek's avatar

michals wrote over 1 year ago

You probably need some arch-specific projects for the packages to be resolvable.

The config of home:michals:arduino might be useful for reference.


Oscar Laborda's avatar

escaner wrote 5 months ago

Hello. Since the last update of my Tumbleweed system I am getting linking errors. Looks like the libraries in cross-avr-gcc9 and avr-libc need updating. Using the ones from the official arduino IDE tarball seems to work. Thanks!

/usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/avr5/libm.a when searching for -lm /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/libm.a when searching for -lm /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/avr5/libm.a when searching for -lm /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/libm.a when searching for -lm /usr/lib64/gcc/avr/9/ld: cannot find -lm /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/lib64/gcc/avr/9/avr5/libgcc.a when searching for -lgcc /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/lib64/gcc/avr/9/libgcc.a when searching for -lgcc /usr/lib64/gcc/avr/9/ld: cannot find -lgcc /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/avr5/libm.a when searching for -lm /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/libm.a when searching for -lm /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/avr5/libm.a when searching for -lm /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/libm.a when searching for -lm /usr/lib64/gcc/avr/9/ld: cannot find -lm /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/avr5/libc.a when searching for -lc /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/libc.a when searching for -lc /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/avr5/libc.a when searching for -lc /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/libc.a when searching for -lc /usr/lib64/gcc/avr/9/ld: cannot find -lc /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/avr5/libatmega328p.a when searching for -latmega328p /usr/lib64/gcc/avr/9/ld: skipping incompatible /usr/avr/sys-root/lib/avr5/libatmega328p.a when searching for -latmega328p /usr/lib64/gcc/avr/9/ld: cannot find -latmega328p


Jaap Geurts's avatar

thaloi wrote 4 months ago

I have exactly the same problem. Not sure where else to report it. I also can't find anyone else with this problem. Not sure if this is specific to my system. Would be glad to offer help or logs.


Klaus Kämpf's avatar

kwk wrote 4 months ago

I can confirm these problems, seeing the same on my machine. I need to dig deeper if this is a cross-gcc or an arduino bug.