I'd like to get the avr cross-compiler. I've issued "crossdev avr" using sys-devel/crossdev-20150716 on an otherwise uptodate ~amd64 system. I've used crossdev before and it had mostly worked. this time i get this. The worrying part is the warning about no LIBC being available for this platform. I tried removing all ebuild cross* created in my overlay and i removed /usr/avr/ to be sure to start from a clean env. # crossdev avr !!! Repository 'x-portage-overlay' is missing masters attribute in '/usr/portage-overlay/metadata/layout.conf' !!! Set 'masters = gentoo' in this file for future compatibility !!! Repository 'x-portage-overlay' is missing masters attribute in '/usr/portage-overlay/metadata/layout.conf' !!! Set 'masters = gentoo' in this file for future compatibility gawk: riga com.:8: (FILENAME=- FNR=1) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=5) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=14) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=22) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=30) attenzione: gensub: il terzo argomento `' trattato come 1 ------------------------------------------------------------------------------------------------------------------------------------------------------- * crossdev version: 20150716 * Host Portage ARCH: amd64 * Target Portage ARCH: * * Target System: avr * Stage: 4 (C/C++ compiler) * ABIs: default * binutils: binutils-[latest] * gcc: gcc-[latest] * libc: avr-libc-[latest] * CROSSDEV_OVERLAY: /usr/portage-overlay * PORT_LOGDIR: /var/log/portage * PORTAGE_CONFIGROOT: * Portage flags: _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - * enabling thin-manifests due to /var/lib/layman/qt _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - gawk: riga com.:8: (FILENAME=- FNR=1) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=5) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=11) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=20) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=28) attenzione: gensub: il terzo argomento `' trattato come 1 !!! WARNING - Cannot auto-configure CHOST avr; !!! You should edit /usr/avr/etc/portage/make.conf !!! by hand to complete your configuration. !!! No LIBC is known for this target. * Log: /var/log/portage/cross-avr-binutils.log * Emerging cross-binutils ... ^C * binutils failed :( * If you file a bug, please attach the following logfiles: * /var/log/portage/cross-avr-info.log * /var/log/portage/cross-avr-binutils.log.xz * /var/tmp/portage/cross-avr/binutils*/temp/binutils-config.logs.tar.xz falco ~ # ll vi /usr/avr/etc/portage/make.conf ls: impossibile accedere a vi: File o directory non esistente -rw-r--r-- 1 root root 482 28 ott 11.40 /usr/avr/etc/portage/make.conf falco ~ # vi /usr/avr/etc/portage/make.conf falco ~ # eix crossdev [I] sys-devel/crossdev Available versions: 20100814 20101011 20110310 20110705 20110819 (~)20111011 20111018 20111118 20111221 (~)20120214 (~)20120227 (~)20120228 (~)20120229 (~)20120301 20120305 (~)20120529 20120531 20120721 20120913 20130628 20131011 20131107 20140118 (~)20140729 20140917 20141030 (~)20150521 (~)20150525 (~)20150526 (~)20150527 20150602 (~)20150716 **99999999 Installed versions: 20150716(13:26:30 12/09/2015) Homepage: https://www.gentoo.org/ Description: Gentoo Cross-toolchain generator falco ~ # lrt /usr/avr/ totale 12 drwxr-xr-x 3 root root 4096 15 feb 2014 etc drwxr-xr-x 17 root root 4096 28 ott 11.40 .. drwxr-xr-x 3 root root 4096 28 ott 11.40 . falco ~ # rm -Rf^Cusr/avr/ falco ~ # tree /usr/avr/ /usr/avr/ └── etc └── portage ├── make.conf ├── make.profile -> /usr/portage/profiles/embedded └── profile └── package.provided 4 directories, 2 files falco ~ # rm /usr/avr/ -Rf falco ~ # crossdev avr gawk: riga com.:8: (FILENAME=- FNR=1) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=5) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=11) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=20) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=28) attenzione: gensub: il terzo argomento `' trattato come 1 ------------------------------------------------------------------------------------------------------------------------------------------------------- * crossdev version: 20150716 * Host Portage ARCH: amd64 * Target Portage ARCH: * * Target System: avr * Stage: 4 (C/C++ compiler) * ABIs: default * binutils: binutils-[latest] * gcc: gcc-[latest] * libc: avr-libc-[latest] * CROSSDEV_OVERLAY: /usr/portage-overlay * PORT_LOGDIR: /var/log/portage * PORTAGE_CONFIGROOT: * Portage flags: _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - * leaving sys-devel/binutils in /usr/portage-overlay * leaving sys-devel/gcc in /usr/portage-overlay * leaving dev-embedded/avr-libc in /usr/portage-overlay * leaving sys-devel/gdb in /usr/portage-overlay * enabling thin-manifests due to /var/lib/layman/qt _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - gawk: riga com.:8: (FILENAME=- FNR=1) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=5) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=11) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=20) attenzione: gensub: il terzo argomento `' trattato come 1 gawk: riga com.:8: (FILENAME=- FNR=28) attenzione: gensub: il terzo argomento `' trattato come 1 !!! WARNING - Cannot auto-configure CHOST avr; !!! You should edit /usr/avr/etc/portage/make.conf !!! by hand to complete your configuration. !!! No LIBC is known for this target. * Log: /var/log/portage/cross-avr-binutils.log * Emerging cross-binutils ... [ ok ] * Log: /var/log/portage/cross-avr-gcc-stage1.log * Emerging cross-gcc-stage1 ... (gcc failed, but that's another story) Reproducible: Always
Same issue here.
please post the output of: portageq repositories_configuration / also, the error here is not the LIBC line, it's gcc failing. and that's probably a dupe of an existing bug (which is probably binutils at its heart).
There were lot of changes regarding all of this recently. I've tested again after updating the tree, and it works now.
(In reply to Thomas Capricelli from comment #3) can you post the output of that repos command ? crossdev shouldn't be spewing gawk errors.
Sorry, i hadn't seen the question. Here it is : [DEFAULT] auto-sync = yes main-repo = gentoo [freehackers] auto-sync = yes location = /usr/portage-overlay masters = gentoo priority = 0 [gentoo] auto-sync = yes location = /usr/portage masters = priority = -1000 sync-type = rsync sync-uri = rsync://freehackers.org/gentoo-portage sync-rsync-extra-opts = --exclude ChangeLog [kde] auto-sync = yes location = /var/lib/layman/kde masters = gentoo priority = 50 sync-type = laymansync sync-uri = git://anongit.gentoo.org/proj/kde.git [qt] auto-sync = yes location = /var/lib/layman/qt masters = gentoo priority = 50 sync-type = laymansync sync-uri = git://anongit.gentoo.org/proj/qt.git
thanks ... i think i fixed this in git, but haven't pushed a new snap yet: http://gitweb.gentoo.org/proj/crossdev.git/commit/?id=ed170f96178b3e5060d6c7eecce79036b14c9f1e
I've modified (by hand) my /usr/bin/crossdev according to your patch, and i don't have the warning anymore. Great ! :)