Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496634 - dev-libs/klibc-2.0.3-r1 USE=custom-cflags - fixdep.c:(.text+0x24): undefined reference to `realloc'
Summary: dev-libs/klibc-2.0.3-r1 USE=custom-cflags - fixdep.c:(.text+0x24): undefined ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: Normal normal with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2013-12-31 23:28 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2017-01-13 18:52 UTC (History)
4 users (show)

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


Attachments
package history (dev-libs-klibc-2.0.4-20150726-125710.pks,3.03 KB, text/plain)
2015-07-26 13:21 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2013-12-31 23:28:48 UTC
dev-libs/klibc-2.0.3-r1 fails to build with USE="custom-cflags".
This problem occurs even without -Wl,--as-needed in LDFLAGS.
This problem does not occur with USE="-custom-cflags".

# emerge -ptv dev-libs/klibc

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild     U  ] dev-libs/klibc-2.0.3-r1::gentoo [2.0.2::gentoo] USE="custom-cflags%* -debug {-test}" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB
# LC_ALL="en_US.UTF-8" MAKEOPTS="" ebuild klibc-2.0.3-r1.ebuild compile
 * klibc-2.0.3.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                            [ ok ]
 * klibc_2.0.2-1.debian.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                   [ ok ]
 * linux-3.12.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking linux-3.12.tar.xz to /var/tmp/portage/dev-libs/klibc-2.0.3-r1/work
>>> Unpacking klibc-2.0.3.tar.xz to /var/tmp/portage/dev-libs/klibc-2.0.3-r1/work
>>> Unpacking klibc_2.0.2-1.debian.tar.gz to /var/tmp/portage/dev-libs/klibc-2.0.3-r1/work
>>> Source unpacked in /var/tmp/portage/dev-libs/klibc-2.0.3-r1/work
>>> Preparing source in /var/tmp/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3 ...
 * Applying klibc-1.4.11-interp-flags.patch ...                                                                                                       [ ok ]
 * Applying klibc-1.5.7-strip-fix-dash-s.patch ...                                                                                                    [ ok ]
 * Applying klibc-2.0.2-mkfifo.patch ...                                                                                                              [ ok ]
 * Applying klibc-2.0.3-kernel-uapi.patch ...                                                                                                         [ ok ]
/var/tmp/portage/dev-libs/klibc-2.0.3-r1/temp/environment: line 2670: /var/tmp/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3/debian/patches/series: No such file or directory
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3 ...
make defconfig CC=x86_64-pc-linux-gnu-gcc HOSTCC=x86_64-pc-linux-gnu-gcc ARCH=x86 
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
*** Default configuration is based on 'x86_64_defconfig'
#
# configuration written to .config
#
make prepare CC=x86_64-pc-linux-gnu-gcc HOSTCC=x86_64-pc-linux-gnu-gcc ARCH=x86
scripts/kconfig/conf --silentoldconfig Kconfig
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_64.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
  WRAP    arch/x86/include/generated/asm/clkdev.h
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  GEN     include/generated/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
make EXTRA_KLIBCAFLAGS=-Wa,--noexecstack 'EXTRA_KLIBCLDFLAGS=-z noexecstack' 'HOSTLDFLAGS=-z noexecstack' KLIBCOPTFLAGS=-nostdlib HOSTCC=x86_64-pc-linux-gnu-gcc CC=x86_64-pc-linux-gnu-gcc HOSTLD=x86_64-pc-linux-gnu-ld LD=x86_64-pc-linux-gnu-ld INSTALLDIR=/usr/lib64/klibc KLIBCARCH=x86_64 KLIBCASMARCH=x86 SHLIBDIR=/lib64 libdir=/usr/lib64 mandir=/usr/share/man T=/var/tmp/portage/dev-libs/klibc-2.0.3-r1/temp 'HOSTCFLAGS=-march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall -Wpointer-sign -nostdlib' 'HOSTLDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -z noexecstack' 'KLIBCOPTFLAGS=-march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall -Wpointer-sign -nostdlib' all 
  GEN     klcc/klibc.config
  GEN     klcc/klcc
  HOSTCC  scripts/basic/fixdep
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400160
/var/tmp/portage/dev-libs/klibc-2.0.3-r1/temp/ccgM9PaT.o: In function `define_config':
fixdep.c:(.text+0x24): undefined reference to `realloc'
fixdep.c:(.text+0x6a): undefined reference to `memcpy'
fixdep.c:(.text+0x96): undefined reference to `perror'
fixdep.c:(.text+0xa0): undefined reference to `exit'
/var/tmp/portage/dev-libs/klibc-2.0.3-r1/temp/ccgM9PaT.o: In function `strrcmp':
fixdep.c:(.text+0xbb): undefined reference to `strlen'
fixdep.c:(.text+0xc6): undefined reference to `strlen'
/var/tmp/portage/dev-libs/klibc-2.0.3-r1/temp/ccgM9PaT.o: In function `parse_dep_file':
fixdep.c:(.text+0x11e): undefined reference to `strchr'
fixdep.c:(.text+0x14c): undefined reference to `__memcpy_chk'
fixdep.c:(.text+0x16d): undefined reference to `__printf_chk'
fixdep.c:(.text+0x1e2): undefined reference to `__memcpy_chk'
fixdep.c:(.text+0x25c): undefined reference to `__printf_chk'
fixdep.c:(.text+0x274): undefined reference to `__printf_chk'
fixdep.c:(.text+0x2b3): undefined reference to `__ctype_b_loc'
fixdep.c:(.text+0x2ec): undefined reference to `__printf_chk'
fixdep.c:(.text+0x2fd): undefined reference to `open'
fixdep.c:(.text+0x319): undefined reference to `__fxstat'
fixdep.c:(.text+0x33e): undefined reference to `mmap'
fixdep.c:(.text+0x3cb): undefined reference to `memcmp'
fixdep.c:(.text+0x3e2): undefined reference to `__ctype_b_loc'
fixdep.c:(.text+0x414): undefined reference to `perror'
fixdep.c:(.text+0x41c): undefined reference to `close'
fixdep.c:(.text+0x430): undefined reference to `munmap'
fixdep.c:(.text+0x438): undefined reference to `close'
fixdep.c:(.text+0x49c): undefined reference to `memcmp'
fixdep.c:(.text+0x4f0): undefined reference to `__memcpy_chk'
fixdep.c:(.text+0x53e): undefined reference to `__ctype_tolower_loc'
fixdep.c:(.text+0x573): undefined reference to `__printf_chk'
fixdep.c:(.text+0x58e): undefined reference to `stderr'
fixdep.c:(.text+0x593): undefined reference to `fwrite'
fixdep.c:(.text+0x5a0): undefined reference to `perror'
fixdep.c:(.text+0x5aa): undefined reference to `exit'
fixdep.c:(.text+0x5c0): undefined reference to `stderr'
fixdep.c:(.text+0x5c5): undefined reference to `fwrite'
fixdep.c:(.text+0x5cf): undefined reference to `exit'
/var/tmp/portage/dev-libs/klibc-2.0.3-r1/temp/ccgM9PaT.o: In function `strrcmp':
fixdep.c:(.text+0xe5): undefined reference to `memcmp'
/var/tmp/portage/dev-libs/klibc-2.0.3-r1/temp/ccgM9PaT.o: In function `main':
fixdep.c:(.text.startup+0x50): undefined reference to `__printf_chk'
fixdep.c:(.text.startup+0x60): undefined reference to `open'
fixdep.c:(.text.startup+0x79): undefined reference to `__fxstat'
fixdep.c:(.text.startup+0x9a): undefined reference to `mmap'
fixdep.c:(.text.startup+0xbd): undefined reference to `munmap'
fixdep.c:(.text.startup+0xc4): undefined reference to `close'
fixdep.c:(.text.startup+0xe6): undefined reference to `stderr'
fixdep.c:(.text.startup+0xed): undefined reference to `__fprintf_chk'
fixdep.c:(.text.startup+0xf4): undefined reference to `close'
fixdep.c:(.text.startup+0x100): undefined reference to `perror'
fixdep.c:(.text.startup+0x107): undefined reference to `close'
fixdep.c:(.text.startup+0x110): undefined reference to `stderr'
fixdep.c:(.text.startup+0x127): undefined reference to `__fprintf_chk'
fixdep.c:(.text.startup+0x131): undefined reference to `exit'
fixdep.c:(.text.startup+0x147): undefined reference to `stderr'
fixdep.c:(.text.startup+0x14c): undefined reference to `fwrite'
fixdep.c:(.text.startup+0x158): undefined reference to `perror'
fixdep.c:(.text.startup+0x162): undefined reference to `exit'
fixdep.c:(.text.startup+0x178): undefined reference to `stderr'
fixdep.c:(.text.startup+0x17d): undefined reference to `fwrite'
fixdep.c:(.text.startup+0x187): undefined reference to `exit'
collect2: error: ld returned 1 exit status
/var/tmp/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3/scripts/Makefile.host:109: recipe for target 'scripts/basic/fixdep' failed
make[2]: *** [scripts/basic/fixdep] Error 1
/var/tmp/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3/./Kbuild:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:119: recipe for target 'klibc' failed
make: *** [klibc] Error 2
 * ERROR: dev-libs/klibc-2.0.3-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 Mike Pagano gentoo-dev 2014-01-02 19:02:58 UTC
