public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
       [not found] <bug-40868-8172@http.gcc.gnu.org/bugzilla/>
@ 2010-09-27 21:10 ` LpSolit at netscape dot net
  2010-09-27 21:58 ` andreas.frisch@multimedia-labs.de
  2010-09-27 22:13 ` dmitrij.ledkov at ubuntu dot com
  2 siblings, 0 replies; 14+ messages in thread
From: LpSolit at netscape dot net @ 2010-09-27 21:10 UTC (permalink / raw)
  To: java-prs

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

Fraxinas <andreas.frisch@multimedia-labs.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andreas.frisch@multimedia-l
                   |                            |abs.de

--- Comment #12 from Fraxinas <andreas.frisch@multimedia-labs.de> 2010-09-23 22:36:05 UTC ---
Hi Ralf,
i tried destilling your rev 163580 patches into one accumulated backport to
gcc-4.4.4. in our openembedded cross development toolchain. 
http://pastebin.com/pU3zF6MP

the patch actually does apply correctly, but during compile time, fails in the
libjava directory:
...
libtool: link: ( cd ".libs" && rm -f "libgcj_bc.la" && ln -s "../libgcj_bc.la"
"libgcj_bc.la" )
/bin/bash: GCC_FOR_ECJX@: command not found

turns out that the generated Makefile has the line GCC_FOR_ECJX =
@GCC_FOR_ECJX@ in it, so the variable wasn't substituted correctly during
configure, even though config.log says GCC_FOR_ECJX='x86_64-linux-gcc'

i probably need to backport other parts to be able to apply this patch
correctly on gcc release 4.4.4. but unfortunately the revision log
http://gcc.gnu.org/viewcvs/trunk/libjava/configure.ac?view=log&pathrev=163580
doesn't have information about the releases

is there an easy way to find out what else i need?

greetings,
fraxinas

--- Comment #13 from Andrew Haley <aph at redhat dot com> 2010-09-24 07:54:17 UTC ---
On 23/09/10 23:36, andreas.frisch@multimedia-labs.de wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40868
> 
> Fraxinas <andreas.frisch@multimedia-labs.de> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |andreas.frisch@multimedia-l
>                    |                            |abs.de
> 
> --- Comment #12 from Fraxinas <andreas.frisch@multimedia-labs.de> 2010-09-23 22:36:05 UTC ---
> Hi Ralf,
> i tried destilling your rev 163580 patches into one accumulated backport to
> gcc-4.4.4. in our openembedded cross development toolchain. 
> http://pastebin.com/pU3zF6MP
> 
> the patch actually does apply correctly, but during compile time, fails in the
> libjava directory:
> ...
> libtool: link: ( cd ".libs" && rm -f "libgcj_bc.la" && ln -s "../libgcj_bc.la"
> "libgcj_bc.la" )
> /bin/bash: GCC_FOR_ECJX@: command not found
> 
> turns out that the generated Makefile has the line GCC_FOR_ECJX =
> @GCC_FOR_ECJX@ in it, so the variable wasn't substituted correctly during
> configure, even though config.log says GCC_FOR_ECJX='x86_64-linux-gcc'
> 
> i probably need to backport other parts to be able to apply this patch
> correctly on gcc release 4.4.4. but unfortunately the revision log
> http://gcc.gnu.org/viewcvs/trunk/libjava/configure.ac?view=log&pathrev=163580
> doesn't have information about the releases
> 
> is there an easy way to find out what else i need?

It's hard to say.  I'd just import libgcj from gcc trunk.

Andrew.


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
       [not found] <bug-40868-8172@http.gcc.gnu.org/bugzilla/>
  2010-09-27 21:10 ` [Bug libgcj/40868] ecjx.cc should be compiled by host gcc LpSolit at netscape dot net
@ 2010-09-27 21:58 ` andreas.frisch@multimedia-labs.de
  2010-09-27 22:13 ` dmitrij.ledkov at ubuntu dot com
  2 siblings, 0 replies; 14+ messages in thread
From: andreas.frisch@multimedia-labs.de @ 2010-09-27 21:58 UTC (permalink / raw)
  To: java-prs

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

