public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/43839]  New: libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix
@ 2010-04-21 18:37 mrs at gcc dot gnu dot org
  2010-04-21 18:44 ` [Bug java/43839] " mrs at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: mrs at gcc dot gnu dot org @ 2010-04-21 18:37 UTC (permalink / raw)
  To: java-prs

libjava doesn't link libgcj with -liconv during build when
--with-libiconv-prefix=/opt/local is used, and no corresponding -L for the
-liconv is issued on the link line when running the libjava testsuite (jni.exp)
for the FAIL: PR16923 run testcase:

Executing on host: /Users/mrs/net/gcc-java/gcc/xgcc
-B/Users/mrs/net/gcc-java/gcc/
/Users/mrs/net/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.c  
-bind_at_load -multiply_defined suppress -I. -I..
-I/Users/mrs/net/gcc/libjava/testsuite/libjava.jni
-I/Users/mrs/net/gcc/libjava/testsuite/../include
-I/Users/mrs/net/gcc/libjava/testsuite/../classpath/include
-fdollars-in-identifiers
-L/Users/mrs/net/gcc-java/x86_64-apple-darwin10/./libjava/.libs -ljvm
-shared-libgcc -lgcj -liconv  -lm   -o PR16923    (timeout = 300)

The correct bit can be found in the Makefile:

$ grep LTLIBICO x86_64-apple-darwin10/libjava/Makefile 
LTLIBICONV = -L/opt/local/lib -liconv -R/opt/local/lib

The spec file appears it would work:
$ cat x86_64-apple-darwin10/libjava/libgcj.spec
[ ... ]
%rename lib liborig
*lib:  %{s-bc-abi:} -lgcj  -lm -L/opt/local/lib -liconv  -lpthread 
-allow_stack_execute \
 -ldl %(libgcc)  %(liborig)
[ ... ]

as well.

This was reported by Jack, in http://gcc.gnu.org/ml/java/2010-02/msg00003.html,
but seems unresolved.

xgcc (GCC) 4.5.0 20100324 (experimental) [trunk revision 157698]


-- 
           Summary: libjava incorrectly uses -liconv in testsuite, jni.exp
                    when using --with-libiconv-prefix
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mrs at gcc dot gnu dot org
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43839


^ permalink raw reply	[flat|nested] 15+ messages in thread
[parent not found: <bug-43839-8172@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2010-10-06 19:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-21 18:37 [Bug java/43839] New: libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix mrs at gcc dot gnu dot org
2010-04-21 18:44 ` [Bug java/43839] " mrs at gcc dot gnu dot org
2010-04-21 18:52 ` mrs at gcc dot gnu dot org
2010-04-21 19:00 ` mrs at gcc dot gnu dot org
2010-04-21 19:02 ` mrs at gcc dot gnu dot org
2010-04-21 19:23 ` mrs at gcc dot gnu dot org
2010-04-21 19:26 ` mrs at gcc dot gnu dot org
2010-04-21 23:33 ` howarth at nitro dot med dot uc dot edu
2010-04-22  2:00 ` howarth at nitro dot med dot uc dot edu
2010-04-22 22:07 ` howarth at nitro dot med dot uc dot edu
2010-05-03 22:38 ` mrs at gcc dot gnu dot org
2010-06-09 17:21 ` mrs at gcc dot gnu dot org
     [not found] <bug-43839-8172@http.gcc.gnu.org/bugzilla/>
2010-10-06 18:54 ` mrs at gcc dot gnu.org
2010-10-06 19:42 ` mrs at gcc dot gnu.org
2010-10-06 19:46 ` mrs at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).