(In reply to Michal Suchanek from comment #3) > yes, regarding the avr-libc missing from factory that can be fixed trivially > by importing it from other project. > > However, gcc refuses to build a libgcc because there is no way to specify > where the target headers and libraries should be built. > > avr-libc moved from /usr/avr to /opt/cross/avr due to FHS. Well, you can't use /opt in a product either. I'd rather ignore those stupid FHS warnings and retain /usr/avr (cross-avr-binutils in factory does that so do all cross GCCs). > The exact > directory is irrelevant. Wherever it is it has libraries in > ${target_prefix}/lib and includes in ${target_prefix}/include. There is an > --with-sysroot configure option that tells gcc to look (and build) target > headers and libraries in a prefix but it insists on using {sysroot}/usr/lib > and ${sysroot}/usr/include. There is option --with-native-headers-prefix or > somesuch which can change that for headers but none for libraries. The most helpful thing is if the configured locations agree between binutils, gcc and libc ;)