public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: compilation problems with ecj.jar
       [not found]                     ` <17837.1124.657240.110710@zebedee.pink>
@ 2007-01-17 22:09                       ` Marco Trudel
  2007-01-17 22:37                         ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Trudel @ 2007-01-17 22:09 UTC (permalink / raw)
  To: Andrew Haley, Java Patch List

Andrew,

Andrew Haley wrote:
> The *real* cause is that, for some reason, gcj isn't being passed the
> correct path to libgcj.jar in the host system.  Instead, this happens:
> 
> jc1 /mnt/zebedee/aph/gcc/trunk/libjava/.././libjava/../ecj.jar \
>  -fhash-synchronization \
>  -fno-use-divide-subroutine \
>  -fuse-boehm-gc \
>  -fnon-call-exceptions \
>  -fkeep-inline-functions \
>  -quiet \
>  -dumpbase ecj.jar \
>  -mtune=generic \
>  -auxbase ecj \
>  -g \
>  -O2 \
>  -version \
>  -ffloat-store \
>  -fomit-frame-pointer \
>  -findirect-dispatch \
>  -fbootclasspath=./:/tmp/prefix/share/java/libgcj-4.3.0.jar \
>  -o /tmp/ccD80X4c.s
> 
> Note that the bootclasspath at this point is wrong: there's no
> libgcj.jar in the install dir yet.  The first "./" item in the string
> is wrong because the .class files we need are no longer in the build
> dir: they're in the srcdir.
> 
> This oughta do it:
> 
> Index: Makefile.am
> ===================================================================
> --- Makefile.am	(revision 120638)
> +++ Makefile.am	(working copy)
> @@ -670,7 +670,7 @@
>  ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) -Djava.class.path=$(ECJ_JAR)
>  else !ENABLE_SHARED
>  ## Use ecj.jar at compile time.
> -ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR)
> +ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR) -fbootclasspath=$(BOOTCLASSPATH)
>  endif !ENABLE_SHARED
>  
>  ecjx_LDADD = -L$(here)/.libs libgcj.la
> 

Can you commit that patch? With it, a static compilation of GCJ for 
Linux works on a 32bit computer. Just want to make sure that it won't be 
forgotten.


thanks
Marco

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

* Re: compilation problems with ecj.jar
  2007-01-17 22:09                       ` compilation problems with ecj.jar Marco Trudel
@ 2007-01-17 22:37                         ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2007-01-17 22:37 UTC (permalink / raw)
  To: Marco Trudel; +Cc: Andrew Haley, Java Patch List

>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:

Marco> Can you commit that patch? With it, a static compilation of GCJ for
Marco> Linux works on a 32bit computer. Just want to make sure that it won't
Marco> be forgotten.

I went ahead and did this.

Tom

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

end of thread, other threads:[~2007-01-17 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <45AAA8B6.4020807@gmx.ch>
     [not found] ` <17835.26291.694008.802804@zebedee.pink>
     [not found]   ` <45AB6CF0.90806@gmx.ch>
     [not found]     ` <17835.35611.727663.716760@zebedee.pink>
     [not found]       ` <45ABC2FA.9010805@gmx.ch>
     [not found]         ` <17835.50791.966909.954408@zebedee.pink>
     [not found]           ` <45ABD766.8060401@gmx.ch>
     [not found]             ` <45AC9E0C.5040401@gmx.ch>
     [not found]               ` <20070116105338.GM19387@mail.konqueror.de>
     [not found]                 ` <45ACA3C7.4000502@gmx.ch>
     [not found]                   ` <17836.64134.465509.387942@zebedee.pink>
     [not found]                     ` <17837.1124.657240.110710@zebedee.pink>
2007-01-17 22:09                       ` compilation problems with ecj.jar Marco Trudel
2007-01-17 22:37                         ` Tom Tromey

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).