This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
[Mac OS ][gcc-4.1.0] install and unable to compile commons-collections-3.2.jar
- From: Une Bévue <yt dot dev at free dot fr>
- To: java at gcc dot gnu dot org
- Date: Mon, 26 Mar 2007 09:02:33 +0200
- Subject: [Mac OS ][gcc-4.1.0] install and unable to compile commons-collections-3.2.jar
Hey all,
i"ve installed first :
cctools-590.36
then :
gcc-4.1.0
at "make" step make hange up after :
echo timestamp > lists/gnu-CORBA-Interceptor.stamp
/Users/yt/Desktop/gcc-4.1.0/host-powerpc-apple-darwin8.9.0/gcc/gcj -B/
Users/yt/Desktop/gcc-4.1.0/powerpc-apple-darwin8.9.0/ppc64/libjava/ -
B/Users/yt/Desktop/gcc-4.1.0/host-powerpc-apple-darwin8.9.0/gcc/ -Wno-
deprecated --encoding=UTF-8 --bootclasspath '' --classpath ..:/Users/
yt/Desktop/gcc-4.1.0/libjava:/Users/yt/Desktop/gcc-4.1.0/powerpc-
apple-darwin8.9.0/ppc64/libjava:../../../../.././libjava/
classpath:../../../../.././libjava/classpath/external/
w3c_dom:../../../../.././libjava/classpath/external/sax:.: -C -d . -
MD -MF lists/gnu-CORBA-NamingService.deps -MT lists/gnu-CORBA-
NamingService.stamp -MP @lists/gnu-CORBA-NamingService.list
after that i've aborted make and redo make with success and make
install afterwards.
I'm following some advices found in :
<http://www.linux-mag.com/id/1004/>
Going Native
Friday, March 15th, 2002By Glenn McAllister
may be a bit oupdated (?).
after verifying HelloWorld.java to native is OK i wanted to build a
lib from a jar file :
commons-collections-3.2.jar
whith the command :
gcj -shared -Wall -o libccjava.so commons-collections-3.2.jar
ending in :
gcj: unrecognized option '-shared'
symbol _fabsf used from dynamic library /usr/lib/libm.dylib(fabs.o)
not from earlier dynamic library /usr/local/lib/libgcj.7.dylib
(sf_fabs.o)
symbol _fabs used from dynamic library /usr/lib/libm.dylib(fabs.o)
not from earlier dynamic library /usr/local/lib/libgcj.7.dylib(s_fabs.o)
/usr/bin/ld: warning multiple definitions of symbol _scalbn
/usr/local/lib/gcc/powerpc-apple-darwin8.9.0/4.1.0/../../../
libgcj.dylib(s_scalbn.o) definition of _scalbn
/usr/lib/libm.dylib(scalb.o) definition of _scalbn
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding
may result in errors or different symbols being used
/usr/bin/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
then first the option '-shared' is unrecognized and second this build
failed.
what's the correct way to build this jar as a lib ?
best,
Yvon