public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/15626] New: GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32"
@ 2004-05-25  1:47 eggert at twinsun dot com
  2004-05-25  1:49 ` [Bug target/15626] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: eggert at twinsun dot com @ 2004-05-25  1:47 UTC (permalink / raw)
  To: gcc-bugs

This is a follow up to GCC bug c++/15599, which was rejected as not a
GCC bug, so I'm suggesting a fix to the installation documentation instead.

The problem is that GCC 3.4.0 won't build groff 1.19.1 on Solaris 8 or
9 (or probably Solaris 7; I haven't tried) in 32-bit mode without
generating some Sun linker diagnostics due to the debugging
information being mishandled by the Sun assembler.  I suggest adding a
note about this problem in the installation documentation, as follows.
This patch also updates a couple of other obsolete Solaris items.

2004-05-23  Paul Eggert  <eggert@cs.ucla.edu>

	* doc/install.texi (sparc-sun-solaris2*): GCC 3.4 changed the
	default debugging format from STABS to DWARF-2, and this causes
	problems with C++ compiles with -g on 32-bit Solaris 7 and later.
	Mention -gstabs+ as a workaround.
	(sparc-sun-solaris2.7): Update revision info for Sun patch 106950.  

Index: gcc/doc/install.texi
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/doc/install.texi,v
retrieving revision 1.280
diff -p -u -r1.280 install.texi
--- gcc/doc/install.texi	13 May 2004 06:40:25 -0000	1.280
+++ gcc/doc/install.texi	24 May 2004 04:10:53 -0000
@@ -3363,7 +3363,7 @@ supported as cross-compilation target on
 <hr />
 @end html
 @c Please use Solaris 2 to refer to all release of Solaris, starting
-@c with 2.0 until 2.6, 7, and 8.  Solaris 1 was a marketing name for
+@c with 2.0 until 2.6, then 7, 8, etc.  Solaris 1 was a marketing name for
 @c SunOS 4 releases which we don't use to avoid confusion.  Solaris
 @c alone is too unspecific and must be avoided.
 @heading @anchor{*-*-solaris2*}*-*-solaris2*
@@ -3472,6 +3472,17 @@ and 5.5 (Sun ONE Studio 8) of the Sun co
 failure in form of a miscompilation of the stage1 compiler by the Sun
 compiler.  This is Sun bug 4974440.  This is fixed with patch 112760-07.
 
+GCC 3.4 changed the default debugging format from STABS to DWARF-2 for
+32-bit code on Solaris 7 and later.  If you are using the Sun
+assembler, this change apparently runs afoul of Sun bug 4910101, for
+which (as of 2004-05-23) there is no fix.  A symptom of the problem is
+that you cannot compile C++ programs like @command{groff} 1.19.1
+without getting messages like @samp{ld: warning: relocation error:
+R_SPARC_UA32 @dots{} external symbolic relocation against
+non-allocatable section .debug_info; cannot be processed at runtime:
+relocation ignored}.  To work around this problem, compile with
+@option{-gstabs+} instead of plain @option{-g}.
+
 @html
 <hr />
 @end html
@@ -3508,7 +3519,7 @@ run code generated by GCC; it doesn't su
 the hosts that run GCC itself.  Second, Sun says that 106950-03 is
 only a partial fix for bug 4210064, but Sun doesn't know whether the
 partial fix is adequate for GCC@.  Revision -08 or later should fix
-the bug.  The current (as of 2001-09-24) revision is -14, and is included in
+the bug.  The current (as of 2004-05-23) revision is -24, and is included in
 the Solaris 7 Recommended Patch Cluster.
 @end itemize

-- 
           Summary: GCC 3.4 emits "ld: warning: relocation error:
                    R_SPARC_UA32"
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eggert at twinsun dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.9
  GCC host triplet: sparc-sun-solaris2.9
GCC target triplet: sparc-sun-solaris2.9


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


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

* [Bug target/15626] GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32"
  2004-05-25  1:47 [Bug debug/15626] New: GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32" eggert at twinsun dot com
@ 2004-05-25  1:49 ` pinskia at gcc dot gnu dot org
  2004-05-25  1:52 ` ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-25  1:49 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|debug                       |target
           Keywords|                            |documentation


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


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

* [Bug target/15626] GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32"
  2004-05-25  1:47 [Bug debug/15626] New: GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32" eggert at twinsun dot com
  2004-05-25  1:49 ` [Bug target/15626] " pinskia at gcc dot gnu dot org
