bugAVR Downloader/UploaDEr - Bugs: bug #25804, configure script does not abort if...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #25804: configure script does not abort if flex/lex is missing

Submitted by:  Dan Ståhlberg <stahlberg>
Submitted on:  Mon 09 Mar 2009 09:28:49 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 3 - LowItem Group: None
Status: Need InfoPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: Dan Ståhlberg
Open/Closed: Open

Thu 02 Jul 2009 09:33:00 AM UTC, comment #1:

Alas, AC_PROG_LEX and AC_PROG_YACC do only check for the
possible alternatives (flex vs. lex, bison vs. byacc vs. yacc),
without any real option to bail out if none of them has been
found.

It's not really easy to extend that check without duplicating
much of the code of these macros. Ideally, this should be
filed as a feature request to project autoconf so these
macros would optionally allow for code to be run if none of
the tools had been found.

Would you be willing in filing such a feature request?

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Mon 09 Mar 2009 09:28:49 PM UTC, original submission:

On SUSE 11.1, logged in as root, using BASH-3.2.

Downloaded and extracted AVRDUDE-5.6.

The configure script reports that flex/lex is missing but does not abort. This is easy to miss.

checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... bison -y
checking for flex... no
checking for lex... no
checking for ranlib... ranlib
checking for tputs in -ltermcap... no
checking for tputs in -lncurses... yes
checking for readline in -lreadline... yes

Running make afterwards gives an error that is hard to figure out:

sed '/^#/ s|y\.tab\.c|config_gram.c|' y.tab.c >config_gram.ct && mv config_gram.ct config_gram.c
rm -f y.tab.c
if gcc -DHAVE_CONFIG_H -I. -I. -I. -DCONFIG_DIR=\"/usr/local/etc\" -Wall -g -O2 -MT libavrdude_a-config_gram.o -MD -MP -MF ".deps/libavrdude_a-config_gram.Tpo" -c -o libavrdude_a-config_gram.o `test -f 'config_gram.c' || echo './'`config_gram.c; \
then mv -f ".deps/libavrdude_a-config_gram.Tpo" ".deps/libavrdude_a-config_gram.Po"; else rm -f ".deps/libavrdude_a-config_gram.Tpo"; exit 1; fi
config_gram.y: In function ‘parse_cmdbits’:
config_gram.y:1373: warning: ‘brkt’ may be used uninitialized in this function
: lexer.l
sed '/^#/ s|\.c|lexer.c|' .c >lexer.c
sed: can't read .c: No such file or directory
make[2]: ** [lexer.c] Error 2*
make[2]: Leaving directory `/root/avrdude-5.6'

Dan Ståhlberg <stahlberg>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by stahlberg (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 02 Jul 2009 09:33:00 AM UTCjoerg_wunschPriority5 - Normal=>3 - Low
      StatusNone=>Need Info
      Assigned toNone=>joerg_wunsch

    Back to the top


    Powered by Savane 3.1-cleanup