Created attachment 315893 [details] /var/tmp/portage/sys-devel/clang-3.1-r4/temp/clang-3.1-increase-parser-recursion-limit.patch.out * Failed Patch: clang-3.1-increase-parser-recursion-limit.patch ! * ( /usr/portage/sys-devel/clang/files/clang-3.1-increase-parser-recursion-limit.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/sys-devel/clang-3.1-r4/temp/clang-3.1-increase-parser-recursion-limit.patch.out * ERROR: sys-devel/clang-3.1-r4 failed (prepare phase): * Failed Patch: clang-3.1-increase-parser-recursion-limit.patch! * * Call stack: * ebuild.sh, line 85: Called src_prepare * environment, line 4690: Called epatch '/usr/portage/sys-devel/clang/files/clang-3.1-increase-parser-recursion-limit.patch' * environment, line 1519: Called die * The specific snippet of code: * die "Failed Patch: ${patchname}!"; ==================================================================== # emerge --info '=sys-devel/clang-3.1-r4' Portage 2.1.10.65 (default/linux/amd64/10.0, gcc-4.4.6, glibc-2.12.2, 3.0.1-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.0.1-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.3 Timestamp of tree: Wed, 20 Jun 2012 06:45:01 +0000 app-shells/bash: 4.2_p10 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.5-r2 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.6-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 Repositories: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA skype-eula skype-4.0.0.7-copyright PUEL Oracle-BCLA-JavaSE google-chrome" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" 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" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.po.opole.pl http://gentoo.mirror.pw.edu.pl/ http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.ynet.sk/pub/gentoo/" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync3.pl.gentoo.org/gentoo-portage" USE="X a52 aac acl aften alsa amd64 amr apng bash-completion berkdb boost bzip2 cairo cdda cddb cdparanoia cli cracklib crypt cscope cups cxx dbus dga dri dts dvdnav fam ffmpeg flac fontconfig fortran gdbm gif gnuplot gpm gstreamer iconv ipv6 java jpeg jpeg2k lxde mad mmx mng modules mp3 mudflap multilib ncurses nptl ogg openexr opengl openmp pam pcap pcre pdf png pnm pppd private-headers readline session sse sse2 ssl ssse3 svg tcpd tiff truetype unicode vim vim-pager x264 xanim xml xorg xv xvid 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 sheets 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ==================================================================== # emerge -pqv '=sys-devel/clang-3.1-r4' [ebuild U ] sys-devel/clang-3.1-r4 [3.0] USE="static-analyzer -debug -multitarget -test (-system-cxx-headers%*)"
Created attachment 315895 [details] the complete build log
Try `rm -r /var/tmp/portage && emerge clang` and let us know if that solves it.
It didn't help.
Would you attach the contents of /var/tmp/portage/sys-devel/clang-3.1-r4/temp/clang-3.1-increase-parser-recursion-limit.patch.out?
I have attached it already.
This particular patch has DOS-line endings. What is your version of patch? If you do not have 2.6.1, this will fail for you. I converted the patch in CVS, so it should work on your next sync
(In reply to comment #5) > I have attached it already. Sorry about that. I was extremely surprised that you encountered this issue and missed that when double checking things. (In reply to comment #6) > This particular patch has DOS-line endings. What is your version of patch? > If you do not have 2.6.1, this will fail for you. > > I converted the patch in CVS, so it should work on your next sync That solves the mystery. Vladmir, would you post the output of `emerge --info patch`?
Valdmir, I suspect that your system is out of date. Patch 2.6.1 should have prevented this issue. Which version is present on your system?
That is. I really had the old version of patch (2.5.9). The problem is solved. Thanks!