binutils make LDFLAGS error permission denied

John Hanagan jhan56 at
Mon Apr 26 08:44:25 PDT 2004

Hi, this is my first attempt at LFS and I hit a wall right away,
compiling binutils-2.14, command: make LDFLAGS="-all-static"
screen of error is below.  Any hints?
Book version 5.0
Host Mandrake 9.1
no book deviations (and I looked for omissions)
last part of error was arlex.l:Permission denied
all the directories and contents are owned by lfs and I even tried
with the whole world having write permission to everything in $LFS.

gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.14/binutils -I. -D_GNU_SOURCE -I. -I../../binutils-2.14/binutils -I../bfd -I../../binutils-2.14/binutils/../bfd -I../../binutils-2.14/binutils/../include -I../../binutils-2.14/binutils/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.14/binutils/arparse.c
/bin/sh ../../binutils-2.14/binutils/../ylwrap "" ../../binutils-2.14/binutils/arlex.l lex.yy.c arlex.c --
../../binutils-2.14/binutils/../ylwrap: line 86: /mnt/lfs/sources/binutils-build/binutils/../../binutils-2.14/binutils/arlex.l: Permission denied
make[3]: *** [arlex.c] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2

the above is the last section of my output when trying
make LDFLAGS="-all-static"

Join Excite! -
The most personalized portal on the Web!

More information about the lfs-support mailing list