Results 1 to 1 of 1
Hi
I'm trying to build a cross compiler toolchain to compile on my PC to Mac. I've hit an error on building binutils stage (first step). I was wondering if ...
- 10-15-2007 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 10
Troubles in building cross compiler (error @ binutils)
Hi
I'm trying to build a cross compiler toolchain to compile on my PC to Mac. I've hit an error on building binutils stage (first step). I was wondering if anyone can guess what the problem is.
Before I post the error log, I'll give a brief description of my process:
-My project folder is /common/Shared/Projects/XCompiler
-In this folder, I downloaded and unzipped binutils, gcc, gdb, uclibc
-I set $TARGET as powerpc-linux (shouldn't matter what the target OS is, since all kernels are POSIX right?)
-I set $PREFIX as /common/Shared/Projects/XCompiler/powerpc-linux
-I add that to $PATH
-made a new folder build-binutils and ran configure from inside that folder. Configure went smoothly
-ran make all inside that folder. hit the error
error log:
yea if anybody has any idea at all it'll be greatly appreciated. thx for ur time!Code:[saistain XCompiler]$ setenv TARGET powerpc-linux [saistain XCompiler]$ echo $TARGET powerpc-linux [saistain XCompiler]$ setenv PREFIX /common/Shared/Projects/XCompiler/$TARGET [saistain XCompiler]$ echo $PREFIX /common/Shared/Projects/XCompiler/powerpc-linux [saistain XCompiler]$ setenv PATH ${PATH}:$PREFIX/bin [saistain XCompiler]$ echo $PATH /usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/java/bin:/opt /vlsi/synopsys/ai_bin:/opt/vlsi/synopsys/linux/syn/bin:/opt/vlsi/synopsys/hspice /linux:/opt/vlsi/synopsys/bin:/common/Shared/Projects/XCompiler/powerpc-linux/bin [saistain XCompiler]$ mkdir build-binutils [saistain XCompiler]$ cd build-binutils/ [saistain build-binutils]$ ../binutils-2.9.1/configure --target=$TARGET --prefix=$PREFIX [saistain build-binutils]$ make all make[1]: Entering directory `/common/Shared/Projects/XCompiler/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 ../../binutils-2.9.1/libiberty/dummy.c 2>/dev/null make[1]: *** [dummy.o] Error 1 make[1]: Leaving directory `/common/Shared/Projects/XCompiler/build-binutils/libiberty' make: *** [all-libiberty] Error 2


Reply With Quote