Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390193 - Prefix bootstrap fails with "chmod: cannot access `include/syslimits.h': No such file or directory"
Summary: Prefix bootstrap fails with "chmod: cannot access `include/syslimits.h': No s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 16:12 UTC by Nicolas Pinto
Modified: 2011-11-11 19:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Pinto 2011-11-11 16:12:45 UTC
I'm trying to bootstrap a prefix on another Gentoo amd64 where linux-headers may be out of sync. When bootstrapping I'm getting the error 'include/syslimits.h': No such file or directory'

Reproducible: Always

Steps to Reproduce:
1. Bootstrap a Prefix until:
2. emerge --quiet --oneshot --nodeps "=gcc-4.2*"
Actual Results:  

(...)

make[5]: Entering directory `/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/prev-gcc'
(cd `${PWDCMD-pwd}`/include ; \
         tar -cf - .; exit 0) | (cd /home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/prev-
gcc/../gcc/./include; tar xpf - )
/home/npinto/gentoo/tmp/usr/bin/bash: line 1: 11402 Aborted                 tar -cf - .
make[5]: Leaving directory `/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/prev-gcc'
chmod a+r include/syslimits.h
chmod: cannot access `include/syslimits.h': No such file or directory
make[4]: *** [stmp-fixinc] Error 1
make[4]: Leaving directory `/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/gcc'
make[3]: *** [all-stage2-gcc] Error 2
make[3]: Leaving directory `/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
make[2]: *** [stage2-bubble] Error 2
make[2]: Leaving directory `/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
make[1]: *** [bootstrap-lean] Error 2
make[1]: Leaving directory `/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
emake failed
 * ERROR: sys-devel/gcc-4.2.4-r01.4 failed (compile phase):
 *   emake failed with bootstrap-lean
 *
 * Call stack:
 *     ebuild.sh, line   98:  Called src_compile
 *   environment, line 4676:  Called gcc_src_compile
 *   environment, line 2925:  Called toolchain_src_compile
 *   environment, line 5503:  Called gcc_do_make
 *   environment, line 2763:  Called die 
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="$
{BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.2.4-r01.4',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.2.4-r01.4'.
 * The complete build log is located at '/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.
log'.
 * The ebuild environment file is located at '/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/e
nvironment'.
 * S: '/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'

 * Messages for package sys-devel/gcc-4.2.4-r01.4:

 * Can't read /config.sub, skipping..
 * Can't read /config.guess, skipping..
 * ERROR: sys-devel/gcc-4.2.4-r01.4 failed (compile phase):
 *   emake failed with bootstrap-lean
 * 
 * Call stack:
 *     ebuild.sh, line   98:  Called src_compile
 *   environment, line 4676:  Called gcc_src_compile
 *   environment, line 2925:  Called toolchain_src_compile
 *   environment, line 5503:  Called gcc_do_make
 *   environment, line 2763:  Called die
 * The specific snippet of code:
 *       emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${EPREFIX}${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
 * 
 * If you need support, post the output of 'emerge --info =sys-devel/gcc-4.2.4-r01.4',
 * the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.2.4-r01.4'.
 * The complete build log is located at '/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'.
 * The ebuild environment file is located at '/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/environment'.
 * S: '/home/npinto/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'


Expected Results:  
gcc successfully emerged

$ emerge --info =sys-devel/gcc-4.2.4-r01.4 

Portage 2.2.01.19572-prefix (prefix/linux/amd64, gcc-4.5.3, unavailable, 2.6.38-gentoo-r6 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-gentoo-r6-x86_64-with-gentoo-2.0.3
Timestamp of tree: Thu, 10 Nov 2011 22:40:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:      4.2_p10
sys-devel/binutils:   2.21.53.0.2
sys-devel/gcc-config: 1.4.1-r00.2
Repositories: gentoo_prefix
Installed sets: 
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CPPFLAGS="-I/home/npinto/gentoo/usr/include"
CXXFLAGS="-O2 -pipe"
DISTDIR="/home/npinto/gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-L/home/npinto/gentoo/usr/lib -Wl,-rpath=/home/npinto/gentoo/usr/lib -L/home/npinto/gentoo/lib -Wl,-rpath=/home/npinto/gentoo/lib"
MAKEOPTS="-j 9"
PKGDIR="/home/npinto/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/npinto/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/npinto/gentoo/var/tmp"
PORTDIR="/home/npinto/gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="amd64 bootstrap bzip2 cli cracklib crypt cxx dri iconv ipv6 mmx modules mudflap ncurses nptl nptlonly openmp pppd prefix readline session sse sse2 sysfs tcpd unicode xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic 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:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

$ emerge -pqv =sys-devel/gcc-4.2.4-r01.4 
[ebuild  N    ] dev-libs/gmp-5.0.2  USE="-nocxx" 
[ebuild  N    ] sys-libs/ncurses-5.7-r6  USE="cxx unicode -ada -debug -doc (-gpm) -minimal -profile -static-libs -trace" 
[ebuild  N    ] sys-libs/zlib-1.2.5-r2 
[ebuild  N    ] sys-devel/gnuconfig-20110814 
[ebuild  N    ] virtual/libiconv-0 
[ebuild  N    ] sys-apps/texinfo-4.13-r1  USE="-nls -static" 
[ebuild  N    ] dev-libs/mpfr-3.0.1 
[ebuild  N    ] sys-devel/gcc-4.2.4-r01.4  USE="bootstrap mudflap nptl openmp (-altivec) -build -doc -fortran -gcj -gtk (-hardened) (-libffi) (-multilib) -multislot -nls -nocxx -objc -objc++ -objc-gc -test -vanilla"
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-11-11 16:22:42 UTC
The real issue is this line: 

/home/npinto/gentoo/tmp/usr/bin/bash: line 1: 11402 Aborted                 tar
-cf - .
Comment 2 Nicolas Pinto 2011-11-11 16:36:26 UTC
Good catch! Thanks for the fast answer. 

I must have a corrupted tar, I bootstrapped tar15 since this version was the only one that seems to work on all platforms/distros I tried. I'll revert back to the lastest tar and report back.
Comment 3 Nicolas Pinto 2011-11-11 16:47:09 UTC
$ ./bootstrap-prefix.sh $EPREFIX/tmp tar

fails with

rm -f libtar.a
ar cru libtar.a argp-ba.o argp-eexst.o argp-fmtstream.o argp-fs-xinl.o argp-help.o argp-parse.o argp-pin.o argp-pv.o argp-pvh.o argp-xinl.o full-write.o getda
te.o localcharset.o malloca.o mbchar.o mbscasecmp.o openat-die.o strnlen1.o uniwidth/width.o version-etc.o version-etc-fsf.o xalloc-die.o xstrndup.o xstrtouma
x.o paxerror.o paxexit.o paxnames.o prepargs.o rtapelib.o stdopen.o argmatch.o asnprintf.o backupfile.o basename.o chdir-long.o close-stream.o closeout.o crea
t-safer.o dirname.o dup-safer.o exclude.o exitfail.o fd-safer.o getcwd.o getopt.o getopt1.o gettime.o hash.o human.o imaxtostr.o modechange.o offtostr.o open-
safer.o openat-proc.o pipe-safer.o printf-args.o printf-parse.o quote.o quotearg.o safe-read.o safe-write.o save-cwd.o savedir.o stripslash.o tempname.o uintt
ostr.o umaxtostr.o unlinkdir.o utimens.o vasnprintf.o xgetcwd.o xmalloc.o xstrtol.o xstrtol-error.o xstrtoul.o
ranlib libtar.a
make[3]: Leaving directory `/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib'
make[2]: Leaving directory `/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib'
Making all in rmt
make[2]: Entering directory `/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/rmt'
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT rmt.o -MD -MP -MF ".deps/rmt.Tpo" -c -o rmt.o rmt.c; \
        then mv -f ".deps/rmt.Tpo" ".deps/rmt.Po"; else rm -f ".deps/rmt.Tpo"; exit 1; fi
