This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15599] New: Building groff elicits "ld: warning: relocation error: R_SPARC_UA32"
- From: "eggert at twinsun dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2004 07:32:40 -0000
- Subject: [Bug c++/15599] New: Building groff elicits "ld: warning: relocation error: R_SPARC_UA32"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I get this problem when building groff 1.19.1 on Solaris 8 using GCC 3.4.0.
g++ -g -O2 -R/opt/reb/lib/gcc/gcc-3.4.0/lib -o troff dictionary.o div.o env.o
input.o majorminor.o node.o number.o reg.o
/reb/src/base/groff/src/libs/libgroff/libgroff.a -lm
ld: warning: relocation error: R_SPARC_UA32: file
/reb/src/base/groff/src/libs/libgroff/libgroff.a(getopt.o): symbol optarg:
external symbolic relocation against non-allocatable section .debug_info;
cannot be processed at runtime: relocation ignored
This problem reminds me of a long-ago bug I tried to file against
the Sun linker. See
http://groups.google.com/groups?selm=6ig3u8%248pg%241%40shade.twinsun.com
Sun has apparently rediscovered this bug using its own compiler; it's
Sun bugs 4910101 and 4910810, filed in September 2003. There is no
public fix yet.
It's not surprising that the bug would occur with GCC 3.4.0, as GCC
changed the default SPARC debug format in the 3.4.0 release.
Also see the following ancient bug report I filed against GCC:
http://groups.google.com/groups?selm=199802170858.AAA14957%40shade.twinsun.com
(groff 1.19.1 build note:
If you use Solaris make you need to substitute "shdeps.sh" for "$<" in
line 25 of groff-1.19.1/arch/misc/Makefile.sub to work around a groff
porting glitch.)
--
Summary: Building groff elicits "ld: warning: relocation error:
R_SPARC_UA32"
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
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.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15599