Go Down

Topic: Cmdline build error: "read in flex scanner failed" (Read 1 time) previous topic - next topic


Hello all,

I'm trying to build the standard LED blink example, using the command line, and I'm getting stuck building the .elf from the .o file.  The gcc command the makefile produces (with successful references to where I've put the 0013-2's .h and .o files) is this:

Code: [Select]
avr-gcc -mmcu=atmega168 -I. -gstabs -DF_CPU=16000000 -T/usr/lib/binutils/avr/2.19.1/ldscripts -I/usr/local/include/arduino -Os -Wall -Wstrict-prototypes -std=gnu99  /usr/local/lib/arduino/pins_arduino.o /usr/local/lib/arduino/wiring.o /usr/local/lib/arduino/WInterrupts.o led.o /usr/local/lib/arduino/HardwareSerial.o  --output led.elf
And the output is simply this:

Code: [Select]
/usr/libexec/gcc/avr/ld: read in flex scanner failed
My tools are these (forgive me if I've omitted any):
  • Gentoo linux, kernel 2.6.27-r8
  • arduino 0013-2
  • avr-gcc 4.3.3
  • avr-libc 1.6.4
  • flex 2.5.35
  • gmp 4.2.4
  • mpfr 2.3.2
  • avr-binutils 2.19.1
  • uisp 20050207-r1
I've searched this forum and webwide with no solution so far.  Apparently flex is failing to read a file, but I haven't yet been able to determine which one.

Any thoughts or help would be appreciated!

Go Up