public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "mrs at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/43839]  New: libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix
Date: Wed, 21 Apr 2010 18:37:00 -0000	[thread overview]
Message-ID: <bug-43839-12293@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2010-04-21 18:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-21 18:37 mrs at gcc dot gnu dot org [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-43839-12293@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).