public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/17222] New: libjava fails to build due to command line length during link
@ 2004-08-28 13:50 kcook at gcc dot gnu dot org
  2004-08-28 13:52 ` [Bug libgcj/17222] " kcook at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: kcook at gcc dot gnu dot org @ 2004-08-28 13:50 UTC (permalink / raw)
  To: java-prs

Bootstrap fails during libjava on some targets

This is apparently due to the extremely long command line of 73,379 characters
given to the linker.

Though it seems Automake should be able to handle this itself, I would think
this could be circumvented by splitting the link into a several convenience
libraries and then linking those together.

Build output below

-- 
           Summary: libjava fails to build due to command line length during
                    link
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kcook at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: powerpc-apple-darwin6.8
  GCC host triplet: powerpc-apple-darwin6.8
GCC target triplet: powerpc-apple-darwin6.8


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
@ 2004-08-28 13:52 ` kcook at gcc dot gnu dot org
  2004-08-28 17:14 ` pinskia at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: kcook at gcc dot gnu dot org @ 2004-08-28 13:52 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From kcook at gcc dot gnu dot org  2004-08-28 13:52 -------
Created an attachment (id=6998)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6998&action=view)
First line in attachment is the 73,000+ character linker command


-- 


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
  2004-08-28 13:52 ` [Bug libgcj/17222] " kcook at gcc dot gnu dot org
@ 2004-08-28 17:14 ` pinskia at gcc dot gnu dot org
  2004-08-30 18:20 ` andreast at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-28 17:14 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-28 17:14 -------
Actually I thought we are already doing this ...

-- 


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
  2004-08-28 13:52 ` [Bug libgcj/17222] " kcook at gcc dot gnu dot org
  2004-08-28 17:14 ` pinskia at gcc dot gnu dot org
@ 2004-08-30 18:20 ` andreast at gcc dot gnu dot org
  2004-08-30 18:37 ` mckinlay at redhat dot com
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: andreast at gcc dot gnu dot org @ 2004-08-30 18:20 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From andreast at gcc dot gnu dot org  2004-08-30 18:20 -------
Well, to be honest libjava on darwin < 7.0 does not make much sense. You can
only use a subset of the library for very limited functionality. The big part
missing is the shared library support. For example all the SWING/AWT part you
can't use since the libgcc is statically linked in for several libraries.

-- 


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-08-30 18:20 ` andreast at gcc dot gnu dot org
@ 2004-08-30 18:37 ` mckinlay at redhat dot com
  2004-08-30 19:15 ` andreast at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: mckinlay at redhat dot com @ 2004-08-30 18:37 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-08-30 18:37 -------
Andreas, can we document the "minimum Darwin 7.x" requirement somewhere -
perhaps install.texi? Perhaps we should also set up configure to only build
libjava by default on Darwin >= 7.0.

Bryce


-- 


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-08-30 18:37 ` mckinlay at redhat dot com
@ 2004-08-30 19:15 ` andreast at gcc dot gnu dot org
  2004-09-23 11:46 ` kcook at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: andreast at gcc dot gnu dot org @ 2004-08-30 19:15 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From andreast at gcc dot gnu dot org  2004-08-30 19:15 -------
oh, now I seem to remember why shared libraries are not supported under darwin <
7.0. Afair it was due to the missing MD_FALLBACK_FRAME_STATE_FOR macro at the
time when I introduced the changes for shared libraries on darwin.
Now this macro is in and it should also support darwin < 7.0.

You may try to modify ltcf-c.sh, ltcf-cxx.sh, ltcf-gcj.sh and ltconfig in the
toplevel gcc dir. See where it says:

  case $host_os in
      darwin[1-6]*)
          can_build_shared=no
          ;;
      darwin7*)
          can_build_shared=yes
          ;;
  esac

To say yes for darwin6.x too. It may help. I don't know since I no longer have a
6.x machine around. Just an idea.

-- 


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-08-30 19:15 ` andreast at gcc dot gnu dot org
@ 2004-09-23 11:46 ` kcook at gcc dot gnu dot org
  2004-09-23 12:14 ` aph at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: kcook at gcc dot gnu dot org @ 2004-09-23 11:46 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From kcook at gcc dot gnu dot org  2004-09-23 11:46 -------
a) Changing the lt* scripts had no effect.
b) This problem also happens under cygwin.

-- 


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-09-23 11:46 ` kcook at gcc dot gnu dot org
@ 2004-09-23 12:14 ` aph at gcc dot gnu dot org
  2004-09-27 22:31 ` tromey at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-09-23 12:14 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |17574
              nThis|                            |


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-09-23 12:14 ` aph at gcc dot gnu dot org
@ 2004-09-27 22:31 ` tromey at gcc dot gnu dot org
  2004-09-28 17:37 ` kcook at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-09-27 22:31 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-09-27 22:31 -------
The original thread has a patch:

http://gcc.gnu.org/ml/gcc/2004-09/msg01301.html

-- 


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2004-09-27 22:31 ` tromey at gcc dot gnu dot org
@ 2004-09-28 17:37 ` kcook at gcc dot gnu dot org
  2004-09-28 20:37 ` cvs-commit at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: kcook at gcc dot gnu dot org @ 2004-09-28 17:37 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From kcook at gcc dot gnu dot org  2004-09-28 17:37 -------
The patch fixes the problem on cygwin.  On its face it certainly appears that it
would also fix the problem under the older OS X versions.  I recently upgraded
my iMac to OS X 10.3, so I can't test it there.  Perhaps Lars could help as he
also reported the problem.

As the initiator of the PR, I would support its closing upon installation of the
patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lars dot sonchocky-helldorf
                   |                            |at hamburg dot de


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2004-09-28 17:37 ` kcook at gcc dot gnu dot org
@ 2004-09-28 20:37 ` cvs-commit at gcc dot gnu dot org
  2004-09-28 20:39 ` tromey at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-28 20:37 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-28 20:37 -------
Subject: Bug 17222

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2004-09-28 20:37:45

Modified files:
	libjava        : ChangeLog Makefile.am Makefile.in 

Log message:
	PR libgcj/17222:
	* Makefile.am (libgcj.la): Restored.
	* Makefile.in: Rebuilt.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3101&r2=1.3102
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.am.diff?cvsroot=gcc&r1=1.416&r2=1.417
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&r1=1.444&r2=1.445



-- 


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2004-09-28 20:37 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-28 20:39 ` tromey at gcc dot gnu dot org
  2004-09-28 21:22 ` lars dot sonchocky-helldorf at hamburg dot de
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-09-28 20:39 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-09-28 20:39 -------
Fix checked in.
Thanks Kelley.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2004-09-28 20:39 ` tromey at gcc dot gnu dot org
@ 2004-09-28 21:22 ` lars dot sonchocky-helldorf at hamburg dot de
  2004-10-09 16:08 ` lars dot sonchocky-helldorf at hamburg dot de
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: lars dot sonchocky-helldorf at hamburg dot de @ 2004-09-28 21:22 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From lars dot sonchocky-helldorf at hamburg dot de  2004-09-28 21:22 -------
> Perhaps Lars could help as he also reported the problem.

I'll test that by the time the next weekly snapshot of head is out.

-- 


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2004-09-28 21:22 ` lars dot sonchocky-helldorf at hamburg dot de
@ 2004-10-09 16:08 ` lars dot sonchocky-helldorf at hamburg dot de
  2005-03-02 18:25 ` kcook at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: lars dot sonchocky-helldorf at hamburg dot de @ 2004-10-09 16:08 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From lars dot sonchocky-helldorf at hamburg dot de  2004-10-09 16:08 -------
I successfully bootstrapped gcc-4.0-20041003 on Mac OS X 10.2.8 (powerpc-apple-darwin6.8). This 
bugg seems to be fixed here too.

see: http://gcc.gnu.org/ml/gcc/2004-10/msg00379.html

-- 


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2004-10-09 16:08 ` lars dot sonchocky-helldorf at hamburg dot de
@ 2005-03-02 18:25 ` kcook at gcc dot gnu dot org
  2005-03-02 18:25 ` kcook at gcc dot gnu dot org
  2005-03-02 21:41 ` pinskia at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: kcook at gcc dot gnu dot org @ 2005-03-02 18:25 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From kcook at gcc dot gnu dot org  2005-03-02 17:26 -------
Created an attachment (id=8313)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8313&action=view)
The new huge command line after the rth patch


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |kcook at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2005-03-02 18:25 ` kcook at gcc dot gnu dot org
@ 2005-03-02 18:25 ` kcook at gcc dot gnu dot org
  2005-03-02 21:41 ` pinskia at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: kcook at gcc dot gnu dot org @ 2005-03-02 18:25 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From kcook at gcc dot gnu dot org  2005-03-02 17:25 -------
This bootstrap bug unfortunately became re-introduced with this Richard
Henderson patch which moved the command line linking the thousands of sources
directly from libgcj.la to a convenience library libgcj0_convenience_la.  This
commandline happens to be 94,720 characters long which exceeds reasonable
expectations.

http://gcc.gnu.org/ml/java-patches/2005-q1/msg00402.html

This should be pretty straightforeward to fix by moving Tom Tromey's previous
clever hack to the new convenience library.  I'll try that and report back the
results.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |


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


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

* [Bug libgcj/17222] libjava fails to build due to command line length during link
  2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2005-03-02 18:25 ` kcook at gcc dot gnu dot org
@ 2005-03-02 21:41 ` pinskia at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-02 21:41 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-02 18:24 -------
This was filed under PR 20155.

The orginal problem was fixed but showed up again via soemthing.  Next time open a new bug instead 
of reopening this one.

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


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


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

end of thread, other threads:[~2005-03-02 18:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-28 13:50 [Bug libgcj/17222] New: libjava fails to build due to command line length during link kcook at gcc dot gnu dot org
2004-08-28 13:52 ` [Bug libgcj/17222] " kcook at gcc dot gnu dot org
2004-08-28 17:14 ` pinskia at gcc dot gnu dot org
2004-08-30 18:20 ` andreast at gcc dot gnu dot org
2004-08-30 18:37 ` mckinlay at redhat dot com
2004-08-30 19:15 ` andreast at gcc dot gnu dot org
2004-09-23 11:46 ` kcook at gcc dot gnu dot org
2004-09-23 12:14 ` aph at gcc dot gnu dot org
2004-09-27 22:31 ` tromey at gcc dot gnu dot org
2004-09-28 17:37 ` kcook at gcc dot gnu dot org
2004-09-28 20:37 ` cvs-commit at gcc dot gnu dot org
2004-09-28 20:39 ` tromey at gcc dot gnu dot org
2004-09-28 21:22 ` lars dot sonchocky-helldorf at hamburg dot de
2004-10-09 16:08 ` lars dot sonchocky-helldorf at hamburg dot de
2005-03-02 18:25 ` kcook at gcc dot gnu dot org
2005-03-02 18:25 ` kcook at gcc dot gnu dot org
2005-03-02 21:41 ` 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).