Ubuntu cross-compilation: error: two or more data types in declaration specifiers

Antonis Christofides anthony at itia.ntua.gr
Thu Mar 3 12:08:14 EET 2011


Προσπαθώ σε ένα i386 Ubuntu 10.04 να compile ένα kernel για powerpc.
Ακολουθώ αυτές τις οδηγίες: http://wiki.debian.org/BuildingCrossCompilers

Όταν προσπαθώ να build το binutils με το εξής:
fakeroot debian/rules binary-cross

τότε παίρνω το εξής αποτέλεσμα:

[snip]
make[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../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat 
-Wstrict-prototypes -pedantic -fpic ../../libiberty/regex.c -o 
pic/regex.o; \
else true; fi
In file included from /usr/include/stdlib.h:320,
from ../../libiberty/regex.c:128:
/usr/include/sys/types.h:100: error: two or more data types in 
declaration specifiers
make[3]: *** [regex.o] Error 1
[snip]


More information about the Linux-greek-users mailing list