@ 2004-05-25  1:52 ` ebotcazou at gcc dot gnu dot org
  2004-06-01  9:07 ` ebotcazou at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-05-25  1:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-05-24 05:54 -------
I ran into it too (after 3.4.0 had been released).

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


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


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

* [Bug target/15626] GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32"
  2004-05-25  1:47 [Bug debug/15626] New: GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32" eggert at twinsun dot com
  2004-05-25  1:49 ` [Bug target/15626] " pinskia at gcc dot gnu dot org
  2004-05-25  1:52 ` ebotcazou at gcc dot gnu dot org
@ 2004-06-01  9:07 ` ebotcazou at gcc dot gnu dot org
  2004-06-01 11:29 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-06-01  9:07 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3
   Target Milestone|---                         |3.4.1


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


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

* [Bug target/15626] GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32"
  2004-05-25  1:47 [Bug debug/15626] New: GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32" eggert at twinsun dot com
                   ` (2 preceding siblings ...)
  2004-06-01  9:07 ` ebotcazou at gcc dot gnu dot org
@ 2004-06-01 11:29 ` cvs-commit at gcc dot gnu dot org
  2004-06-01 11:34 ` cvs-commit at gcc dot gnu dot org
  2004-06-01 11:35 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-01 11:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-01 11:28 -------
Subject: Bug 15626

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ebotcazou@gcc.gnu.org	2004-06-01 11:28:50

Modified files:
	gcc            : ChangeLog 
	gcc/doc        : install.texi 

Log message:
	PR target/15626
	* doc/install.texi (sparc-sun-solaris2*): Document messages issued
	by the Sun linker in conjunction with the Sun assembler.
	(sparc-sun-solaris2.7): Update revision info for Sun patch 106950.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3813&r2=2.3814
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/install.texi.diff?cvsroot=gcc&r1=1.281&r2=1.282



-- 


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


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

* [Bug target/15626] GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32"
  2004-05-25  1:47 [Bug debug/15626] New: GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32" eggert at twinsun dot com
                   ` (3 preceding siblings ...)
  2004-06-01 11:29 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-01 11:34 ` cvs-commit at gcc dot gnu dot org
  2004-06-01 11:35 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-01 11:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-01 11:33 -------
Subject: Bug 15626

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	ebotcazou@gcc.gnu.org	2004-06-01 11:33:40

Modified files:
	gcc            : ChangeLog 
	gcc/doc        : install.texi 

Log message:
	PR target/15626
	* doc/install.texi (sparc-sun-solaris2*): Document messages issued
	by the Sun linker in conjunction with the Sun assembler.
	(sparc-sun-solaris2.7): Update revision info for Sun patch 106950.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.464&r2=2.2326.2.465
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/install.texi.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.248.4.19&r2=1.248.4.20



-- 


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


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

* [Bug target/15626] GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32"
  2004-05-25  1:47 [Bug debug/15626] New: GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32" eggert at twinsun dot com
                   ` (4 preceding siblings ...)
  2004-06-01 11:34 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-01 11:35 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-06-01 11:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-06-01 11:35 -------
Patch applied.  Thanks.


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


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


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

end of thread, other threads:[~2004-06-01 11:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-25  1:47 [Bug debug/15626] New: GCC 3.4 emits "ld: warning: relocation error: R_SPARC_UA32" eggert at twinsun dot com
2004-05-25  1:49 ` [Bug target/15626] " pinskia at gcc dot gnu dot org
2004-05-25  1:52 ` ebotcazou at gcc dot gnu dot org
2004-06-01  9:07 ` ebotcazou at gcc dot gnu dot org
2004-06-01 11:29 ` cvs-commit at gcc dot gnu dot org
2004-06-01 11:34 ` cvs-commit at gcc dot gnu dot org
2004-06-01 11:35 ` ebotcazou 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).