Error in binutils when doing Cross-Pilot. lex: not found

Asked

Viewed 32 times

0

I am cross-piling for the i686-Elf architecture with a Debian 8 86_64 bit host I already uninstalled and installed flex but the error continues! I’ll leave the terminal output.

checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for bison... no
checking for byacc... no
checking for flex... lex
checking for yywrap in -ll... no
checking how to run the C preprocessor... (cached) gcc -E
checking lex output file root... ../../binutils-2.9/binutils/configure: 1701: ../../binutils-2.9/binutils/configure: lex: not found
configure: error: cannot find output from lex; giving up
Configure in /home/hikkarin/Documentos/GCC-4.9.0-CROSS/SRC/build-binutils/binutils failed, exiting.

I circled it with the remote:

linux32 .. /binutils-2.9/configure --target=$TARGET --prefix="$PREFIX" -with-sysroot --disable-nls --disable-werror

  • both install the 32bit binutils package

  • Already installed the flex? apt-get install flex

  • 1

    Check if flex is installed, and if lex is a symbolic link to flex.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.