#86 ✓resolved
Peter Johnson

configure fails in Sarge

Reported by Peter Johnson | June 25th, 2011 @ 07:49 PM

Originally posted on Trac by grouch.edge (a t) gmail.com
Original Trac Ticket

  Description

yasm-0.5.0

Line 1926 of configure:

set bison --version | sed -e 's/^[A-Za-z() ]*//' -e 's/./ /'

Output of bison --version:

bison++ Version 1.21.9-1, adapted from GNU bison by  coetmeur@icdc.fr
Maintained by Magnus Ekdahl  magnus@debian.org>

Result of sed in line 1926:

++ Version 1.21.9-1, adapted from GNU bison by  coetmeur@icdc.fr  magnus@debian.org>

Yields error:

set: ++: invalid option

My work-around (I am not a coder):

set bison --version | sed -e 's/^[++A-Za-z() ]*//' -e 's/./ /'

System:

Debian GNU/Linux 'Sarge'.

yasm is packaged in 'Etch' (testing), so somebody has already worked this out:

 http://packages.debian.org/testing/devel/yasm

Trac Attachments

h3. Trac Comments
comment:1

              Changed 5 years ago by mu@tortall.net


I don't see anything in ftp.debian.org/debian/pool/main/y/yasm/yasm_0.5.0-1.diff.gz that indicates there were any workarounds necessary. Anyway the following works for me:

% svn up
Updated to revision 1673.
% CC=colorgcc ./autogen.sh

This runs the following utilities on my system:

aclocal (GNU automake) 1.9.6
autoheader (GNU Autoconf) 2.60a
automake (GNU automake) 1.9.6
autoconf (GNU Autoconf) 2.60a

For what it's worth, my bison and sed are:

bison (GNU Bison) 2.3
GNU sed version 4.1.5

And when I look at configure, my line 2414 looks a lot like what you show, followed a couple lines later by text mentioning that bison 1.25 or better is required.

Looks like your bison version 1.21 is insufficient, and I have no clue how you got that in place on a Debian Sarge system. The actual set code malfunctioning as it did for you could well be a bug in the auto* macro. Or it could be a really weird version of bison. Do you have something like cruft, cook, or maxdb-buildtools installed (based only on a search for bison in package contents)?

comment:2

              Changed 5 years ago by peter


(In [1675]) Fix #88: Allow only GNU Bison (not Bison++ or plain old yacc) for YACC, and clear YACC
if too low (

      comment:2

                  Changed 5 years ago by peter

      Status
        changed from new to closed
    
      Resolution
        set to fixed

(In [1675]) Fix #88: Allow only GNU Bison (not Bison++ or plain old yacc) for YACC, and clear YACC
if too low (

      Status
        changed from new to closed
    
      Resolution
        set to fixed

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages