public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/30591]  New: Cross build fails because native gcj needed to build ecjx
@ 2007-01-25 23:11 daney at gcc dot gnu dot org
  2007-01-25 23:12 ` [Bug java/30591] " daney at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-01-25 23:11 UTC (permalink / raw)
  To: java-prs

ecjx is a java program used as part of the gcj compilation process.  Because it
is written in java and runs on the host, it needs a host version of gcj to
build it.

Here is the error I am getting:

make[3]: *** [ecjx] Error 127
make[3]: Leaving directory
`/home/daney/gccsvn/mipsel-trunk/mipsel-linux/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/daney/gccsvn/mipsel-trunk/mipsel-linux/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/home/daney/gccsvn/mipsel-trunk'
make: *** [all] Error 2

There seem to be two ways to fix this:

1) In a cross build, build a complete gcc/g++/gcj in build-i686-pc-linux-gnu
along with fixincldes and libiberty.

2) Have configure check for a good version of gcj that is already installed and
use that


-- 
           Summary: Cross build fails because native gcj needed to build
                    ecjx
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: daney at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: mipsel-linux-gnu


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


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

* [Bug java/30591] Cross build fails because native gcj needed to build ecjx
  2007-01-25 23:11 [Bug java/30591] New: Cross build fails because native gcj needed to build ecjx daney at gcc dot gnu dot org
@ 2007-01-25 23:12 ` daney at gcc dot gnu dot org
  2007-01-26  2:23 ` tromey at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-01-25 23:12 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from daney at gcc dot gnu dot org  2007-01-25 23:12 -------
This is actually contains the error from the build output this time:


i686-pc-linux-gnu-gcj -o ecjx -findirect-dispatch
--main=org.eclipse.jdt.internal.compiler.batch.GCCMain
../../../trunk/libjava/.././libjava/../ecj.jar   
make[3]: i686-pc-linux-gnu-gcj: Command not found
make[3]: *** [ecjx] Error 127
make[3]: Leaving directory
`/home/daney/gccsvn/mipsel-trunk/mipsel-linux/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/daney/gccsvn/mipsel-trunk/mipsel-linux/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/home/daney/gccsvn/mipsel-trunk'
make: *** [all] Error 2


-- 


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


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

* [Bug java/30591] Cross build fails because native gcj needed to build ecjx
  2007-01-25 23:11 [Bug java/30591] New: Cross build fails because native gcj needed to build ecjx daney at gcc dot gnu dot org
  2007-01-25 23:12 ` [Bug java/30591] " daney at gcc dot gnu dot org
@ 2007-01-26  2:23 ` tromey at gcc dot gnu dot org
  2007-04-25  0:12 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-26  2:23 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2007-01-26 02:23 -------
FWIW I don't think we want to fail outright if no suitable gcj is found.
The whole business with compiling and installing ecj.jar is a convenience,
not a strict necessity.  The user can always make his own ecj1 "somehow"
(e.g, I use a shell script).

So one idea would be to look for a gcj for the build machine, and if not
found, disable compilation of ecjx.

What do you think?


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-01-26 02:23:25
               date|                            |


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


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

* [Bug java/30591] Cross build fails because native gcj needed to build ecjx
  2007-01-25 23:11 [Bug java/30591] New: Cross build fails because native gcj needed to build ecjx daney at gcc dot gnu dot org
  2007-01-25 23:12 ` [Bug java/30591] " daney at gcc dot gnu dot org
  2007-01-26  2:23 ` tromey at gcc dot gnu dot org
@ 2007-04-25  0:12 ` tromey at gcc dot gnu dot org
  2007-04-25  0:16 ` ddaney at avtrex dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-04-25  0:12 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from tromey at gcc dot gnu dot org  2007-04-25 01:12 -------
Is this still a problem?
I thought it was ironed out a while ago.


-- 


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


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

* [Bug java/30591] Cross build fails because native gcj needed to build ecjx
  2007-01-25 23:11 [Bug java/30591] New: Cross build fails because native gcj needed to build ecjx daney at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-04-25  0:12 ` tromey at gcc dot gnu dot org
@ 2007-04-25  0:16 ` ddaney at avtrex dot com
  2007-04-25  6:17 ` mtrudel at gmx dot ch
  2007-05-16 20:10 ` daney at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ddaney at avtrex dot com @ 2007-04-25  0:16 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from ddaney at avtrex dot com  2007-04-25 01:16 -------
Subject: Re:  Cross build fails because native gcj needed
 to build ecjx

tromey at gcc dot gnu dot org wrote:
> ------- Comment #3 from tromey at gcc dot gnu dot org  2007-04-25 01:12 -------
> Is this still a problem?
> I thought it was ironed out a while ago.
> 
> 
I have not tested it recently.  I will try to test again.


-- 


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


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

* [Bug java/30591] Cross build fails because native gcj needed to build ecjx
  2007-01-25 23:11 [Bug java/30591] New: Cross build fails because native gcj needed to build ecjx daney at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-04-25  0:16 ` ddaney at avtrex dot com
@ 2007-04-25  6:17 ` mtrudel at gmx dot ch
  2007-05-16 20:10 ` daney at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: mtrudel at gmx dot ch @ 2007-04-25  6:17 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from mtrudel at gmx dot ch  2007-04-25 07:17 -------
You write "it needs a host version of gcj",
your host is "i686-pc-linux-gnu" and
configure looks for "i686-pc-linux-gnu-gcj"?

Seems correct to me? What gcj should be searched for? The only problem I'm
currently aware of is that the compilation of ecj.jar uses
"-findirect-dispatch". This fails for static compilations since
indirect-dispatch doesn't work anymore with such compilations since some bc abi
(or whatever) changes. It can easily be fixed by modifying libgcj.a.spec.


-- 


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


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

* [Bug java/30591] Cross build fails because native gcj needed to build ecjx
  2007-01-25 23:11 [Bug java/30591] New: Cross build fails because native gcj needed to build ecjx daney at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-04-25  6:17 ` mtrudel at gmx dot ch
@ 2007-05-16 20:10 ` daney at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: daney at gcc dot gnu dot org @ 2007-05-16 20:10 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from daney at gcc dot gnu dot org  2007-05-16 21:10 -------
Marking as FIXED as it now works for me *if* I use a current native GCC to
build the cross compiler.

I am prepering a documentation patch that explains my interpretation of the
requirements.


-- 

daney at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

end of thread, other threads:[~2007-05-16 20:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-25 23:11 [Bug java/30591] New: Cross build fails because native gcj needed to build ecjx daney at gcc dot gnu dot org
2007-01-25 23:12 ` [Bug java/30591] " daney at gcc dot gnu dot org
2007-01-26  2:23 ` tromey at gcc dot gnu dot org
2007-04-25  0:12 ` tromey at gcc dot gnu dot org
2007-04-25  0:16 ` ddaney at avtrex dot com
2007-04-25  6:17 ` mtrudel at gmx dot ch
2007-05-16 20:10 ` daney 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).