Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emake failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
shadowcoder
n00b
n00b


Joined: 06 Jun 2011
Posts: 7

PostPosted: Wed Jul 20, 2011 2:40 pm    Post subject: emake failed Reply with quote

Hey guys, I'm pretty new to Gentoo, and could definitely use some help here. If I've left any info out that would be helpful, let me know and I'll post it up.

When I tried to 'emerge -u expect' today, I received the error:

Code:

/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lexpect544115
collect2: ld returned 1 exit status
make: *** [expect] Error 1
emake failed
 * ERROR: dev-tcltk/expect-5.44.1.15 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2697:  Called _eapi2_src_compile
 *     ebuild.sh, line  665:  Called die
 * The specific snippet of code:
 *         emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =dev-tcltk/expect-5.44.1.15',
 * the complete build log and the output of 'emerge -pqv =dev-tcltk/expect-5.44.1.15'.
 * The complete build log is located at '/var/tmp/portage/dev-tcltk/expect-5.44.1.15/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-tcltk/expect-5.44.1.15/temp/environment'.
 * S: '/var/tmp/portage/dev-tcltk/expect-5.44.1.15/work/expect-5.44.1.15'

>>> Failed to emerge dev-tcltk/expect-5.44.1.15, Log file:

>>>  '/var/tmp/portage/dev-tcltk/expect-5.44.1.15/temp/build.log'

 * Messages for package dev-tcltk/expect-5.44.1.15:

 * ERROR: dev-tcltk/expect-5.44.1.15 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2697:  Called _eapi2_src_compile
 *     ebuild.sh, line  665:  Called die
 * The specific snippet of code:
 *         emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =dev-tcltk/expect-5.44.1.15',
 * the complete build log and the output of 'emerge -pqv =dev-tcltk/expect-5.44.1.15'.
 * The complete build log is located at '/var/tmp/portage/dev-tcltk/expect-5.44.1.15/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-tcltk/expect-5.44.1.15/temp/environment'.
 * S: '/var/tmp/portage/dev-tcltk/expect-5.44.1.15/work/expect-5.44.1.15'



emerge --info =dev-tcltk/expect-5.44.1.15
Code:

