This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

can't build armbe-linux. Need big-endian arm compiler


Hello, 
I need an big endian version of the compiler.  I 
know I can use the big endian flag at compile time,
but then I have errors linking to libgcc at link time.

How should I build a big endian compiler for arm?

So here is what I am doing:

export TARGET=armbe-linux
export PREFIX=/home/tools
export PATH=$PATH:${PREFIX}/bin

../gcc-4.1.1/configure --target=$TARGET
--prefix=$PREFIX --enable-interwork --enable-mutlilib
--enable-languages="c,c++" --with-newlib
--without-headers


make all-gcc

This is what I get:

. -I. -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/.
-I../../gcc-4.1.1/gcc/../include
-I../../gcc-4.1.1/gcc/../libcpp/include  
-DL_gcov_one_value_profiler -c
../../gcc-4.1.1/gcc/libgcov.c -o
libgcc/./_gcov_one_value_profiler.o
rm -f ./libgcov.a
armbe-linux-ar  rc ./libgcov.a libgcc/./_gcov.o
libgcc/./_gcov_merge_add.o
libgcc/./_gcov_merge_single.o
libgcc/./_gcov_merge_delta.o libgcc/./_gcov_fork.o
libgcc/./_gcov_execl.o libgcc/./_gcov_execlp.o
libgcc/./_gcov_execle.o libgcc/./_gcov_execv.o
libgcc/./_gcov_execvp.o libgcc/./_gcov_execve.o
libgcc/./_gcov_interval_profiler.o
libgcc/./_gcov_pow2_profiler.o
libgcc/./_gcov_one_value_profiler.o
armbe-linux-ranlib ./libgcov.a
/home/mike/arm/build_gcc2/./gcc/xgcc
-B/home/mike/arm/build_gcc2/./gcc/
-B/home/tools/armbe-linux/bin/
-B/home/tools/armbe-linux/lib/ -isystem
/home/tools/armbe-linux/include -isystem
/home/tools/armbe-linux/sys-include -O2  -O2 -g -O2 
-DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include 
-fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-I. -I. -I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/.
-I../../gcc-4.1.1/gcc/../include
-I../../gcc-4.1.1/gcc/../libcpp/include  -fexceptions
-fvisibility=hidden -DHIDE_EXPORTS -c
../../gcc-4.1.1/gcc/unwind-dw2.c -o
libgcc/./unwind-dw2.o
In file included from ./gthr-default.h:1,
                 from ../../gcc-4.1.1/gcc/gthr.h:114,
                 from
../../gcc-4.1.1/gcc/unwind-dw2.c:42:
../../gcc-4.1.1/gcc/gthr-posix.h:43:21: error:
pthread.h: No such file or directory
../../gcc-4.1.1/gcc/gthr-posix.h:44:20: error:
unistd.h: No such file or directory
In file included from ./gthr-default.h:1,
                 from ../../gcc-4.1.1/gcc/gthr.h:114,
                 from
../../gcc-4.1.1/gcc/unwind-dw2.c:42:
../../gcc-4.1.1/gcc/gthr-posix.h:46: error: expected
?=?, ?,?, ?;?, ?asm? or ?__attribute__? before
?__gthread_key_t?
../../gcc-4.1.1/gcc/gthr-posix.h:47: error: expected
?=?, ?,?, ?;?, ?asm? or ?__attribute__? before
?__gthread_once_t?
../../gcc-4.1.1/gcc/gthr-posix.h:48: error: expected
?=?, ?,?, ?;?, ?asm? or ?__attribute__? before
?__gthread_mutex_t?
../../gcc-4.1.1/gcc/gthr-posix.h:49: error: expected
?=?, ?,?, ?;?, ?asm? or ?__attribute__? before
?__gthread_recursive_mutex_t?
../../gcc-4.1.1/gcc/gthr-posix.h:88: error:
?pthread_once? undeclared here (not in a function)
../../gcc-4.1.1/gcc/gthr-posix.h:88: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_once?
../../gcc-4.1.1/gcc/gthr-posix.h:89: error:
?pthread_getspecific? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:89: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_getspecific?
../../gcc-4.1.1/gcc/gthr-posix.h:90: error:
?pthread_setspecific? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:90: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_setspecific?
../../gcc-4.1.1/gcc/gthr-posix.h:91: error:
?pthread_create? undeclared here (not in a function)
../../gcc-4.1.1/gcc/gthr-posix.h:91: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_create?
../../gcc-4.1.1/gcc/gthr-posix.h:92: error:
?pthread_cancel? undeclared here (not in a function)
../../gcc-4.1.1/gcc/gthr-posix.h:92: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_cancel?
../../gcc-4.1.1/gcc/gthr-posix.h:93: error:
?pthread_mutex_lock? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:93: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_mutex_lock?
../../gcc-4.1.1/gcc/gthr-posix.h:94: error:
?pthread_mutex_trylock? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:94: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_mutex_trylock?
../../gcc-4.1.1/gcc/gthr-posix.h:95: error:
?pthread_mutex_unlock? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:95: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_mutex_unlock?
../../gcc-4.1.1/gcc/gthr-posix.h:96: error:
?pthread_mutex_init? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:96: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_mutex_init?
../../gcc-4.1.1/gcc/gthr-posix.h:99: error:
?pthread_key_create? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:99: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_key_create?
../../gcc-4.1.1/gcc/gthr-posix.h:100: error:
?pthread_key_delete? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:100: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_key_delete?
../../gcc-4.1.1/gcc/gthr-posix.h:101: error:
?pthread_mutexattr_init? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:101: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_mutexattr_init?
../../gcc-4.1.1/gcc/gthr-posix.h:102: error:
?pthread_mutexattr_settype? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:102: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_mutexattr_settype?
../../gcc-4.1.1/gcc/gthr-posix.h:103: error:
?pthread_mutexattr_destroy? undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:103: warning: type
defaults to ?int? in declaration of
?__gthrw_pthread_mutexattr_destroy?
../../gcc-4.1.1/gcc/gthr-posix.h:513: error: expected
?)? before ?*? token
../../gcc-4.1.1/gcc/gthr-posix.h:522: error: expected
?)? before ?*? token
../../gcc-4.1.1/gcc/gthr-posix.h:528: error: expected
?)? before ?key?
../../gcc-4.1.1/gcc/gthr-posix.h:534: error: expected
?)? before ?key?
../../gcc-4.1.1/gcc/gthr-posix.h:540: error: expected
?)? before ?key?
../../gcc-4.1.1/gcc/gthr-posix.h:546: error: expected
?)? before ?*? token
../../gcc-4.1.1/gcc/gthr-posix.h:555: error: expected
?)? before ?*? token
../../gcc-4.1.1/gcc/gthr-posix.h:564: error: expected
?)? before ?*? token
../../gcc-4.1.1/gcc/gthr-posix.h:574: error: expected
?)? before ?*? token
../../gcc-4.1.1/gcc/gthr-posix.h:595: error: expected
?)? before ?*? token
../../gcc-4.1.1/gcc/gthr-posix.h:601: error: expected
?)? before ?*? token
../../gcc-4.1.1/gcc/gthr-posix.h:607: error: expected
?)? before ?*? token
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: Leaving directory
`/home/mike/arm/build_gcc2/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory
`/home/mike/arm/build_gcc2/gcc'
make: *** [all-gcc] Error 2
[mike@localhost build_gcc2]$ 

Thanks,
 Mike

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]