public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/40868]  New: ecjx.cc should be compiled by host gcc
@ 2009-07-27  3:54 dsdsdds at 126 dot com
  2009-09-01 12:04 ` [Bug libgcj/40868] " ramana at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: dsdsdds at 126 dot com @ 2009-07-27  3:54 UTC (permalink / raw)
  To: java-prs

gcc version: 4.4.1 with gcc-4.4.1-branch_update-1.patch
host system: Ubuntu 9.04 x86_64

configured by:
     ./configure --prefix=/usr --build=x86_64-linux-gnu \
        --host=x86_64-linux-gnu \
        --target=arm-none-linux-gnueabi --with-sysroot=$TOOLCHAIN_DIR \
        --with-gmp=$STATIC_LIB_DIR --with-mpfr=$STATIC_LIB_DIR \
        --disable-multilib --disable-nls --enable-shared \
        --enable-__cxa_atexit --enable-c99 --enable-long-long \
        --enable-threads=posix --enable-languages=c,c++,java \
        --with-float=soft --with-cpu=arm926ej-s \
        --enable-libgcj-bc --disable-sjlj-exceptions \
        --with-ecj-jar=/source/ecj.jar
compiled by:
     make AS_FOR_TARGET=arm-none-linux-gnueabi-as
LD_FOR_TARGET=arm-none-linux-gnueabi-ld

error message:
     architecture of input file `ecjx.o' is incompatible with i386:x86_64
output 

I solved this error message as follows:
First chdir to 'arm-none-linux-gnueabi/libjava',
then run 'gcc ecjx.cc -o ecjx.o'
then run 'make AS_FOR_TARGET=arm-none-linux-gnueabi-as
LD_FOR_TARGET=arm-none-linux-gnueabi-ld' and no more error happens, and the
toolchain works without problem.

This error is because ecjx.cc is compiled by arm-none-linux-gnueabi-gcc, not by
gcc. I think that libjava/Makefile.in should be changed, as 

diff -Narup gcc-4.4.1.origin/libjava/Makefile.in gcc-4.4.1/libjava/Makefile.in
--- gcc-4.4.1.origin/libjava/Makefile.in        2009-07-22 15:43:59.000000000
+0800
+++ gcc-4.4.1/libjava/Makefile.in       2009-07-27 08:40:50.702375251 +0800
@@ -9739,6 +9739,9 @@ distclean-compile:
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE)
$(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@  $(LTCOMPILE) -c -o $@ $<

+ecjx.o:
+       gcc -c -o $@ $<
+
 .cc.o:
 @am__fastdepCXX_TRUE@  depbase=`echo $@ | sed
's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \
 @am__fastdepCXX_TRUE@  if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c
-o $@ $<; \


-- 
           Summary: ecjx.cc should be compiled by host gcc
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dsdsdds at 126 dot com
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: arm-none-linux-gnueabi


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


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

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

* [Bug libgcj/40868] ecjx.cc should be compiled by host gcc
  2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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; 12+ 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] 12+ messages in thread

end of thread, other threads:[~2010-08-27  4:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-27  3:54 [Bug libgcj/40868] New: ecjx.cc should be compiled by host gcc 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).