[Q] can't build libgcj on Solaris 2.6
OYAMA Yoshihiro
oyama@is.s.u-tokyo.ac.jp
Thu Dec 2 08:28:00 GMT 1999
Hello.
I cannot build libgcj on Solaris 2.6/SPARC.
The error message I encountered is just the same as
what is found in one of the mails in the mailing-list archive.
The mail is sent on Wed, 9 Jun 1999 by Drury Tim, whose subject
is "RE: solaris, collect2 and ld." It is attached to this mail.
I looked into the archive for the answer to his question, but
I could not find one.
When I tried to build libgcj, I used "my own gcc" compiled with the
configure options --with-ld=/usr/local/binutils/ld and --with-gnu-ld.
Could anyone please tell me how to solve the problem?
Should I show further information of my environment and configuration?
Thank you.
> It's me again. <groans from the audience>
>
> Anthony suggested:
> > > The trick is to configure egcs using
> > > --with-ld=/usr/tim/binutils/bin/ld
>
> I replied:
> > I'm rebuilding egcs now. Should be done in a couple
> > more hours. zzzzzzzz. Then I'll rebuild libgcj and
> > see what results I get.
>
> The latest:
> Recompiled egcs with the above option. Then I started
> on the libgcj build. I got past the error with collect2
> wanting to use /usr/ccs/bin/ld and now have the following
> problem. Incidentally, this is the same problem I had
> when I temporarily replaced /usr/ccs/bin/ld with a symbolic
> link to the gnu linker.
>
> -tim
>
> How configure was called:
>
> aries:/codebase/tim/libgcj-obj> ../libgcj-snapshot-1999-06-02/configure
> --prefix=/backup/tim/egcs-1999.06.02 --enable-java-gc=boehm
> --enable-fast-character --enable-threads=posix
> --with-ld=/user/tim/binutils/bin/ld --with-gnu-as
>
> Then I called "gmake" and got this build error:
>
> c++ -shared prims.lo jni.lo exception.lo gnu/gcj/convert/BytesToUnicode.lo
> gnu/gcj/convert/Convert.lo gnu/gcj/convert/Input_8859_1.lo
> gnu/gcj/convert/Input_EUCJIS.lo gnu/gcj/convert/Input_JavaSrc.lo
> gnu/gcj/convert/Input_SJIS.lo gnu/gcj/convert/Input_UTF8.lo
> gnu/gcj/convert/Output_8859_1.lo gnu/gcj/convert/Output_EUCJIS.lo
> gnu/gcj/convert/Output_JavaSrc.lo gnu/gcj/convert/Output_SJIS.lo
> gnu/gcj/convert/Output_UTF8.lo gnu/gcj/convert/UnicodeToBytes.lo
> gnu/gcj/text/BaseBreakIterator.lo
>
> <whole bunch of .lo files removed>
>
> java/lang/e_rem_pio2.lo java/lang/s_fabs.lo java/lang/w_pow.lo
> java/lang/e_remainder.lo java/lang/s_floor.lo java/lang/w_remainder.lo
> java/lang/e_scalb.lo java/lang/s_rint.lo java/lang/w_sqrt.lo
> java/lang/e_sqrt.lo java/lang/s_scalbn.lo java/lang/sf_rint.lo
> java/lang/k_cos.lo java/lang/s_sin.lo boehm.lo posix-threads.lo -lc
> -Wl,-soname -Wl,libgcj.so.0 -o .libs/libgcj.so.0.0.0
> prims.lo: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> gmake[2]: *** [libgcj.la] Error 1
> gmake[2]: Leaving directory
> `/codebase/tim/libgcj-obj/sparc-sun-solaris2.5.1/libjava'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/codebase/tim/libgcj-obj/sparc-sun-solaris2.5.1/libjava'
> gmake: *** [all-target-libjava] Error 2
> aries:/codebase/tim/libgcj-obj>
---
Yoshihiro Oyama
Department of Information Science, Faculty of Science
University of Tokyo
7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033 Japan
TEL: +81-3-5841-4118 FAX: +81-3-5689-4365
E-mail: oyama@is.s.u-tokyo.ac.jp
Key fingerprint = 77 1F 23 91 9B BC 5D FD FF 93 D2 CF 08 17 61 BF
More information about the Java
mailing list