public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/17476] New: relocation error libgcc_s.so.1
@ 2004-09-14 14:07 o dot flebbe at science-computing dot de
  2004-09-14 16:14 ` [Bug bootstrap/17476] " o dot flebbe at science-computing dot de
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: o dot flebbe at science-computing dot de @ 2004-09-14 14:07 UTC (permalink / raw)
  To: gcc-bugs

Bootstraping on Solaris 7 fails with the sun as und sun ld

Seems to be related to issue 15267.
....
gmake[4]: Leaving directory `/scr/sarlacc/flebbe/gcc-3.4.2/ARENA/gcc'
./xgcc -B./ -B/usr/local/gcc-3.4.2/sparc-sun-solaris2.7/bin/ -isystem
/usr/local/gcc-3.4.2/sparc-sun-solaris2.7/include
-isystem /usr/local/gcc-3.4.2/sparc-sun-solaris2.7/sys-include
-L/scr/sarlacc/flebbe/gcc-3.4.2/ARENA/gcc/../ld -O2  -DIN
_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -f
PIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared
-nodefaultlibs -Wl,-h,libgcc_s.so.1 -Wl,-z,tex
t -Wl,-z,defs -Wl,-M,libgcc/./libgcc.map -o libgcc_s.so.1   libgcc/./_muldi3.o
libgcc/./_negdi2.o libgcc/./_lshrdi3.o li
bgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o
libgcc/./_floatdidf.o libgcc/./_floatdisf.o
 libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o
libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/
./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o
libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o
 libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o
libgcc/./_enable_execute_stack.o libgcc/./_trampol
ine.o libgcc/./__main.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o
libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi
3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o
libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.
o libgcc/./_ffssi2.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_clzsi2.o
libgcc/./_clzdi2.o libgcc/./_ctzsi2.o libgcc/
./_ctzdi2.o libgcc/./_popcount_tab.o libgcc/./_popcountsi2.o
libgcc/./_popcountdi2.o libgcc/./_paritysi2.o libgcc/./_par
itydi2.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o
libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./
_udivmoddi4.o  libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o
libgcc/./unwind-sjlj.o libgcc/./gthr-gnat.o libgcc/./unwi
nd-c.o -lc && rm -f libgcc_s.so && ln -s libgcc_s.so.1 libgcc_s.so
ld: fatal: relocation error: R_SPARC_32: file libgcc/./_muldi3.o: symbol
<unknown>: offset 0xfeacecaf is non-aligned
ld: fatal: relocation error: R_SPARC_32: file libgcc/./_muldi3.o: symbol
<unknown>: offset 0xfeacecb3 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file libgcc/./_muldi3.o: symbol
<unknown>: offset 0xfeacecb7 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file libgcc/./_negdi2.o: symbol
<unknown>: offset 0xfeaceefd is non-aligned
ld: fatal: relocation error: R_SPARC_32: file libgcc/./_negdi2.o: symbol
<unknown>: offset 0xfeacef01 is non-aligned
.........

-- 
           Summary: relocation error libgcc_s.so.1
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: o dot flebbe at science-computing dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.7
  GCC host triplet: sparc-sun-solaris2.7
GCC target triplet: sparc-sun-solaris2.7


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


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

* [Bug bootstrap/17476] relocation error libgcc_s.so.1
  2004-09-14 14:07 [Bug bootstrap/17476] New: relocation error libgcc_s.so.1 o dot flebbe at science-computing dot de
@ 2004-09-14 16:14 ` o dot flebbe at science-computing dot de
  2004-09-14 16:17 ` o dot flebbe at science-computing dot de
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: o dot flebbe at science-computing dot de @ 2004-09-14 16:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From o dot flebbe at science-computing dot de  2004-09-14 16:14 -------
bootstrapping with gnu-as and gnu-ld from binutils 2.15 fails on stage1 with

....
stage1/xgcc -Bstage1/ -B/usr/local/gcc-3.4.2/sparc-sun-solaris2.7/bin/   -g -O2
-DIN_GCC   -W -Wall -Wwrite-strings -Wst
rict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wold-style-definition     -DHAVE_CONFIG_H -DGENERATOR_FIL
E  -o genattrtab \
 genattrtab.o genautomata.o \
 rtl.o read-rtl.o bitmap.o ggc-none.o min-insn-modes.o gensupport.o
insn-conditions.o print-rtl1.o errors.o \
 varray.o ../libiberty/libiberty.a -lm
collect2: ld terminated with signal 11 [Segmentation Fault], core dumped
g

....

gdb) where
#0  0x0005c4b0 in _bfd_elf_add_dynamic_entry ()
#1  0xff2cdcbc in qsort () from /usr/lib/libc.so.1
#2  0x0005e298 in _bfd_elf_add_dynamic_entry ()
#3  0x0005ece0 in bfd_elf_link_add_symbols ()
#4  0x00022a54 in lang_add_section ()
#5  0x000232e0 in lang_get_output_target ()
#6  0x000268e8 in lang_process ()
#7  0x00029a14 in main ()

trying binutils-2.14 ...

-- 


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


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

* [Bug bootstrap/17476] relocation error libgcc_s.so.1
  2004-09-14 14:07 [Bug bootstrap/17476] New: relocation error libgcc_s.so.1 o dot flebbe at science-computing dot de
  2004-09-14 16:14 ` [Bug bootstrap/17476] " o dot flebbe at science-computing dot de
@ 2004-09-14 16:17 ` o dot flebbe at science-computing dot de
  2004-09-14 16:23 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: o dot flebbe at science-computing dot de @ 2004-09-14 16:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From o dot flebbe at science-computing dot de  2004-09-14 16:17 -------

