[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-chat] avrdude build problem
From: |
Erik Christiansen |
Subject: |
[avr-chat] avrdude build problem |
Date: |
Tue, 2 Nov 2010 19:49:18 +1100 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
Due to my main machine being without a motherboard, I'm building
avrdude-5.10 on a ubuntu 8.04 box. (The avrdude package for ubuntu 8.04
is too old to support xmega)
Looking into this error:
address@hidden:/usr/local/src/avrdude-5.10$ make
make all-recursive
make[1]: Entering directory `/usr/local/src/avrdude-5.10'
make[2]: Entering directory `/usr/local/src/avrdude-5.10'
/bin/bash ./ylwrap config_gram.y y.tab.c config_gram.c y.tab.h
config_gram.h y.output config_gram.output -- yacc -d
updating config_gram.h
gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\"/usr/local/etc\" -Wall
-Wno-pointer-sign -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
mv -f .deps/libavrdude_a-config_gram.Tpo
.deps/libavrdude_a-config_gram.Po
/bin/bash ./ylwrap lexer.l .c lexer.c -- :
make[2]: *** [lexer.c] Error 1
make[2]: Leaving directory `/usr/local/src/avrdude-5.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/avrdude-5.10'
make: *** [all] Error 2
address@hidden:/usr/local/src/avrdude-5.10$
I tried running the Makefile line manually:
$ /bin/bash ./ylwrap lexer.l .c lexer.c --
./ylwrap: line 110: : command not found
Adding a diagnostic line to ylwrap:
case $# in
0) echo \>"$prog"\< "$input"
"$prog" "$input" ;;
I now have:
$ /bin/bash ./ylwrap lexer.l .c lexer.c --
>< /usr/local/src/avrdude-5.10/lexer.l
./ylwrap: line 111: : command not found
i.e. $prog evaluates to a null string.
That is already the case at line 93: prog="$1"
Ah, $(LEXCOMPILE) is what's missing, which means that all of:
$(LEX) $(LFLAGS) $(AM_LFLAGS)
are null. (Coulda seen that immediately, if I'd looked. Hmpf.)
So my question is: How should these Makefile lines populate those
variables?:
LEX = :
Oh, there are no Makefile lines defining LFLAGS or AM_LFLAGS.
So, maybe it's configure which dunnit? (But it ends with:
configure: exit 0
In config.log, the only lines containing "LEX" are:
LEX=':'
LEXLIB=''
LEX_OUTPUT_ROOT='
Should I just finish reconstructing my ubuntu 10.04 host, and try to
build avrdude there?
Erik
--
If at first you don't succeed, try again.
Then Quit. No use being a damn fool about it. - W.C. Fields
- [avr-chat] avrdude build problem,
Erik Christiansen <=