ubuntu - Errors when building the cross compiler on debian -


I want to compile the kernel for powerpc I try to do it on an x86_64 Ubuntu 10.04, and an i386 Debian , And I have the same problem. I follow the following instructions, and when I try to make binutils by giving the following command:

  fakeroot debian / binary-cross   

get me This result:

  [snip] [3]: Entering directory `/home/anthony/cross-toolchain/binutils-2.20.1/builddir-powerpc-linux-gnu/libiberty ' If [X "-fpic"! = X]; Then \ gcc -c -DHAVE_CONFIG_H -g -O2 -Wno-format-security -I-i./../ Liberty /../Included -W -Wall -Wwrite-string-WC ++ - Compete -Friendly- Prototype -Pindi-Fopic ../../libiberty/regex.c -o pic / regex o; \ real truth; Fi file included from /usr/include/stdlib.h:320, ../../libiberty/regex.c:128: /usr/include/sys/types.h:100: Error: Two or more data announcements Types in the specifiers [3]: *** [regex.o] Error 1 [snip]   

(This is because type-typing typing pid_t, which, however, defined # # If I detect this problem in types.h inside #undef pid_t, then I get a similar problem somewhere else with intptr_t and so on and so on.) < P>

if you do Nail the need to cross-compile, then you should be able to do the following:

  CROSS_COMPILE = & Lt; Gcc & gt; Before part of the command ARCH = powerpc make menuconfig ARCH = powerpc all # ... Others for modules, docs, etc.   

Make sure that you have a cross-compiler in your path if you have cross-compiler command ppc_74xx-gcc for your GCC, then you CROSS_COMPILE = Ppc_74xx -

, for more information on setting up the CROSS_COMPILE variable, take a look at this link

If you have a scratch If you are looking to build your cross-toolchain, check this site shows you how to cross-compile Linux Your own toolknow, kernel, user location, etc.

Comments