This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Errors : Cross compiling for Java


Hi, 
  I am trying to build a cross compiler for java to be used on ppc-750. My
host is a linux machine and the target is Arteysn-Katana 3750 board with IBM
750 FX processors running on MV Linux kernel 2.4 version. I am not sure if
the cross compiler I get would be useful for the target ? If yes then could
you help me resolve this error that I am getting ? If no is then is there a
way to build the java code into native code to be used on the target without
JVM( it takes away performance of the application )?

Here is the build output : 

I am using demo-ppc750.sh file with GCC_LANG set to c,c++,java.
------------

/home/eplguser/Mudit/crosstool-0.42/build/powerp
c-750-linux-gnu/gcc-4.1.0-glibc-2.3.5/gcc-4.1.0/libjava/prims.cc  -fPIC
-DPIC -o                                               .libs/prims.o
In file included from ./include/java-signal.h:17,
                 from
/home/eplguser/Mudit/crosstool-0.42/build/powerpc-750-linu
x-gnu/gcc-4.1.0-glibc-2.3.5/gcc-4.1.0/libjava/prims.cc:26:
/opt/crosstool/gcc-4.1.0-glibc-2.3.5/powerpc-750-linux-gnu/powerpc-750-linux
-gnu
/include/sys/syscall.h:32:27: error: bits/syscall.h: No such file or
directory
/home/eplguser/Mudit/crosstool-0.42/build/powerpc-750-linux-gnu/gcc-4.1.0-gl
ibc-
2.3.5/gcc-4.1.0/libjava/java/lang/Class.h: In member function
'java::lang::Class                                              *
java::lang::Class::getComponentType()':
/home/eplguser/Mudit/crosstool-0.42/build/powerpc-750-linux-gnu/gcc-4.1.0-gl
ibc-
2.3.5/gcc-4.1.0/libjava/java/lang/Class.h:354: warning: dereferencing
type-punne                                              d pointer will break
strict-aliasing rules
/home/eplguser/Mudit/crosstool-0.42/build/powerpc-750-linux-gnu/gcc-4.1.0-gl
ibc-
2.3.5/gcc-4.1.0/libjava/prims.cc: In function 'jint
_Jv_CreateJavaVM(JvVMInitArg
s*)':
/home/eplguser/Mudit/crosstool-0.42/build/powerpc-750-linux-gnu/gcc-4.1.0-gl
ibc-
2.3.5/gcc-4.1.0/libjava/prims.cc:1274: error: 'SYS_sigaction' was not
declared i                                              n this scope
make[5]: *** [prims.lo] Error 1
make[5]: Leaving directory
`/home/eplguser/Mudit/crosstool-0.42/build/powerpc-75
0-linux-gnu/gcc-4.1.0-glibc-2.3.5/build-gcc/powerpc-750-linux-gnu/nof/libjav
a'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/eplguser/Mudit/crosstool-0.42/build/powerpc-75
0-linux-gnu/gcc-4.1.0-glibc-2.3.5/build-gcc/powerpc-750-linux-gnu/nof/libjav
a'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory
`/home/eplguser/Mudit/crosstool-0.42/build/powerpc-75
0-linux-gnu/gcc-4.1.0-glibc-2.3.5/build-gcc/powerpc-750-linux-gnu/libjava'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory
`/home/eplguser/Mudit/crosstool-0.42/build/powerpc-75
0-linux-gnu/gcc-4.1.0-glibc-2.3.5/build-gcc/powerpc-750-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory
`/home/eplguser/Mudit/crosstool-0.42/build/powerpc-75
0-linux-gnu/gcc-4.1.0-glibc-2.3.5/build-gcc'
make: *** [all] Error 2

thanks
Mudit Goel
Lucent Technologies 


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