Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636810 - sys-libs/zlib-1.2.11 fails in stage2 of bootstrap-prefix.sh on debian stable x64
Summary: sys-libs/zlib-1.2.11 fails in stage2 of bootstrap-prefix.sh on debian stable x64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on: 628874
Blocks:
  Show dependency tree
 
Reported: 2017-11-07 18:01 UTC by kehak
Modified: 2017-12-01 05:18 UTC (History)
0 users

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


Attachments
cat $EPREFIX/stage*.log | tail -1000 (stage2.log,101.65 KB, text/x-log)
2017-11-07 18:01 UTC, kehak
Details
full log archive (gcc-build-logs.tar.bz2,97.61 KB, application/x-bzip)
2017-11-07 18:54 UTC, kehak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kehak 2017-11-07 18:01:35 UTC
Created attachment 502948 [details]
cat $EPREFIX/stage*.log | tail -1000

Error: "relocation R_X86_64_PC32 against symbol `_length_code' needs -fPIC"

Prefix info:

Portage 2.3.8-prefix (python 2.7.3-final-0, prefix/linux/amd64, [unavailable], unavailable, 4.9.0-4-amd64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.0-4-amd64-x86_64-with-debian-9.2
KiB Mem:    20417228 total,   7775564 free
KiB Swap:     262140 total,    262140 free
Timestamp of repository gentoo_prefix: Sun, 24 Sep 2017 21:59:38 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
Repositories:

gentoo_prefix
    location: /home/damien/gentoo/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix
    priority: -1000

ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -pipe -std=gnu89"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release"
CXXFLAGS="-O2 -pipe -O2 -pipe -std=gnu89"
DISTDIR="/home/damien/gentoo/tmp/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS=""
PKGDIR="/home/damien/gentoo/tmp/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/damien/gentoo/tmp/"
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="/home/damien/gentoo/tmp/var/tmp"
USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pcre prefix prefix-guest readline seccomp session ssl tcpd unicode 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="mmx mmxext sse sse2" 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="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Checked with #gentoo-prefix, which advised to create this bug report
Comment 1 kehak 2017-11-07 18:54:22 UTC
Created attachment 503062 [details]
full log archive

Tried again on a new empty prefix, same error: gcc won't build, also have errors on zlib. Added the whole log archive.
Comment 2 Fabian Groffen gentoo-dev 2017-11-13 14:24:39 UTC
I suspect a package wants to link against an existing (static?) library
Comment 3 Benda Xu gentoo-dev 2017-11-30 02:33:53 UTC
Hi kehak,

Because of Debian's multiarch, bootstrap-prefix.sh cannot bootstrap reliably. Please try bootstrap-rap.sh at 

  http://dev.gentoo.org/~heroxbd/bootstrap-rap.sh

Actually we are trying to make RAP the default bootstrap style for Prefix.  See bug 628874.

Benda
Comment 4 kehak 2017-11-30 18:29:07 UTC
Benda,

I actually tried prefix-rap the same day I filled this bug and it worked flawlessly, so I gave up trying to make bootstrap-prefix.sh work.

Since prefix-rap works so well and is an overall better replacement I'll mark the problem as RESOLVED.
Comment 5 Benda Xu gentoo-dev 2017-12-01 05:18:08 UTC
Thanks Kehak!