Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608476 - crossdev -t avr "declares No LIBC is known for this target." & fails building it
Summary: crossdev -t avr "declares No LIBC is known for this target." & fails building it
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-06 19:42 UTC by CaptainBlood
Modified: 2017-02-08 18:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/cross-avr-info.log (cross-avr-info.log,21.94 KB, text/x-log)
2017-02-06 19:45 UTC, CaptainBlood
Details
cross-avr-avr-libc.log (cross-avr-avr-libc.log,5.80 KB, text/x-log)
2017-02-06 19:51 UTC, CaptainBlood
Details
config.log as content of /var/tmp/portage/cross-avr/avr-libc*/temp/avr-libc-config.logs.tar.xz (config.log,35.21 KB, text/x-log)
2017-02-06 19:56 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2017-02-06 19:42:14 UTC
USE="-openmp -hardened -sanitize -vtv" crossdev -s4 -S --target avr
--------------------------------------------------------------------------------
 * crossdev version:      20160602
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   *
 * Target System:         avr
 * Stage:                 4 (C/C++ compiler)
 * ABIs:                  default

 * binutils:              binutils-[stable]
 * gcc:                   gcc-[stable]
 * libc:                  avr-libc-[stable]

 * CROSSDEV_OVERLAY:      /usr/local/portage-crossdev
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    
 * Portage flags:         
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  
 * leaving metadata/layout.conf alone in /usr/local/portage-crossdev
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  
!!! 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 ...                                          [ ok ]
 * Log: /var/log/portage/cross-avr-avr-libc.log
 * Emerging cross-avr-libc ...

 * error: avr-libc failed :(
 * 
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-avr-info.log
 * /var/log/portage/cross-avr-avr-libc.log.xz
 * /var/tmp/portage/cross-avr/avr-libc*/temp/avr-libc-config.logs.tar.xz

Reproducible: Always




emerge --info
Portage 2.3.3 (python 2.7.12-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.23-r3, 4.9.8-gentoo-krnlschd x86_64)
=================================================================
System uname: Linux-4.9.8-gentoo-krnlschd-x86_64-Intel-R-_Core-TM-_i3-3217U_CPU_@_1.80GHz-with-gentoo-2.3
KiB Mem:     8051556 total,   5313848 free
KiB Swap:    8048528 total,   8048528 free
Timestamp of repository gentoo: Mon, 06 Feb 2017 18:45:02 +0000
sh bash 4.3_p48-r1
ld GNU gold (Gentoo 2.27 p1.0 2.27) 1.12
distcc[16917] (dcc_trace_version) distcc 3.2rc1 x86_64-pc-linux-gnu; built Dec 23 2016 17:08:13 [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

bar
    location: /var/lib/layman/bar
    masters: gentoo
    priority: -10001

c2p-overlay
    location: /var/lib/layman/c2p-overlay
    masters: gentoo
    priority: -10001

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: -10001

sublime-text
    location: /var/lib/layman/sublime-text
    masters: gentoo
    priority: -10001

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --timeout=600

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

Installed sets: @gcc-toolchain
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=ivybridge -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=ivybridge -O2 -pipe -fgraphite -flto=4 -flto-compression-level=9 -fopenmp -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution -ftree-loop-linear -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=ivybridge -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=ivybridge -O2 -pipe -fgraphite -flto=4 -flto-compression-level=9 -fopenmp -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution -ftree-loop-linear -ftree-vectorize"
DISTDIR="/usr/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --misspell-suggestions=n --nospinner --tree --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirrors.stuhome.net/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://mirror.neolabs.kz/gentoo/pub http://mirror.usu.edu/mirrors/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ rsync://gentoo.c3sl.ufpr.br/gentoo/ ftp://gentoo.c3sl.ufpr.br/gentoo/ http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O2 -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--sort-common -s -flto=4"
MAKEOPTS="-j4 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=600"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 bluetooth bzip2 cli consolekit cracklib crypt cxx dbus dri egl fftw fortran gdbm gif gles gles1 gles2 iconv icu jack jpeg2k modules multilib multislot ncurses nls nptl openal opengl openmp pam pch pcre png policykit pulseaudio qt5 readline seccomp session sndfile sse sse2 sse4_1 ssl ssse3 svg system-icu tcpd threads tiff truetype udev udisks unicode upower v4l vaapi vdpau xinerama xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby21" SANE_BACKENDS="artec_eplus48u" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND
Comment 1 CaptainBlood 2017-02-06 19:45:15 UTC
Created attachment 462690 [details]
/var/log/portage/cross-avr-info.log
Comment 2 CaptainBlood 2017-02-06 19:51:29 UTC
Created attachment 462692 [details]
cross-avr-avr-libc.log
Comment 3 CaptainBlood 2017-02-06 19:56:43 UTC
Created attachment 462694 [details]
config.log as content of /var/tmp/portage/cross-avr/avr-libc*/temp/avr-libc-config.logs.tar.xz
Comment 4 CaptainBlood 2017-02-08 18:41:36 UTC
/etc/portage/make.conf hardcoded
Code:	
AR="/usr/bin/gcc-ar"
NM="/usr/bin/gcc-nm"
RANLIB="/usr/bin/gcc-ranlib"	
was the source of the trouble.
Code:	
more /etc/portage/env/avr-ranlib.conf
NM="/usr/bin/avr-gcc-nm"
AR="/usr/bin/avr-gcc-ar"
RANLIB="/usr/bin/avr-gcc-ranlib"	
solved it.

Thks 4 ur attention, interest & support.