Created attachment 542758 [details] emerge --info Installing the avr crosscompilers using `crossdev -s4 --portage --verbose --target avr' fails to install cross-avr/avr-libc with the error message `configure: error: Wrong archiver found; check the PATH!'. Additional system information $ which avr-ar /usr/bin/avr-ar $ avr-ar --version GNU ar (Gentoo 2.30 p3) 2.30.0 Copyright (C) 2018 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty. $ which avr-gcc /usr/bin/avr-gcc $ avr-gcc --version avr-gcc (Gentoo 7.3.0-r3 p1.4) 7.3.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Created attachment 542760 [details] cross-avr-info.log
Created attachment 542762 [details] cross-avr-avr-libc.log
Created attachment 542764 [details] avr-libc-config.logs.tar.xz
Probably also of interest: $ gcc-config -l [1] avr-7.3.0 * [2] x86_64-pc-linux-gnu-7.3.0 * $ gcc-config -B avr-7.3.0 /usr/x86_64-pc-linux-gnu/avr/gcc-bin/7.3.0 $ gcc-config -L avr-7.3.0 /usr/lib/gcc/avr/7.3.0
configure:4558: checking for avr-ranlib configure:4585: result: gcc-ranlib configure:4650: checking for avr-ar configure:4677: result: gcc-ar configure:4757: error: Wrong archiver found; check the PATH! Here avr-ar is resolved to gcc-ar. Do you set AR='gcc-ar' via package.env?
(In reply to Sergei Trofimovich from comment #5) > configure:4558: checking for avr-ranlib > configure:4585: result: gcc-ranlib > configure:4650: checking for avr-ar > configure:4677: result: gcc-ar > configure:4757: error: Wrong archiver found; check the PATH! > > Here avr-ar is resolved to gcc-ar. > > Do you set > AR='gcc-ar' > via package.env? I recall I did for LTO purposes, yes. Thank you very much.