This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Gcj cross compile for sparc-linux
- From: Cedomir Segulja <cedomir dot segulja at gmail dot com>
- To: java at gcc dot gnu dot org
- Date: Sun, 15 Jun 2008 21:32:40 -0400
- Subject: 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.