Gcj cross compile for sparc-linux

Cedomir Segulja cedomir.segulja@gmail.com
Mon Jun 16 01:33:00 GMT 2008


Hi,
I'm trying to build gcj 3.4.4 cross compiler for spar-linux platform. 
I'm using prexisted glibc (2.3.2) and binutils 2.16.1. Kernel headers 
are 2.6.21.1.
My configure command is:
 ../gcc-3.4.4/configure --target=sparc-linux --with-gnu-as --with-gnu-ld 
--verbose --prefix=... --enable-threads=posix 
--enable-languages=c,c++,java --enable-multilib --enable-shared 
--disable-nls --with-headers=... --with-libs=...
While building libjava I got 2 errors:
1) Not defined __NR_sigaction, which I've fixed finding the 
__NR_sigaction in asm/unistd.h and defining manually
2) htons, ntohs problem in java/net which I've "fixed" redefining htons 
i ntohs to "" (I wont be using net package)
When I try to build hello world java application with -static flag I 
get warning saying that "...requires at runtime the shared libraries 
from the glibc version used for linking". Dynamic linkage goes without 
warning.
Execution in both cases (static&dynamic) ends up with :
"pid X: failed 11".
Could some one help me how to debug this (where to start??)
This "pid X: failed 11" message --- is there some kernel header file 
defining this error, i.e. does 11 means something??
Thanks.
--Cedomir.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /