Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275272 - app-misc/flasm-1.62 requires dev-util/byacc-1.9-r2 but does not list it as a prereq
Summary: app-misc/flasm-1.62 requires dev-util/byacc-1.9-r2 but does not list it as a ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-24 11:40 UTC by Niall Daley
Modified: 2011-08-11 02:28 UTC (History)
1 user (show)

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


Attachments
Build.log showing compile error (build.log,2.13 KB, text/plain)
2009-06-25 11:05 UTC, Niall Daley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niall Daley 2009-06-24 11:40:11 UTC
Attempting to emerge app-misc/flasm-1.6.2 fails unless dev-util/byacc has been emerged first. The error is:

In file included from assembler.flex:17:
assembler.tab.h:323:14: warning: no newline at end of file
assembler.flex: In function 'yylex':
assembler.flex:71: error: 'yylval' undeclared (first use in this function)
assembler.flex:71: error: (Each undeclared identifier is reported only once
assembler.flex:71: error: for each function it appears in.)
make: *** [lex.yy.o] Error 1

It looks like byacc should be added to the required packages. I'm on an x86_64 machine.

Reproducible: Always

Steps to Reproduce:
1. emerge flasm - This fails
2. emerge byacc
3. emerge flasm - This succeeds 

Actual Results:  
The flasm package fails to request all required packages.

Expected Results:  
The byacc package should be required.

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-glibc2.2.5
Timestamp of tree: Wed, 24 Jun 2009 01:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-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="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ "
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
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="/usr/portage/local/layman/sunrise /usr/portage/local/layman/voyageur /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi ads alsa amd64 berkdb bzip2 cli cracklib crypt cups dbus dri exif fortran gdbm gnome gpm gtk hal iconv ipv6 isdnlog jpeg kerberos ldap midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl ppds pppd python readline reflection samba session spell spl sqlite sqlite3 sse sse2 sse3 sse4 ssl sysfs syslog tcpd unicode xinerama xorg xulrunner 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 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 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http userdir include autoindex asis alias actions" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2009-06-24 17:35:39 UTC
I think you've meant sys-devel/bison,
which actually already is a dep.
That means, that something was (and perhaps still is)
wrong with your system.
Attach your build.log.
Comment 2 Rafał Mużyło 2009-06-24 17:49:10 UTC
On the other hand, it may simply be a parallel make problem
- hard to tell without build.log.
Comment 3 Niall Daley 2009-06-25 11:04:08 UTC
I've just uninstalled byacc and flasm, then tried remerging flasm. I'll attach the build.log. 
Comment 4 Niall Daley 2009-06-25 11:05:05 UTC
Created attachment 195742 [details]
Build.log showing compile error
Comment 5 Rafał Mużyło 2009-06-25 14:34:36 UTC
OK, looks like it's the second case - parallel make.
See, if it works with '-j1'.
Comment 6 Rafał Mużyło 2009-06-25 14:38:10 UTC
Problem lies probably here:
assembler.tab.c assembler.tab.h: assembler.y
        bison --defines --debug assembler.y
with parallel make, that has a good reason to fail.
Comment 7 Niall Daley 2009-06-25 18:43:46 UTC
OK, that did indeed work with -j1 in my make.conf. Any idea why installing byacc first fixed the problem with -j4?
Comment 8 Rafał Mużyło 2009-06-27 01:16:32 UTC
Well, parallel make bugs are quite sensitive to timing...
IOW, I don't have a clue.
Comment 9 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-02-23 10:20:15 UTC
I applied a fix that I think should work.

  23 Feb 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
  files/flasm-1.62-makefile.patch:
  Hopefully fix a parallel make issue, bug #275272 by Niall Daley
  <bugs.gentoo.org@evilitdirector.com>

If it doesn't work for you, please reopen the bug (please make sure you got the updated patch, see your /usr/portage/app-misc/flasm/ChangeLog file; it should contain the above message).