Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259192 - sys-libs/libstdc++-v3-3.3.6 fails to build: No rule to make target `../include/xregex.h', needed by `regex.o'.
Summary: sys-libs/libstdc++-v3-3.3.6 fails to build: No rule to make target `../includ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 259171 259173 259204 259289 259315 259362 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-16 09:01 UTC by Tony Thedford
Modified: 2009-02-27 11:03 UTC (History)
26 users (show)

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


Attachments
Separate build dir (bug259192a.patch,673 bytes, patch)
2009-02-16 19:50 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Thedford 2009-02-16 09:01:09 UTC
Can not emerge sys-libs/libstdc++-v3-3.3.6 on x86 machine with current gentoo build. Gcc version 4.1.2, binutils version 2.18-r3, glibc version 2.6.1.

Here is the emerge error:

checking for working strncmp... yes
updating cache ../config.cache
creating ./config.status
creating Makefile
creating testsuite/Makefile
creating config.h
make[1]: Entering directory `/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/work/gcc-3.3.6/i686-pc-linux-gnu/libiberty'
if [ x"-fpic" != x ] && [ ! -d pic ]; then \
          mkdir pic; \
        else true; fi
make[1]: *** No rule to make target `../include/xregex.h', needed by `regex.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
touch stamp-picdir
make[1]: Leaving directory `/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/work/gcc-3.3.6/i686-pc-linux-gnu/libiberty'
make: *** [all-target-libiberty] Error 2
 * 
 * ERROR: sys-libs/libstdc++-v3-3.3.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2736:  Called die
 * The specific snippet of code:
 *       emake all-target-libstdc++-v3 || die
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/temp/environment'.
 * 


Reproducible: Always
Comment 1 Mathias Weigt 2009-02-16 09:28:17 UTC
same here, guess it is a missing dependency
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2009-02-16 11:54:18 UTC
*** Bug 259204 has been marked as a duplicate of this bug. ***
Comment 3 Stanislav Cymbalov 2009-02-16 11:59:07 UTC
Duplicate of bug #259173
Comment 4 Mathias Weigt 2009-02-16 12:04:09 UTC
(In reply to comment #3)
> Duplicate of bug #259173

Nop, In bug #259173 two issues are mixed now, but originally this is a different bug.

Comment 5 Andreas Duering 2009-02-16 14:41:48 UTC
Same problem here, "no rule to make target..."
To avoid it, it ran emerge with --noreplace ...

Hope it will be fixed soon, though
Comment 6 Kevin Parent 2009-02-16 17:10:28 UTC
Same issue here.

I'm using CFLAGS="-march=k8 -O2 pipe" and CHOST="i686-pc-linux-gnu" in /etc/make.conf.  Tried with -march=athlon-xp and it failed with the same error.

Failed on two machines with same error - Turion X2 RM70 and Athlon64 3500+, both in 32bit mode.

updating cache ../config.cache
creating ./config.status
creating Makefile
creating testsuite/Makefile
creating config.h
make[1]: Entering directory `/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/work/gcc-3.3.6/i686-pc-linux-gnu/libiberty'
if [ x"-fpic" != x ] && [ ! -d pic ]; then \
	  mkdir pic; \
	else true; fi
make[1]: *** No rule to make target `../include/xregex.h', needed by `regex.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
touch stamp-picdir
make[1]: Leaving directory `/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/work/gcc-3.3.6/i686-pc-linux-gnu/libiberty'
make: *** [all-target-libiberty] Error 2
 * 
 * ERROR: sys-libs/libstdc++-v3-3.3.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2754:  Called die
 * The specific snippet of code:
 *       emake all-target-libstdc++-v3 || die
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/temp/environment'.



# emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-i686-AMD_Turion_Dual-Core_RM-70-with-glibc2.0
Timestamp of tree: Mon, 16 Feb 2009 15:15:03 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /usr/portage/local/layman/lcd-filtering /usr/portage/local/layman/webapps-experimental /usr/local/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="3dnowext X aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds emboss encode esd evo exif fam ffmpeg firefox flac fortran fuse gdbm gif gnome gnome-keyring gpm gstreamer gtk hal iconv id3tag isdnlog jpeg laptop ldap libnotify mad midi mikmod mmx mmxext mp3 mpeg mudflap nautilus ncurses network-cron nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse2 ssl startup-notification suexec svg swat sysfs tcpd threads tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv xvmc zlib" ALSA_CARDS="hda-intel" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 7 Andreas Bögehold 2009-02-16 17:50:51 UTC
Identified the problem. However i am not firm enough with ebuilds to actually fix it.

The maintainer threw out a lot of stuff from the ebuild, especially the part which creates a separate build directory. However, there are reports on the web which say that building gcc in the source directory is not supported and may lead to problems. This is probably the case here.

I changed the ebuild on my system so that it does the build-directory thing in the compile-part and it compiles fine. However i don't know how to apply this to the install part.

Comment 8 Martin von Gagern 2009-02-16 19:50:57 UTC
Created attachment 182263 [details, diff]
Separate build dir

(In reply to comment #7)
> Identified the problem. However i am not firm enough with ebuilds to actually
> fix it.

The atached patch changes the ebuild to use a build directory different from the source directory, namely ${WORKDIR}/build.

Seems to work here, and fix the bug. Thanks for identifying this issue!
Comment 9 Per Pascal Seeland 2009-02-16 20:45:52 UTC
(In reply to comment #8)
I can confirm that the patch fixes the issue on x86 stable
Comment 10 Alexandre Ney 2009-02-16 21:58:29 UTC
I have just tried that patch on X64 and unfortunately, it does not work. Same bug.
Comment 11 Rafał Mużyło 2009-02-16 22:30:37 UTC
(In reply to comment #10)
> I have just tried that patch on X64 and unfortunately, it does not work. Same
> bug.
> 

'Same bug' as in 'still doesn't build' or does it fail with ld errors
like in bug 259171 and bug 259215
Comment 12 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-16 22:47:57 UTC
*** Bug 259173 has been marked as a duplicate of this bug. ***
Comment 13 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-16 22:48:06 UTC
*** Bug 259171 has been marked as a duplicate of this bug. ***
Comment 14 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-16 22:48:33 UTC
*** Bug 259215 has been marked as a duplicate of this bug. ***
Comment 15 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-16 22:48:41 UTC
*** Bug 259289 has been marked as a duplicate of this bug. ***
Comment 16 Ivan Kurnosov 2009-02-16 23:27:37 UTC
same here :-(

make: *** [all-target-libiberty] Ошибка 2
 *
 * ERROR: sys-libs/libstdc++-v3-3.3.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2764:  Called die
 * The specific snippet of code:
 *       emake all-target-libstdc++-v3 || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/libstdc++-v3-3.3.6/temp/environment'.
Comment 17 SpanKY gentoo-dev 2009-02-16 23:38:42 UTC
thanks, restored out-of-tree building in cvs

http://sources.gentoo.org/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6.ebuild?r1=1.22&r2=1.23
Comment 18 Serkan Kaba (RETIRED) gentoo-dev 2009-02-17 05:22:57 UTC
*** Bug 259315 has been marked as a duplicate of this bug. ***
Comment 19 Rafał Mużyło 2009-02-17 17:20:51 UTC
*** Bug 259362 has been marked as a duplicate of this bug. ***