gcc -std=gnu99  -g -O2   -o rmt  rmt.o ../lib/libtar.a
make[2]: Leaving directory `/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/rmt'
Making all in src
make[2]: Entering directory `/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src'
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT buffer.o -MD -MP -MF ".deps/buffer.Tpo" -c -o buffer.o buffer.c; \
        then mv -f ".deps/buffer.Tpo" ".deps/buffer.Po"; else rm -f ".deps/buffer.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT compare.o -MD -MP -MF ".deps/compare.Tpo" -c -o compare.o compare.c; \
        then mv -f ".deps/compare.Tpo" ".deps/compare.Po"; else rm -f ".deps/compare.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT create.o -MD -MP -MF ".deps/create.Tpo" -c -o create.o create.c; \
        then mv -f ".deps/create.Tpo" ".deps/create.Po"; else rm -f ".deps/create.Tpo"; exit 1; fi
In file included from /usr/include/string.h:642:0,  
                 from ../lib/string.h:23,
                 from ../lib/system.h:54,
                 from create.c:22:
In function ‘strcpy’,
    inlined from ‘write_gnu_long_link’ at create.c:580:10:
/usr/include/bits/string3.h:105:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer
In function ‘strcpy’,
    inlined from ‘start_header’ at create.c:912:14: 
