public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/25021]  New: Can't compile ant 1.6.5 to machine code
@ 2005-11-24 16:46 bero at arklinux dot org
  2005-11-24 17:20 ` [Bug java/25021] " bero at arklinux dot org
  2005-11-29 18:31 ` tromey at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: bero at arklinux dot org @ 2005-11-24 16:46 UTC (permalink / raw)
  To: java-prs

Building ant 1.6.5 normally with gcj 4.0.2 works nicely; trying to compile the
resulting jar files into a binary fails:

After ant dist:
cd bin/lib
LINKTO="-L."
for i in *.jar; do
  [ "$i" = "ant-launcher.jar" ] && continue
  gcj -O2 -fPIC -fjni -findirect-dispatch -shared -Wl,-Bsymbolic -o
lib${i/.jar/.so} $i
  LINKTO="$LINKTO -l${i/.jar/}"
done
gcj -O2 -fjni -findirect-dispatch -o antbin
--main=org.apache.tools.ant.launcher.Launcher ant-launcher.jar $LINKTO

results in

/tmp/cc5M7IPD.o: In function `main':
ccy5f8qg.i:(.text+0x20): undefined reference to
`org::apache::tools::ant::launcher::Launcher::class$'
collect2: ld returned 1 exit status

ant-launcher.jar contains the org.apache.tools.ant.launcher.Launcher class as
expected, and can be run perfectly through gij.


-- 
           Summary: Can't compile ant 1.6.5 to machine code
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bero at arklinux dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug java/25021] Can't compile ant 1.6.5 to machine code
  2005-11-24 16:46 [Bug java/25021] New: Can't compile ant 1.6.5 to machine code bero at arklinux dot org
@ 2005-11-24 17:20 ` bero at arklinux dot org
  2005-11-29 18:31 ` tromey at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: bero at arklinux dot org @ 2005-11-24 17:20 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from bero at arklinux dot org  2005-11-24 17:20 -------
Verified still broken with gcc 4.0.3 SVN 107424


-- 

bero at arklinux dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.0.2 4.0.3
            Version|4.0.2                       |4.0.3


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug java/25021] Can't compile ant 1.6.5 to machine code
  2005-11-24 16:46 [Bug java/25021] New: Can't compile ant 1.6.5 to machine code bero at arklinux dot org
  2005-11-24 17:20 ` [Bug java/25021] " bero at arklinux dot org
@ 2005-11-29 18:31 ` tromey at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-11-29 18:31 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2005-11-29 18:31 -------
In the version of ant I have (1.6.2) the class is

org.apache.tools.ant.launch.Launcher
not
org.apache.tools.ant.launcher.Launcher

So I think this is just a typo in the --main argument.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-29 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-24 16:46 [Bug java/25021] New: Can't compile ant 1.6.5 to machine code bero at arklinux dot org
2005-11-24 17:20 ` [Bug java/25021] " bero at arklinux dot org
2005-11-29 18:31 ` tromey at gcc dot gnu dot 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).