This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/25021] New: Can't compile ant 1.6.5 to machine code

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
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/}"
gcj -O2 -fjni -findirect-dispatch -o antbin ant-launcher.jar $LINKTO

results in

/tmp/cc5M7IPD.o: In function `main':
ccy5f8qg.i:(.text+0x20): undefined reference to
collect2: ld returned 1 exit status

ant-launcher.jar contains the 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]