klibc will not compile with -nostdlib in your cflags.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2014-01-02 23:08:49 UTC
Ebuild itself has:

    append-flags -nostdlib
    ...
        KLIBCOPTFLAGS='-nostdlib' \
    ...
        KLIBCOPTFLAGS='-nostdlib' \
Comment 3 Mike Pagano gentoo-dev 2014-01-03 01:40:17 UTC
I think I was looking at an older version
Comment 4 Mike Pagano gentoo-dev 2014-01-03 02:03:21 UTC
I'll have to look at this a little deeper tomorrow or this weekend.
Comment 5 Mike Pagano gentoo-dev 2014-01-04 00:46:20 UTC
With -nostdlib:

gcc -Wp,-MD,scripts/basic/.fixdep.d -march=corei7 -mtune=native -O2 -pipe -Wall -Wstrict-prototypes -fomit-frame-pointer -nostdlib       -o scripts/basic/fixdep scripts/basic/fixdep.c
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400160
/tmp/ccbldaZC.o: In function `define_config':
fixdep.c:(.text+0x24): undefined reference to `realloc'
fixdep.c:(.text+0x6a): undefined reference to `memcpy'
fixdep.c:(.text+0x96): undefined reference to `perror'
fixdep.c:(.text+0xa0): undefined reference to `exit'
/tmp/ccbldaZC.o: In function `strrcmp':
fixdep.c:(.text+0xbb): undefined reference to `strlen'
fixdep.c:(.text+0xc6): undefined reference to `strlen'
/tmp/ccbldaZC.o: In function `parse_dep_file':
fixdep.c:(.text+0x11e): undefined reference to `strchr'
fixdep.c:(.text+0x14c): undefined reference to `__memcpy_chk'
fixdep.c:(.text+0x16d): undefined reference to `__printf_chk'
fixdep.c:(.text+0x1e2): undefined reference to `__memcpy_chk'
fixdep.c:(.text+0x25c): undefined reference to `__printf_chk'
fixdep.c:(.text+0x274): undefined reference to `__printf_chk'
fixdep.c:(.text+0x2b3): undefined reference to `__ctype_b_loc'
fixdep.c:(.text+0x2ec): undefined reference to `__printf_chk'
fixdep.c:(.text+0x2fd): undefined reference to `open'
fixdep.c:(.text+0x319): undefined reference to `__fxstat'
fixdep.c:(.text+0x33e): undefined reference to `mmap'
fixdep.c:(.text+0x3cb): undefined reference to `memcmp'
fixdep.c:(.text+0x3e2): undefined reference to `__ctype_b_loc'
fixdep.c:(.text+0x414): undefined reference to `perror'
fixdep.c:(.text+0x41c): undefined reference to `close'
fixdep.c:(.text+0x430): undefined reference to `munmap'
fixdep.c:(.text+0x438): undefined reference to `close'
fixdep.c:(.text+0x49c): undefined reference to `memcmp'
fixdep.c:(.text+0x4f0): undefined reference to `__memcpy_chk'
fixdep.c:(.text+0x53e): undefined reference to `__ctype_tolower_loc'
fixdep.c:(.text+0x573): undefined reference to `__printf_chk'
fixdep.c:(.text+0x58e): undefined reference to `stderr'
fixdep.c:(.text+0x593): undefined reference to `fwrite'
fixdep.c:(.text+0x5a0): undefined reference to `perror'
fixdep.c:(.text+0x5aa): undefined reference to `exit'
fixdep.c:(.text+0x5c0): undefined reference to `stderr'
fixdep.c:(.text+0x5c5): undefined reference to `fwrite'
fixdep.c:(.text+0x5cf): undefined reference to `exit'
/tmp/ccbldaZC.o: In function `strrcmp':
fixdep.c:(.text+0xe5): undefined reference to `memcmp'
/tmp/ccbldaZC.o: In function `main':
fixdep.c:(.text.startup+0x50): undefined reference to `__printf_chk'
fixdep.c:(.text.startup+0x60): undefined reference to `open'
fixdep.c:(.text.startup+0x79): undefined reference to `__fxstat'
fixdep.c:(.text.startup+0x9a): undefined reference to `mmap'
fixdep.c:(.text.startup+0xbd): undefined reference to `munmap'
fixdep.c:(.text.startup+0xc4): undefined reference to `close'
fixdep.c:(.text.startup+0xe6): undefined reference to `stderr'
fixdep.c:(.text.startup+0xed): undefined reference to `__fprintf_chk'
fixdep.c:(.text.startup+0xf4): undefined reference to `close'
fixdep.c:(.text.startup+0x100): undefined reference to `perror'
fixdep.c:(.text.startup+0x107): undefined reference to `close'
fixdep.c:(.text.startup+0x110): undefined reference to `stderr'
fixdep.c:(.text.startup+0x127): undefined reference to `__fprintf_chk'
fixdep.c:(.text.startup+0x131): undefined reference to `exit'
fixdep.c:(.text.startup+0x147): undefined reference to `stderr'
fixdep.c:(.text.startup+0x14c): undefined reference to `fwrite'
fixdep.c:(.text.startup+0x158): undefined reference to `perror'
fixdep.c:(.text.startup+0x162): undefined reference to `exit'
fixdep.c:(.text.startup+0x178): undefined reference to `stderr'
fixdep.c:(.text.startup+0x17d): undefined reference to `fwrite'
fixdep.c:(.text.startup+0x187): undefined reference to `exit'
collect2: error: ld returned 1 exit status

Without:

#gcc -Wp,-MD,scripts/basic/.fixdep.d -march=corei7 -mtune=native -O2 -pipe -Wall -Wstrict-prototypes -fomit-frame-pointer   -o scripts/basic/fixdep scripts/basic/fixdep.c
19:45:09-root@comanche:/tmp/portage/dev-libs/klibc-2.0.3/work/klibc-2.0.3 #
Comment 6 Florian Manschwetus 2014-08-28 10:50:02 UTC
Still having this error here, so any news?
Comment 7 Mike Pagano gentoo-dev 2014-08-29 12:46:54 UTC
Sounds like you have a custom-cflags combination that is not valid to build klibc. Feel free to take this upstream.
Comment 8 Arfrever Frehtes Taifersar Arahesis 2014-08-29 15:04:45 UTC
This bug occurs even with empty CFLAGS, CXXFLAGS, LDFLAGS.
Comment 9 Mike Pagano gentoo-dev 2014-08-29 23:58:45 UTC
Maybe custom-cflags should be removed from this ebuild. I know I will not be looking at this bug anymore.
Comment 10 Samuli Suominen gentoo-dev 2014-08-30 03:51:33 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #8)
> This bug occurs even with empty CFLAGS, CXXFLAGS, LDFLAGS.

but with USE="custom-cflags"? USE="custom-cflags" for klibc means you have to know what flags it needs to build itself

maybe put it to package.use.mask instead, to prevent users who don't know what flags klibc needs to build itself :o
Comment 11 David Carlos Manuelda 2015-05-11 21:14:39 UTC
IMHO, custom-cflags should not mean to actually know which flag to compile package with, but should mean which flags to *append* to compile package.

And in this case, there are plenty of "safe" flags that could be added in this side.

At least, that is how I understand the custom-cflags IUSE present in several packages.
Comment 12 David Carlos Manuelda 2015-05-11 21:17:33 UTC
Add: At least that is the apparent behaviour of the rest of packages, where you set your own CFLAGS, but the package adds things automatically, for example -fPIC -DPIC, which you have not added manually.
Comment 13 Toralf Förster gentoo-dev 2015-07-26 13:21:34 UTC
Created attachment 407650 [details]
package history

FWIW here the data where it failed too :
-----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-13.0-unstable_20150726-123211) at a hardened host acting as a tinderbox.

Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 4.0.8-hardened x86_64)
=================================================================
System uname: Linux-4.0.8-hardened-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16164692 total,   1196964 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 26 Jul 2015 09:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

local
    location: /usr/local/portage
    masters: gentoo

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 9999

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --tree --quiet-build --accept-properties=-interactive --accept-restrict=-fetch"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox 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://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 avx2 berkdb bzip2 cairo cli consolekit cracklib crypt cups curl custom-cflags custom-optimization cxx dot dri drmkms dvd ecc fontconfig fortran fpm freetds gdbm gif git gnuplot gui help iconv imap introspection ipv6 jadetex javaxml jpeg kde kvm mmx mmxext modules multilib ncurses nls nptl oci8 offensive opencv openmp openssl pam pax_kernel pcre pdo plasma png policykit qml qt3support readline scrypt semantic-desktop session spice sqlite sqlite3 sse sse2 sse4 sse4_1 sse4_2 ssh-askpass ssl ssse3 svg system-cairo system-icu system-sqlite tcpd tls truetype unicode usbredir uxa video widgets x264 xkb 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARG ETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON