This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


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

Gcj cross compile for sparc-linux


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.


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