--- Comment #15 from Fraxinas <andreas.frisch@multimedia-labs.de> 2010-09-27 21:57:43 UTC ---
(In reply to comment #14)
> Created attachment 21898 [details]
> backport
> 
> This is the backport I use against gcc-4.4

dear dima, thanks for that patch but it's not sufficient. it even applies and
configures right but too many things had changed between release 4.4.4 and
revision 163580. so the resulting generated makefile is faulty and leaves the
variable @GCC_FOR_ECJX@ unsubtituted which causes compile to fail.
instead, i did it like Andrew proposed and simply imported the entire libjava
directory from svn head with which it works correctly.


now i am struggeling to cross compile statically linked mipsel java code with a
c++ .so linked to it...


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
       [not found] <bug-40868-8172@http.gcc.gnu.org/bugzilla/>
  2010-09-27 21:10 ` [Bug libgcj/40868] ecjx.cc should be compiled by host gcc LpSolit at netscape dot net
  2010-09-27 21:58 ` andreas.frisch@multimedia-labs.de
@ 2010-09-27 22:13 ` dmitrij.ledkov at ubuntu dot com
  2 siblings, 0 replies; 14+ messages in thread
From: dmitrij.ledkov at ubuntu dot com @ 2010-09-27 22:13 UTC (permalink / raw)
  To: java-prs

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

--- Comment #16 from Dima <dmitrij.ledkov at ubuntu dot com> 2010-09-27 22:13:18 UTC ---
(In reply to comment #15)
> (In reply to comment #14)
> > Created attachment 21898 [details] [details]
> > backport
> > 
> > This is the backport I use against gcc-4.4
> 
> dear dima, thanks for that patch but it's not sufficient. it even applies and
> configures right but too many things had changed between release 4.4.4 and
> revision 163580. so the resulting generated makefile is faulty and leaves the
> variable @GCC_FOR_ECJX@ unsubtituted which causes compile to fail.

This patch does apply against snapshot gcc-4.4 branch 26-09-2010. And does
build libgcj & java cross-compiler from i386|x86_64-gnu-linux to
i686-w64-mingw32.
After the patch is applied you do need to rerun correct autoreconf (2.59).

Buildlog -
http://launchpadlibrarian.net/56490712/buildlog_ubuntu-lucid-i386.w64-toolchain_1.0b%2B201009260029-0w2228g93841b22110p11~lucid1_FULLYBUILT.txt.gz


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
                   ` (9 preceding siblings ...)
  2010-08-27  4:27 ` rwild at gcc dot gnu dot org
@ 2010-08-27  4:30 ` rwild at gcc dot gnu dot org
  10 siblings, 0 replies; 14+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-08-27  4:30 UTC (permalink / raw)
  To: java-prs



------- Comment #11 from rwild at gcc dot gnu dot org  2010-08-27 04:30 -------
Fixed.


-- 

rwild at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
                   ` (8 preceding siblings ...)
  2010-07-10  8:57 ` bugtrack at roumenpetrov dot info
@ 2010-08-27  4:27 ` rwild at gcc dot gnu dot org
  2010-08-27  4:30 ` rwild at gcc dot gnu dot org
  10 siblings, 0 replies; 14+ messages in thread
From: rwild at gcc dot gnu dot org @ 2010-08-27  4:27 UTC (permalink / raw)
  To: java-prs



------- Comment #10 from rwild at gcc dot gnu dot org  2010-08-27 04:27 -------
Subject: Bug 40868

Author: rwild
Date: Fri Aug 27 04:27:40 2010
New Revision: 163580

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163580
Log:
Fix building ecjx in cross compile mode.

libjava/:
        PR libgcj/40868
        * configure.ac: Add GCC_FOR_ECJX variable.  Ensure
        GCJ_FOR_ECJX is always set.
        * Makefile.am [!NATIVE] (ecjx.$(OBJEXT)): New rule.
        * Makefile.in: Regenerate.
        * configure: Regenerate.
        * gcj/Makefile.in: Regenerate.
        * include/Makefile.in: Regenerate.
        * testsuite/Makefile.in: Regenerate.

Modified:
    trunk/libjava/ChangeLog
    trunk/libjava/Makefile.am
    trunk/libjava/Makefile.in
    trunk/libjava/configure
    trunk/libjava/configure.ac
    trunk/libjava/gcj/Makefile.in
    trunk/libjava/include/Makefile.in
    trunk/libjava/testsuite/Makefile.in


-- 


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
                   ` (7 preceding siblings ...)
  2010-07-10  8:56 ` bugtrack at roumenpetrov dot info
@ 2010-07-10  8:57 ` bugtrack at roumenpetrov dot info
  2010-08-27  4:27 ` rwild at gcc dot gnu dot org
  2010-08-27  4:30 ` rwild at gcc dot gnu dot org
  10 siblings, 0 replies; 14+ messages in thread
From: bugtrack at roumenpetrov dot info @ 2010-07-10  8:57 UTC (permalink / raw)
  To: java-prs



------- Comment #9 from bugtrack at roumenpetrov dot info  2010-07-10 08:57 -------
*** Bug 42311 has been marked as a duplicate of this bug. ***


-- 

bugtrack at roumenpetrov dot info changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugtrack at roumenpetrov dot
                   |                            |info


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
                   ` (6 preceding siblings ...)
  2009-12-10 15:25 ` ramana at gcc dot gnu dot org
@ 2010-07-10  8:56 ` bugtrack at roumenpetrov dot info
  2010-07-10  8:57 ` bugtrack at roumenpetrov dot info
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: bugtrack at roumenpetrov dot info @ 2010-07-10  8:56 UTC (permalink / raw)
  To: java-prs



------- Comment #8 from bugtrack at roumenpetrov dot info  2010-07-10 08:56 -------
Bug cannot be resolved with updates in libjava/Makefile. You could see my
comments in issue #40868 (clone of #30591)


-- 


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
                   ` (5 preceding siblings ...)
  2009-12-04 12:54 ` flameeyes at gentoo dot org
@ 2009-12-10 15:25 ` ramana at gcc dot gnu dot org
  2010-07-10  8:56 ` bugtrack at roumenpetrov dot info
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-12-10 15:25 UTC (permalink / raw)
  To: java-prs



------- Comment #7 from ramana at gcc dot gnu dot org  2009-12-10 15:25 -------
(In reply to comment #6)
> Created an attachment (id=19222)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19222&action=view) [edit]
> Proposed patch
> 
> With this patch applied, gcj cross-builds fine (not a canadian cross though).
> 

Please submit patches to gcc-patches@gcc.gnu.org 


-- 


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
                   ` (4 preceding siblings ...)
  2009-09-01 21:38 ` jakub at gcc dot gnu dot org
@ 2009-12-04 12:54 ` flameeyes at gentoo dot org
  2009-12-10 15:25 ` ramana at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: flameeyes at gentoo dot org @ 2009-12-04 12:54 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from flameeyes at gentoo dot org  2009-12-04 12:54 -------
Created an attachment (id=19222)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19222&action=view)
Proposed patch

With this patch applied, gcj cross-builds fine (not a canadian cross though).


-- 


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
                   ` (3 preceding siblings ...)
  2009-09-01 17:09 ` aph at gcc dot gnu dot org
@ 2009-09-01 21:38 ` jakub at gcc dot gnu dot org
  2009-12-04 12:54 ` flameeyes at gentoo dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-09-01 21:38 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from jakub at gcc dot gnu dot org  2009-09-01 21:38 -------
I believe libtool wasn't doing the right thing without any sources, but it has
been a while, so I don't remember the details.


-- 


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
                   ` (2 preceding siblings ...)
  2009-09-01 16:58 ` tromey at gcc dot gnu dot org
@ 2009-09-01 17:09 ` aph at gcc dot gnu dot org
  2009-09-01 21:38 ` jakub at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: aph at gcc dot gnu dot org @ 2009-09-01 17:09 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from aph at gcc dot gnu dot org  2009-09-01 17:09 -------
Hmm, I seem to have approved that patch.
I agree with you: I can't see why the specfile change requires ecjx.cc.


-- 


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
  2009-09-01 12:04 ` [Bug libgcj/40868] " ramana at gcc dot gnu dot org
  2009-09-01 14:06 ` aph at gcc dot gnu dot org
@ 2009-09-01 16:58 ` tromey at gcc dot gnu dot org
  2009-09-01 17:09 ` aph at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-09-01 16:58 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from tromey at gcc dot gnu dot org  2009-09-01 16:58 -------
I think it isn't correct to use "gcc" directly.
You probably have to introduce a new variable.

But, I don't see why we need ecjx.cc at all.
I think it must be to work around some other problem.
Maybe instead we could just fix that problem directly.

Apparently it came in here, though I don't see why:
http://gcc.gnu.org/ml/java-patches/2008-q4/msg00067.html
See also PR 38396


-- 


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
  2009-09-01 12:04 ` [Bug libgcj/40868] " ramana at gcc dot gnu dot org
@ 2009-09-01 14:06 ` aph at gcc dot gnu dot org
  2009-09-01 16:58 ` tromey at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: aph at gcc dot gnu dot org @ 2009-09-01 14:06 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from aph at gcc dot gnu dot org  2009-09-01 14:06 -------
Assigning to Tom tromey: this is his area.


-- 

aph at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
@ 2009-09-01 12:04 ` ramana at gcc dot gnu dot org
  2009-09-01 14:06 ` aph at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-09-01 12:04 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from ramana at gcc dot gnu dot org  2009-09-01 12:03 -------
This sounds correct to me . Adding one of the libjava maintainers to comment on
this. Patches should be submitted to the correct mailing list.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aph at redhat dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-09-01 12:03:59
               date|                            |


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


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

end of thread, other threads:[~2010-09-27 22:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-40868-8172@http.gcc.gnu.org/bugzilla/>
2010-09-27 21:10 ` [Bug libgcj/40868] ecjx.cc should be compiled by host gcc LpSolit at netscape dot net
2010-09-27 21:58 ` andreas.frisch@multimedia-labs.de
2010-09-27 22:13 ` dmitrij.ledkov at ubuntu dot com
2009-07-27  3:54 [Bug libgcj/40868] New: " dsdsdds at 126 dot com
2009-09-01 12:04 ` [Bug libgcj/40868] " ramana at gcc dot gnu dot org
2009-09-01 14:06 ` aph at gcc dot gnu dot org
2009-09-01 16:58 ` tromey at gcc dot gnu dot org
2009-09-01 17:09 ` aph at gcc dot gnu dot org
2009-09-01 21:38 ` jakub at gcc dot gnu dot org
2009-12-04 12:54 ` flameeyes at gentoo dot org
2009-12-10 15:25 ` ramana at gcc dot gnu dot org
2010-07-10  8:56 ` bugtrack at roumenpetrov dot info
2010-07-10  8:57 ` bugtrack at roumenpetrov dot info
2010-08-27  4:27 ` rwild at gcc dot gnu dot org
2010-08-27  4:30 ` rwild 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).