btw. it fails on solaris 2.8, too. reporting it to the binutils crew.

-- 


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


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

* [Bug bootstrap/17476] relocation error libgcc_s.so.1
  2004-09-14 14:07 [Bug bootstrap/17476] New: relocation error libgcc_s.so.1 o dot flebbe at science-computing dot de
  2004-09-14 16:14 ` [Bug bootstrap/17476] " o dot flebbe at science-computing dot de
  2004-09-14 16:17 ` o dot flebbe at science-computing dot de
@ 2004-09-14 16:23 ` pinskia at gcc dot gnu dot org
  2004-09-14 21:07 ` ebotcazou at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-14 16:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-14 16:23 -------


*** This bug has been marked as a duplicate of 15267 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug bootstrap/17476] relocation error libgcc_s.so.1
  2004-09-14 14:07 [Bug bootstrap/17476] New: relocation error libgcc_s.so.1 o dot flebbe at science-computing dot de
                   ` (2 preceding siblings ...)
  2004-09-14 16:23 ` pinskia at gcc dot gnu dot org
@ 2004-09-14 21:07 ` ebotcazou at gcc dot gnu dot org
  2004-09-16 12:06 ` o dot flebbe at science-computing dot de
  2004-09-16 12:40 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-09-14 21:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-09-14 21:07 -------
> Bootstraping on Solaris 7 fails with the sun as und sun ld

Are you really sure it's Sun ld and Sun as?  I've never heard of the Sun
assembler emitting unaligned relocations, only of the GNU assembler.  Could you
post the version string for both tools?

Binutils 2.15 release is indeed broken on Solaris/SPARC.  Use either binutils
2.14 or binutils 2.15 CVS.


-- 


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


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

* [Bug bootstrap/17476] relocation error libgcc_s.so.1
  2004-09-14 14:07 [Bug bootstrap/17476] New: relocation error libgcc_s.so.1 o dot flebbe at science-computing dot de
                   ` (3 preceding siblings ...)
  2004-09-14 21:07 ` ebotcazou at gcc dot gnu dot org
@ 2004-09-16 12:06 ` o dot flebbe at science-computing dot de
  2004-09-16 12:40 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: o dot flebbe at science-computing dot de @ 2004-09-16 12:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From o dot flebbe at science-computing dot de  2004-09-16 12:05 -------
Yes, I have to confirm: it is the sun ld and sun as.

what /usr/ccs/bin/ld
/usr/ccs/bin/ld:
        SunOS 5.7 Generic 106950-24 Sep 2003


what /usr/ccs/bin/as
/usr/ccs/bin/as:
        RELEASE VERSION Workshop 4.0 Dev 96/06/07 [4.0]

AAARgh! an unpatched as!!!! 

O.k. I installed patch 107058-02

now "as" is:

/usr/ccs/bin/as:
        RELEASE VERSION Workshop 5.0 Dev [5.0]
....

But the error remains.


Building with as and ld from binutils 2.15 include patch from
http://sources.redhat.com/ml/binutils/2004-06/msg00114.html works as expected.

(Building gcc with the solaris 2.8 bundled as and ld works, btw. It is an
solaris 2.7 issue only)

-- 


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


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

* [Bug bootstrap/17476] relocation error libgcc_s.so.1
  2004-09-14 14:07 [Bug bootstrap/17476] New: relocation error libgcc_s.so.1 o dot flebbe at science-computing dot de
                   ` (4 preceding siblings ...)
  2004-09-16 12:06 ` o dot flebbe at science-computing dot de
@ 2004-09-16 12:40 ` ebotcazou at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-09-16 12:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-09-16 12:39 -------
> now "as" is:
> 
> /usr/ccs/bin/as:
>         RELEASE VERSION Workshop 5.0 Dev [5.0]
> ....
> 
> But the error remains.

Sure, sure, sure that you don't have an old version of gas in the $prefix/bin
directory or anywhere in the PATH?  Do you specify --with-as=/usr/ccs/bin/as
and --with-ld=/usr/ccs/bin/ld on the configure line?

> Building with as and ld from binutils 2.15 include patch from
> http://sources.redhat.com/ml/binutils/2004-06/msg00114.html works as expected.

Thanks for the confirmation.

> (Building gcc with the solaris 2.8 bundled as and ld works, btw. It is an
> solaris 2.7 issue only)

The only similar problem reported against Sun as was for a 5.0 alpha version on
Solaris 7 and only in 64-bit mode, that's why I'm insisting a bit. :-)


-- 


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


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

end of thread, other threads:[~2004-09-16 12:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-14 14:07 [Bug bootstrap/17476] New: relocation error libgcc_s.so.1 o dot flebbe at science-computing dot de
2004-09-14 16:14 ` [Bug bootstrap/17476] " o dot flebbe at science-computing dot de
2004-09-14 16:17 ` o dot flebbe at science-computing dot de
2004-09-14 16:23 ` pinskia at gcc dot gnu dot org
2004-09-14 21:07 ` ebotcazou at gcc dot gnu dot org
2004-09-16 12:06 ` o dot flebbe at science-computing dot de
2004-09-16 12:40 ` 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).