Portage 2.1.10.3 (hardened/linux/x86/server, gcc-4.4.5, unavailable, 2.6.18-gentoo-r4 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.18-gentoo-r4-i686-Intel-R-_Xeon-TM-_CPU_3.00GHz-with-gentoo-1.12.6
Timestamp of tree: Wed, 20 Jul 2011 13:30:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.3.5-r2::<unknown repository>, 2.4.4-r6, 2.5.4-r3, 2.6.5-r2
dev-util/cmake:           2.6.4-r3
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      1.12.6::<unknown repository>
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r2::<unknown repository>, 1.10.2, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            3.3.6::<unknown repository>, 3.4.6-r1::<unknown repository>, 4.1.1::<unknown repository>, 4.3.4, 4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.81::<unknown repository>
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -O3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe -O3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt css cups cxx db2 dbx dri fastcgi foomaticdb gd gdbm gif gpm hardened iconv jpg mod_jk modules mudflap mysql ncurses nls nptl nptlonly odbc openmp pam pcre perl php pic png ppds pppd python readline session snmp ssl sysfs tcpd truetype urandom usbi vhosts x86 xls xml xml2 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="authz_host authz_user authn_file auth_basic alias dav dav_fs dav_lock file_cache charset_lite cache disk_cache mem_cache filter ext_filter deflate mime_magic cern_meta expires headers usertrack unique_id info include dav dav_fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir actions userdir" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" 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="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Back to top
View user's profile Send private message
shadowcoder
n00b
n00b


Joined: 06 Jun 2011
Posts: 7

PostPosted: Wed Jul 27, 2011 2:26 pm    Post subject: Reply with quote

Anybody have any thoughts?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5655

PostPosted: Wed Jul 27, 2011 2:39 pm    Post subject: Reply with quote

Pastebin whole log - while it seems you've at least managed to get the actual error in, it's still hard to say what exactly went wrong before.
Back to top
View user's profile Send private message
shadowcoder
n00b
n00b


Joined: 06 Jun 2011
Posts: 7

PostPosted: Wed Jul 27, 2011 3:39 pm    Post subject: Reply with quote

http://pastebin.com/XtD17FMn
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 676
Location: IL

PostPosted: Tue Jan 29, 2013 10:37 pm    Post subject: Reply with quote

Was this issue resolved?

I need autoexpect so enabled 'doc' in the USE. I get

Code:
Installing documentation in /var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/image//usr/share/man
/usr/bin/install -c -m 644 ./expectk.man /var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/image//usr/share/man/man1/expectk.1 ; \
# install Expect man page
 : /var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/image//usr/lib64/expect5.44.1.15/libexpect5.44.1.15.so
Installing ./expect.h
Installing ./expect_tcl.h
/usr/bin/install -c -m 644 ./expect.man /var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/image//usr/share/man/man1/expect.1
Installing ./expect_comm.h
/usr/bin/install -c -m 644 ./libexpect.man /var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/image//usr/share/man/man3/libexpect.3
Installing ./tcldbg.h
for i in  end_of_list ; do \
  if [ -f ./example/$i.man ] ; then \
    /usr/bin/install -c -m 644 ./example/$i.man /var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/image//usr/share/man/man1/$i.1 ; \
  else true; fi ; \
done
 Install pkgIndex.tcl /var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/image//usr/lib64/expect5.44.1.15
for i in  ; do \
  if [ -f $i ] ; then \
    /usr/bin/install -c $i /var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/image//usr/bin/$i ; \
    rm -f $i ; \
  else true; fi ; \
done
make -j8 -l16 --no-print-directory -s -f -
doins failed
 * ERROR: dev-tcltk/expect-5.44.1.15 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_install
 *   environment, line 2873:  Called die
 * The specific snippet of code:
 *           doins $(printf 'example/%s ' $(expect_make_var SCRIPTS)) || die;
 *
 * If you need support, post the output of `emerge --info '=dev-tcltk/expect-5.44.1.15'`,
 * the complete build log and the output of `emerge -pqv '=dev-tcltk/expect-5.44.1.15'`.
 * The complete build log is located at '/var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/temp/environment'.
 * Working directory: '/var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/work/expect-5.44.1.15'
 * S: '/var/tmp/portage/portage/dev-tcltk/expect-5.44.1.15/work/expect-5.44.1.15'

Code:

http://bpaste.net/show/73730/
Back to top
View user's profile Send private message
solamour
Guru
Guru


Joined: 21 Dec 2004
Posts: 505
Location: San Diego, CA

PostPosted: Mon Jul 15, 2013 10:34 pm    Post subject: Reply with quote

I'm having the same problem; I need "autoexpect", so I added "doc" flag, but I'm getting "doins failed". If you are able to successfully emerge, please share the result.
__
sol
Back to top
View user's profile Send private message
vose
n00b
n00b


Joined: 28 Feb 2007
Posts: 22

PostPosted: Wed Jun 11, 2014 8:02 pm    Post subject: expect emerge fails and missing autoexpect Reply with quote

I'm having the same problem; I need "autoexpect", so I added "doc" flag, but I'm getting "doins failed".
I'm also interested a solution.

I may have forgotten something important (I didn't write it all down) or done something unnecessary, but something like the following finally worked for me:

0) emerge --sync
1) emerge app-shells/tcsh
2) emerge Expect
3) put "dev-tcltk/expect doc threads debug" in /etc/portage/package.use
4) put "dev-tcltk/expect ~amd64" in /etc/portage/package.keywords
5) emerge expect
6) cp /usr/share/doc/expect-5.45/examples/autoexpect.man.bz2 /usr/share/man/man1/autoexpect.1.bz2
7) cat /usr/share/doc/expect-5.45/examples/autoexpect.bz2 | bunzip2 > /usr/bin/

Hope this helps.

cheers
Back to top
View user's profile Send private message
luispa
Guru
Guru


Joined: 17 Mar 2006
Posts: 351
Location: España

PostPosted: Sun Nov 09, 2014 8:58 am    Post subject: Reply with quote

Thank you vose, I got it working from your post, also with 5.45 version. There were some missing commands in your guide, let me add what I did:

Code:
1) add "dev-tcltk/expect doc" into /etc/portage/package.use
2) add "dev-tcltk/expect ~amd64" into /etc/portage/package.accept_keywords
3) emerge expect
4) cp /usr/share/doc/expect-5.45/examples/autoexpect.man.bz2 /usr/share/man/man1/autoexpect.1.bz2
5) cat /usr/share/doc/expect-5.45/examples/autoexpect.bz2 | bunzip2 > /usr/bin/autoexpect
6) chmod 755 /usr/bin/autoexpect


Regards,
Luis
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9136

PostPosted: Sun Nov 09, 2014 4:15 pm    Post subject: Reply with quote

luispa: thank you for providing completed commands. However, in my opinion, the package should have handled this for you. I suggest filing a bug report to have the ebuild changed so that it does the right thing automatically for future users. You may need to manually remove your hand created /usr/bin/autoexpect and /usr/share/doc/expect-5.45/examples/autoexpect.bz2 when you upgrade to the fixed version.

For the benefit of future readers, there are two shortcuts that can be made on luispa's commands. First, step 5 is a UUOC. It can be abbreviated as bunzip2 < /usr/share/doc/expect-5.45/examples/autoexpect.bz2 > /usr/bin/autoexpect instead of using cat to provide stdin for bunzip2. Second, in step 2, if no architecture is supplied, then the testing version of the current architecture is implied. It is sufficient to echo dev-tcltk/expect >> /etc/portage/package.accept_keywords.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum