public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/14614] New: Double host prefixed gcjh
@ 2004-03-17  4:04 corsepiu at faw dot uni-ulm dot de
  2004-04-07  3:10 ` [Bug bootstrap/14614] " pinskia at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: corsepiu at faw dot uni-ulm dot de @ 2004-03-17  4:04 UTC (permalink / raw)
  To: gcc-bugs

Cross building gcc-3.4-branch (20040316) installs gcjh twice, once host-prefixed
and once double host-prefixed:

Example:
configure --target=sparc-rtems4.7 --prefix=/opt/rtems-4.7 ...
...
make install

Results into:
/opt/rtems-4.7/bin/sparc-rtems4.7-gcjh
/opt/rtems-4.7/bin/sparc-rtems4.7-sparc-rtems4.7-gcjh

I guess there should only be one sparc-rtems4.7-gcjh.

-- 
           Summary: Double host prefixed gcjh
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: corsepiu at faw dot uni-ulm dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug bootstrap/14614] Double host prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
@ 2004-04-07  3:10 ` pinskia at gcc dot gnu dot org
  2004-10-11 18:37 ` pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-07  3:10 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|java                        |bootstrap


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


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

* [Bug bootstrap/14614] Double host prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
  2004-04-07  3:10 ` [Bug bootstrap/14614] " pinskia at gcc dot gnu dot org
@ 2004-10-11 18:37 ` pinskia at gcc dot gnu dot org
  2004-10-11 18:38 ` [Bug bootstrap/14614] Double target " pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-11 18:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-11 18:37 -------
*** Bug 17939 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ericw at evcohs dot com


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
  2004-04-07  3:10 ` [Bug bootstrap/14614] " pinskia at gcc dot gnu dot org
  2004-10-11 18:37 ` pinskia at gcc dot gnu dot org
@ 2004-10-11 18:38 ` pinskia at gcc dot gnu dot org
  2004-10-11 19:08 ` tromey at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-11 18:38 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Double host prefixed gcjh   |Double target prefixed gcjh


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (2 preceding siblings ...)
  2004-10-11 18:38 ` [Bug bootstrap/14614] Double target " pinskia at gcc dot gnu dot org
@ 2004-10-11 19:08 ` tromey at gcc dot gnu dot org
  2004-10-11 19:08 ` tromey at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-10-11 19:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-10-11 19:08 -------
Do you get a double prefix for gcj as well?
Can you tell me how the Makefile variable program_transform_name
is set in <build>/gcc/Makefile?

I suspect the problem is that GCJH_TARGET_INSTALL_NAME
adds a second prefix.

Also, based on comparing Make-lang.in, I would say that
this bug probably exists on the trunk as well.


-- 


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (3 preceding siblings ...)
  2004-10-11 19:08 ` tromey at gcc dot gnu dot org
@ 2004-10-11 19:08 ` tromey at gcc dot gnu dot org
  2004-10-11 19:14 ` ericw at evcohs dot com
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-10-11 19:08 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (4 preceding siblings ...)
  2004-10-11 19:08 ` tromey at gcc dot gnu dot org
@ 2004-10-11 19:14 ` ericw at evcohs dot com
  2004-10-11 21:20 ` tromey at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ericw at evcohs dot com @ 2004-10-11 19:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ericw at evcohs dot com  2004-10-11 19:14 -------
Subject: Re:  Double target prefixed gcjh

tromey at gcc dot gnu dot org wrote:

>------- Additional Comments From tromey at gcc dot gnu dot org  2004-10-11 19:08 -------
>Do you get a double prefix for gcj as well?
>  
>
For the avr target, no.

>Can you tell me how the Makefile variable program_transform_name
>is set in <build>/gcc/Makefile?
>
>  
>
For the avr target:

# Sed command to transform gcc to installed name.
program_transform_name := s,^,avr-,;



-- 


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (5 preceding siblings ...)
  2004-10-11 19:14 ` ericw at evcohs dot com