/usr/include/bits/string3.h:105:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT delete.o -MD -MP -MF ".deps/delete.Tpo" -c -o delete.o delete.c; \
        then mv -f ".deps/delete.Tpo" ".deps/delete.Po"; else rm -f ".deps/delete.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT extract.o -MD -MP -MF ".deps/extract.Tpo" -c -o extract.o extract.c; \
        then mv -f ".deps/extract.Tpo" ".deps/extract.Po"; else rm -f ".deps/extract.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT xheader.o -MD -MP -MF ".deps/xheader.Tpo" -c -o xheader.o xheader.c; \
        then mv -f ".deps/xheader.Tpo" ".deps/xheader.Po"; else rm -f ".deps/xheader.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT incremen.o -MD -MP -MF ".deps/incremen.Tpo" -c -o incremen.o incremen.c; 
\
        then mv -f ".deps/incremen.Tpo" ".deps/incremen.Po"; else rm -f ".deps/incremen.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT list.o -MD -MP -MF ".deps/list.Tpo" -c -o list.o list.c; \
        then mv -f ".deps/list.Tpo" ".deps/list.Po"; else rm -f ".deps/list.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \
        then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT names.o -MD -MP -MF ".deps/names.Tpo" -c -o names.o names.c; \
        then mv -f ".deps/names.Tpo" ".deps/names.Po"; else rm -f ".deps/names.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT sparse.o -MD -MP -MF ".deps/sparse.Tpo" -c -o sparse.o sparse.c; \
        then mv -f ".deps/sparse.Tpo" ".deps/sparse.Po"; else rm -f ".deps/sparse.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT system.o -MD -MP -MF ".deps/system.Tpo" -c -o system.o system.c; \
        then mv -f ".deps/system.Tpo" ".deps/system.Po"; else rm -f ".deps/system.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT tar.o -MD -MP -MF ".deps/tar.Tpo" -c -o tar.o tar.c; \
        then mv -f ".deps/tar.Tpo" ".deps/tar.Po"; else rm -f ".deps/tar.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT transform.o -MD -MP -MF ".deps/transform.Tpo" -c -o transform.o transform
.c; \
        then mv -f ".deps/transform.Tpo" ".deps/transform.Po"; else rm -f ".deps/transform.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT update.o -MD -MP -MF ".deps/update.Tpo" -c -o update.o update.c; \
        then mv -f ".deps/update.Tpo" ".deps/update.Po"; else rm -f ".deps/update.Tpo"; exit 1; fi
