Building binutils Error
Posted: Mon Nov 08, 2010 5:05 pm
(I've just changed this topic subject as i realised that i needed to build a cross compiler before i tackled my other problem.)
While making the binutils following a cross compiler tutorial (http://wiki.osdev.org/GCC_Cross-Compiler), I recieve some errors, which are as follows
I followed the tutorial exactly and searched all around to find the answer, has anyone got any ideas?
While making the binutils following a cross compiler tutorial (http://wiki.osdev.org/GCC_Cross-Compiler), I recieve some errors, which are as follows
this was after typing the "make all "command.$ make
make[1]: Entering directory `/usr/src/build-binutils/libiberty'
if [ -n "" ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
echo "# !Automatically generated from ../binutils-2.9.1/libiberty/functions.def"
\
"- DO NOT EDIT!" >needed2.awk
grep '^DEFVAR(' < ../binutils-2.9.1/libiberty/functions.def \
| sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1\\
n#define NEED_\1\\n#endif\\n" }|' \
>>needed2.awk
grep '^DEFFUNC(' < ../binutils-2.9.1/libiberty/functions.def \
| sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1
\\n#define NEED_\1\\n#endif\\n" }|' \
>>needed2.awk
gcc -c -g -O2 -I. -I../binutils-2.9.1/libiberty/../include -DNEED_sys_siglist -D
NEED_basename -DNEED_strsignal ../binutils-2.9.1/libiberty/dummy.c 2>/dev/null
make[1]: *** [dummy.o] Error 3
make[1]: Leaving directory `/usr/src/build-binutils/libiberty'
make: *** [all-libiberty] Error 2
I followed the tutorial exactly and searched all around to find the answer, has anyone got any ideas?