@ 2004-10-11 21:20 ` tromey at gcc dot gnu dot org
  2004-10-11 22:18 ` ericw at evcohs dot com
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-10-11 21:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-10-11 21:20 -------
I suppose you could try this.
I made it by looking at what other install rules are
doing in this area.  I'm not at all sure it is correct.

Index: Make-lang.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/Make-lang.in,v
retrieving revision 1.145
diff -u -r1.145 Make-lang.in
--- Make-lang.in 22 Sep 2004 11:21:21 -0000 1.145
+++ Make-lang.in 11 Oct 2004 21:17:52 -0000
@@ -207,7 +207,9 @@
 	    rm -f $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
 	    $(INSTALL_PROGRAM) $$tool$(exeext)
$(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
 	    chmod a+x $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
-	    if [ $$tool = gcjh ]; then \
+	    if [ -f $(GCJ)-cross$(exeext) ]; then \
+	      true; \
+	    elif [ $$tool = gcjh ]; then \
 	      rm -f $(DESTDIR)$(bindir)/$(GCJH_TARGET_INSTALL_NAME)$(exeext); \
 	      ( cd $(DESTDIR)$(bindir) && \
 	        $(LN) $$tool_transformed_name$(exeext)
$(GCJH_TARGET_INSTALL_NAME)$(exeext) ); \


-- 


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (6 preceding siblings ...)
  2004-10-11 21:20 ` tromey at gcc dot gnu dot org
@ 2004-10-11 22:18 ` ericw at evcohs dot com
  2004-10-13 12:03 ` giovannibajo at libero dot it
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ericw at evcohs dot com @ 2004-10-11 22:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ericw at evcohs dot com  2004-10-11 22:18 -------
Subject: Re:  Double target prefixed gcjh

tromey at gcc dot gnu dot org wrote:

>------- Additional Comments From tromey at gcc dot gnu dot org  2004-10-11 21:20 -------
>I suppose you could try this.
>I made it by looking at what other install rules are
>doing in this area.  I'm not at all sure it is correct.
>
>Index: Make-lang.in
>===================================================================
>RCS file: /cvs/gcc/gcc/gcc/java/Make-lang.in,v
>retrieving revision 1.145
>diff -u -r1.145 Make-lang.in
>--- Make-lang.in 22 Sep 2004 11:21:21 -0000 1.145
>+++ Make-lang.in 11 Oct 2004 21:17:52 -0000
>@@ -207,7 +207,9 @@
> 	    rm -f $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
> 	    $(INSTALL_PROGRAM) $$tool$(exeext)
>$(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
> 	    chmod a+x $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
>-	    if [ $$tool = gcjh ]; then \
>+	    if [ -f $(GCJ)-cross$(exeext) ]; then \
>+	      true; \
>+	    elif [ $$tool = gcjh ]; then \
> 	      rm -f $(DESTDIR)$(bindir)/$(GCJH_TARGET_INSTALL_NAME)$(exeext); \
> 	      ( cd $(DESTDIR)$(bindir) && \
> 	        $(LN) $$tool_transformed_name$(exeext)
>$(GCJH_TARGET_INSTALL_NAME)$(exeext) ); \
>
>
>  
>

Patch works for the avr target. Thanks!
Eric


-- 


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (7 preceding siblings ...)
  2004-10-11 22:18 ` ericw at evcohs dot com
@ 2004-10-13 12:03 ` giovannibajo at libero dot it
  2004-10-13 13:45 ` ericw at evcohs dot com
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: giovannibajo at libero dot it @ 2004-10-13 12:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-10-13 12:03 -------
Confirmed.

Eric, do you happen to know when this bug first appeared? Did you build other 
older compilers which did not have this problem?

Tom, are you going to submit this patch then?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |3.4.0 4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-13 12:03:03
               date|                            |


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (8 preceding siblings ...)
  2004-10-13 12:03 ` giovannibajo at libero dot it
@ 2004-10-13 13:45 ` ericw at evcohs dot com
  2004-10-13 14:41 ` ralf_corsepius at rtems dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ericw at evcohs dot com @ 2004-10-13 13:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ericw at evcohs dot com  2004-10-13 13:45 -------
Subject: Re:  Double target prefixed gcjh

On 13 Oct 2004 at 12:03, giovannibajo at libero dot it wrote:

> 
> ------- Additional Comments From giovannibajo at libero dot it  2004-10-13 12:03 -------
> Confirmed.
> 
> Eric, do you happen to know when this bug first appeared? Did you build other 
> older compilers which did not have this problem?
> 

Unfortunately no, I do not know when this bug first appeared. Only in the last week did I first try 
to build java for the avr target, and to my knowledge it's the first time anybody has tried it. You 
can see some messages about this on the java list. And, no, I did not build it with older 
compilers.

I can't speak for the original reporter of this bug though.

Eric


-- 


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (9 preceding siblings ...)
  2004-10-13 13:45 ` ericw at evcohs dot com
@ 2004-10-13 14:41 ` ralf_corsepius at rtems dot org
  2004-12-03 19:32 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ralf_corsepius at rtems dot org @ 2004-10-13 14:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ralf_corsepius at rtems dot org  2004-10-13 14:41 -------
(In reply to comment #7)

> > Eric, do you happen to know when this bug first appeared?
I noticed it for the first time shortly before submitting this PR (Opened:
2004-03-17; cf. above;).

I don't recall the corresponding gcc-release off hand but notes in my
build-scripts indicate this bug to have appeared before gcc-3.4.0.

As gcj doesn't build for most of my "usual targets" (embedded *rtems
cross-toolchiains) due to lack of the infrastructure it requires, I have
disabled building gcj since then and can't tell if this issue has re-appeared or
if had been persistent since then.

> I can't speak for the original reporter of this bug though.
I am the original reporter ;)

-- 


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (10 preceding siblings ...)
  2004-10-13 14:41 ` ralf_corsepius at rtems dot org
@ 2004-12-03 19:32 ` cvs-commit at gcc dot gnu dot org
  2004-12-03 19:33 ` tromey at gcc dot gnu dot org
  2004-12-03 19:39 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-03 19:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-12-03 19:32 -------
Subject: Bug 14614

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2004-12-03 19:32:39

Modified files:
	gcc/java       : ChangeLog Make-lang.in 

Log message:
	PR bootstrap/14614:
	* Make-lang.in (java.install-common): Only install transformed

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1514&r2=1.1515
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/Make-lang.in.diff?cvsroot=gcc&r1=1.149&r2=1.150



-- 


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (11 preceding siblings ...)
  2004-12-03 19:32 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-03 19:33 ` tromey at gcc dot gnu dot org
  2004-12-03 19:39 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-12-03 19:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-12-03 19:33 -------
Fix checked in


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


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


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

* [Bug bootstrap/14614] Double target prefixed gcjh
  2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
                   ` (12 preceding siblings ...)
  2004-12-03 19:33 ` tromey at gcc dot gnu dot org
@ 2004-12-03 19:39 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-03 19:39 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.4.0 4.0.0                 |3.4.0
      Known to work|                            |4.0.0
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2004-12-03 19:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-17  4:04 [Bug java/14614] New: Double host prefixed gcjh corsepiu at faw dot uni-ulm dot de
2004-04-07  3:10 ` [Bug bootstrap/14614] " pinskia at gcc dot gnu dot org
2004-10-11 18:37 ` pinskia at gcc dot gnu dot org
2004-10-11 18:38 ` [Bug bootstrap/14614] Double target " pinskia at gcc dot gnu dot org
2004-10-11 19:08 ` tromey at gcc dot gnu dot org
2004-10-11 19:08 ` tromey at gcc dot gnu dot org
2004-10-11 19:14 ` ericw at evcohs dot com
2004-10-11 21:20 ` tromey at gcc dot gnu dot org
2004-10-11 22:18 ` ericw at evcohs dot com
2004-10-13 12:03 ` giovannibajo at libero dot it
2004-10-13 13:45 ` ericw at evcohs dot com
2004-10-13 14:41 ` ralf_corsepius at rtems dot org
2004-12-03 19:32 ` cvs-commit at gcc dot gnu dot org
2004-12-03 19:33 ` tromey at gcc dot gnu dot org
2004-12-03 19:39 ` pinskia 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).