Re: Gcj cross compile for sparc-linux

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Cedomir Segulja wrote:
> 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".

After you've finished the build, run:

  make check-target-libjava

Then tell us what happens.

Andrew.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.