Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 663150

Summary: cross-avr/avr-libc: configure: error: Wrong archiver found; check the PATH!
Product: Gentoo Linux Reporter: Constantin Runge <c.runge>
Component: Current packagesAssignee: Gentoo Crossdev team <crossdev>
Status: RESOLVED INVALID    
Severity: normal CC: jstein, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 627914    
Attachments: emerge --info
cross-avr-info.log
cross-avr-avr-libc.log
avr-libc-config.logs.tar.xz

Description Constantin Runge 2018-08-08 10:39:38 UTC
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.
Comment 1 Constantin Runge 2018-08-08 10:41:39 UTC
Created attachment 542760 [details]
cross-avr-info.log
Comment 2 Constantin Runge 2018-08-08 10:41:55 UTC
Created attachment 542762 [details]
cross-avr-avr-libc.log
Comment 3 Constantin Runge 2018-08-08 10:42:13 UTC
Created attachment 542764 [details]
avr-libc-config.logs.tar.xz
Comment 4 Constantin Runge 2018-08-09 05:51:29 UTC
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
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2018-08-19 18:32:29 UTC
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?
Comment 6 Constantin Runge 2018-08-21 06:53:32 UTC
(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.