if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../ -I../lib    -g -O2 -MT utf8.o -MD -MP -MF ".deps/utf8.Tpo" -c -o utf8.o utf8.c; \
        then mv -f ".deps/utf8.Tpo" ".deps/utf8.Po"; else rm -f ".deps/utf8.Tpo"; exit 1; fi
gcc -std=gnu99  -g -O2   -o tar  buffer.o compare.o create.o delete.o extract.o xheader.o incremen.o list.o misc.o names.o sparse.o system.o tar.o transform.o
 update.o utf8.o ../lib/libtar.a   -lrt
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_point':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:279: multiple definition of `argp_fmtstream_point'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:279: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_set_wmargin':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:267: multiple definition of `argp_fmtstream_set_wmargin'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:267: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_set_rmargin':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:255: multiple definition of `argp_fmtstream_set_rmargin'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:255: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_set_lmargin':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:243: multiple definition of `argp_fmtstream_set_lmargin'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:243: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_putc':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:233: multiple definition of `argp_fmtstream_putc'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:233: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_write':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:207: multiple definition of `argp_fmtstream_write'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:207: first defined here
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_puts':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:220: multiple definition of `argp_fmtstream_puts'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:220: first defined here
../lib/libtar.a(argp-help.o): In function `_option_is_short':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp.h:594: multiple definition of `_option_is_short'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp.h:594: first defined here
../lib/libtar.a(argp-help.o): In function `_option_is_end':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp.h:606: multiple definition of `_option_is_end'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp.h:606: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_write':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:207: multiple definition of `argp_fmtstream_write'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:207: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_puts':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:220: multiple definition of `argp_fmtstream_puts'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:220: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_putc':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:233: multiple definition of `argp_fmtstream_putc'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:233: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_set_lmargin':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:243: multiple definition of `argp_fmtstream_set_lmargin'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:243: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_set_rmargin':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:255: multiple definition of `argp_fmtstream_set_rmargin'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:255: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_set_wmargin':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:267: multiple definition of `argp_fmtstream_set_wmargin'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:267: first defined here
../lib/libtar.a(argp-help.o): In function `argp_fmtstream_point':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp-fmtstream.h:279: multiple definition of `argp_fmtstream_point'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp-fmtstream.h:279: first defined here
../lib/libtar.a(argp-help.o): In function `argp_usage':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp.h:588: multiple definition of `argp_usage'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp.h:588: first defined here
../lib/libtar.a(argp-parse.o): In function `argp_usage':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp.h:588: multiple definition of `argp_usage'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp.h:588: first defined here
../lib/libtar.a(argp-parse.o): In function `_option_is_short':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp.h:594: multiple definition of `_option_is_short'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp.h:594: first defined here
../lib/libtar.a(argp-parse.o): In function `_option_is_end':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp.h:606: multiple definition of `_option_is_end'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp.h:606: first defined here
../lib/libtar.a(argp-pvh.o): In function `argp_usage':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp.h:588: multiple definition of `argp_usage'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp.h:588: first defined here
../lib/libtar.a(argp-pvh.o): In function `_option_is_short':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp.h:594: multiple definition of `_option_is_short'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp.h:594: first defined here
../lib/libtar.a(argp-pvh.o): In function `_option_is_end':
/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/lib/argp.h:606: multiple definition of `_option_is_end'
tar.o:/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src/../lib/argp.h:606: first defined here
collect2: ld returned 1 exit status
make[2]: *** [tar] Error 1
make[2]: Leaving directory `/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pinto/gentoo/tmp/var/tmp/tar-1.19/tar-1.19'
make: *** [all] Error 2

Any thoughts ?
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-11-11 17:38:38 UTC
try "./bootstrap-prefix.sh $EPREFIX/tmp tar22"
Comment 5 Nicolas Pinto 2011-11-11 19:03:51 UTC
Thanks. It's working with tar22.