Cross-compiling error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Off on a tangent here so apologies for hitting the list up.  I thought
I might try to get Classpath + JamVM running on the iPhone ARM
platform, cross-compiled from Cygwin.  I'm far from a cross-compiling
expert, though, so any help would be appreciated.

I'm not trying anything too crazy with GTK/X for now (will consider it
a success if I can execute command line HelloWorld.java), I cribbed
this configure line from online instructions from someone who'd done
similar for their ipaq, though with an early version of Classpath:

$ ../configure --host=arm-apple-darwin --target=arm-apple-darwin \
--without-x --disable-gtk-peer --with-jni \
--disable-gconf-peer --disable-plugin --prefix=/usr/local/share

This ran seemingly fine (I am working with a clean 0.96.1 Classpath
download), though I suspect some of those options are no longer valid.
 "make" did pretty well also, but eventually hit the following error
while building libjavaio:

[...]
(cd .libs/libjavaio.lax/libclasspathnative.a && arm-apple-darwin-ar x
/c/java/classpath-0.96.1/build/native/jni/java-io/../../../native/jni/native-lib/.libs/lib
classpathnative.a)
arm-apple-darwin-gcc -dynamiclib  -o .libs/libjavaio.0.0.0.dylib
.libs/java_io_VMFile.o .libs/java_io_VMObjectInputStream.o
.libs/java_io_VMObjectStreamClass.o
 ../../../native/jni/classpath/.libs/jcl.o
.libs/libjavaio.lax/libclasspathnative.a/cpio.o
.libs/libjavaio.lax/libclasspathnative.a/cpnet.o .libs/libjavaio.lax
/libclasspathnative.a/cpproc.o    -install_name
/usr/local/share/lib/classpath/libjavaio.0.dylib
-compatibility_version 1 -current_version 1.0
/usr/local/bin/arm-apple-darwin-ld: Undefined symbols:
___eprintf
collect2: ld returned 1 exit status
make[3]: *** [libjavaio.la] Error 1
make[3]: Leaving directory `/c/java/classpath-0.96.1/build/native/jni/java-io'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/java/classpath-0.96.1/build/native/jni'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/java/classpath-0.96.1/build/native'
make: *** [all-recursive] Error 1

It's the ___eprintf that seems to have thrown it.  Has anyone seen
something similar?  Did my ./configure miss a symbol?

Thanks in advance,

Wes


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux