Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Emake failed while compiling Yasm Emerging Gnome
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
EddieRingle
n00b
n00b


Joined: 12 Dec 2010
Posts: 2

PostPosted: Sun Dec 12, 2010 2:37 pm    Post subject: [SOLVED] Emake failed while compiling Yasm Emerging Gnome Reply with quote

Since 200-some packages is quite a few, I decided to let emerge run overnight while it installed GNOME and its dependencies. However, when it got around to installing yasm (1.1.0 in ~amd64),
I got a pretty vague error:

Code:
x86_64-pc-linux-gnu-gcc -std=gnu99  -O2 -pipe -march=amdfam10  -Wl,-O1 -Wl,--as-needed -o vsyasm vsyasm.o yasm-options.o libyasm.a 
# pyxstr...
# wrote _yasm.pxi, 2188 lines
/usr/bin/python -c "from Cython.Compiler.Main import main; main(command_line=1)" \
   -o yasm_python.c yasm.pyx
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Main.py", line 790, in main
    result = compile(sources, options)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Main.py", line 765, in compile
    return compile_multiple(source, options)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Main.py", line 737, in compile_multiple
    result = run_pipeline(source, options)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Main.py", line 601, in run_pipeline
    err, enddata = context.run_pipeline(pipeline, source)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Main.py", line 240, in run_pipeline
    data = phase(data)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1025, in __call__
    return super(AnalyseDeclarationsTransform, self).__call__(root)       
  File "Visitor.py", line 272, in Cython.Compiler.Visitor.CythonTransform.__call__ (Cython/Compiler/Visitor.c:4936)
  File "Visitor.py", line 255, in Cython.Compiler.Visitor.VisitorTransform.__call__ (Cython/Compiler/Visitor.c:4696)
  File "Visitor.py", line 163, in Cython.Compiler.Visitor.TreeVisitor._visit (Cython/Compiler/Visitor.c:3254)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1033, in visit_ModuleNode
    node.analyse_declarations(self.env_stack[-1])
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/ModuleNode.py", line 64, in analyse_declarations
    self.body.analyse_declarations(env)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 346, in analyse_declarations
    stat.analyse_declarations(env)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 346, in analyse_declarations
    stat.analyse_declarations(env)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 3249, in analyse_declarations
    self.body.analyse_declarations(scope)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 346, in analyse_declarations
    stat.analyse_declarations(env)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 1999, in analyse_declarations
    self.analyse_signature(env)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 2097, in analyse_signature
    arg.hdr_type = sig.fixed_arg_type(i)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/TypeSlots.py", line 100, in fixed_arg_type
    return self.format_map[self.fixed_arg_format[i]]
KeyError: 'T'
make[2]: *** [yasm_python.c] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-lang/yasm-1.1.0/work/yasm-1.1.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-lang/yasm-1.1.0/work/yasm-1.1.0'
make: *** [all] Error 2
emake failed
 * ERROR: dev-lang/yasm-1.1.0 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4955:  Called _eapi2_src_compile
 *     ebuild.sh, line  654:  Called die
 * The specific snippet of code:
 *         emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =dev-lang/yasm-1.1.0',
 * the complete build log and the output of 'emerge -pqv =dev-lang/yasm-1.1.0'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/yasm-1.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/yasm-1.1.0/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/yasm-1.1.0/work/yasm-1.1.0'


I tried Googling around but did not find much help. All I could find was that emake was a part of portage's build system (which is why I chose to post in this forum) and that prepending the emerge command with 'MAKEOPTS="-j1"' may help (since I am currently using "-j5") as it serializes the build. However, that didn't work.

Any help would be greatly appreciated, I've already gotten this far into my first Gentoo build and definitely don't want to call this weekend a waste of time.

EDIT: Here is the output of `emerge --info =dev-lang/yasm-1.1.0` as well:
Code:
vagus ~ # emerge --info =dev-lang/yasm-1.1.0
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop, gcc-4.5.1, glibc-2.12.1-r3, 2.6.37-rc5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-rc5-x86_64-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-2.0.1
Timestamp of tree: Sun, 12 Dec 2010 13:45:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.5-r3, 2.7.1, 3.1.3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
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.21
sys-devel/gcc:       4.4.4-r2, 4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=amdfam10"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.cs.wmich.edu/gentoo ftp://lug.mtu.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo"
LANG="C"
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 --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync24.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups curl cxx dbus device-mapper dri dts dvd dvdr emboss encode exif extras fam firefox flac fortran gdbm gdu gif gmp gnome gpm gstreamer gtk hal iconv ipv6 jpeg kdrive lcms ldap libnotify libpng mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd pulseaudio python qt3support qt4 readline sdl session sip spell sqlite sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode usb vorbis wav x264 xcb xml xorg xulrunner 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" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Last edited by EddieRingle on Sun Dec 12, 2010 5:32 pm; edited 2 times in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21642

PostPosted: Sun Dec 12, 2010 5:21 pm    Post subject: Reply with quote

I am not sure why it failed, but it looks like that is in the Python extension of yasm. If you do not need that, you can use /etc/portage/package.use to disable Python support for yasm, which should skip building the failed piece. You can always come back and add Python support later if you encounter something that needs it.
Back to top
View user's profile Send private message
EddieRingle
n00b
n00b


Joined: 12 Dec 2010
Posts: 2

PostPosted: Sun Dec 12, 2010 5:28 pm    Post subject: Reply with quote

Ah, thank you so much. That solved it. I'll try compiling it with python support when a newer version is available, I don't need it right now.
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