public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Relocation errors with latest binutils
@ 2014-03-21  0:07 Ken Brown
  2014-03-26 16:48 ` Ken Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Brown @ 2014-03-21  0:07 UTC (permalink / raw)
  To: cygwin

With binutils-2.24.51-1 the build of xetex.exe (part of TeX Live) fails 
with relocation errors like the following:

g++ -g -O2 -o xetex.exe xetexdir/xetex-xetexextra.o 
synctexdir/xetex-synctex.o xetex-xetexini.o xetex-xetex0.o 
xetex-xetex-pool.o libxetex.a 
/home/kbrown/src/texlive/test64/Work/libs/harfbuzz/libharfbuzz.a 
/home/kbrown/src/texlive/test64/Work/libs/graphite2/libgraphite2.a 
/home/kbrown/src/texlive/test64/Work/libs/icu/icu-build/lib/libicuuc.a 
/home/kbrown/src/texlive/test64/Work/libs/icu/icu-build/lib/libicudata.a 
/home/kbrown/src/texlive/test64/Work/libs/teckit/libTECkit.a 
/home/kbrown/src/texlive/test64/Work/libs/poppler/libpoppler.a 
/home/kbrown/src/texlive/test64/Work/libs/libpng/libpng.a 
/home/kbrown/src/texlive/test64/Work/libs/freetype2/libfreetype.a 
/home/kbrown/src/texlive/test64/Work/libs/zlib/libz.a -lfontconfig 
-lexpat -lfreetype -lz -lbz2 lib/lib.a 
/home/kbrown/src/texlive/test64/Work/texk/kpathsea/.libs/libkpathsea.a 
-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
/home/kbrown/src/texlive/test64/Work/libs/harfbuzz/libharfbuzz.a(hb-ot-shape-complex-arabic.o):hb-ot-shape-complex-arabic.cc:(.rdata+0x140): 
relocation truncated to fit: R_X86_64_PC32 against 
`.text$_ZNK2OT19SubstLookupSubTable8dispatchINS_25hb_get_coverage_context_tEEENT_8return_tEPS3_j'

[and many more relocation errors]

Note that stdc++ is linked statically in the build of xetex.exe.  I 
don't know if this is relevant, but it might explain why the build of 
xetex.exe is the only one that fails.  The problem doesn't occur with 
binutils-2.23.52-5.

Steps to reproduce:

1. Download the source:

   rsync -av --exclude=.svn tug.org::tldevsrc/Build/source .

2. Build TeX Live:

   cd source/
   TL_CONFIGURE_ARGS="--disable-luajittex" TL_MAKE_FLAGS="-j5" ./Build

(Change -j5 to whatever you like.)

3. Wait for the failure.

4. Now revert binutils to the previous version and retry to build xetex.exe:

   cd Work/texk/web2c
   make xetex.exe

This succeeds.

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Relocation errors with latest binutils
  2014-03-21  0:07 Relocation errors with latest binutils Ken Brown
@ 2014-03-26 16:48 ` Ken Brown
  2014-03-26 17:58   ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Brown @ 2014-03-26 16:48 UTC (permalink / raw)
  To: cygwin

On 3/20/2014 6:31 PM, Ken Brown wrote:
> With binutils-2.24.51-1 the build of xetex.exe (part of TeX Live) fails
> with relocation errors like the following:
>
> g++ -g -O2 -o xetex.exe xetexdir/xetex-xetexextra.o
> synctexdir/xetex-synctex.o xetex-xetexini.o xetex-xetex0.o
> xetex-xetex-pool.o libxetex.a
> /home/kbrown/src/texlive/test64/Work/libs/harfbuzz/libharfbuzz.a
> /home/kbrown/src/texlive/test64/Work/libs/graphite2/libgraphite2.a
> /home/kbrown/src/texlive/test64/Work/libs/icu/icu-build/lib/libicuuc.a
> /home/kbrown/src/texlive/test64/Work/libs/icu/icu-build/lib/libicudata.a
> /home/kbrown/src/texlive/test64/Work/libs/teckit/libTECkit.a
> /home/kbrown/src/texlive/test64/Work/libs/poppler/libpoppler.a
> /home/kbrown/src/texlive/test64/Work/libs/libpng/libpng.a
> /home/kbrown/src/texlive/test64/Work/libs/freetype2/libfreetype.a
> /home/kbrown/src/texlive/test64/Work/libs/zlib/libz.a -lfontconfig
> -lexpat -lfreetype -lz -lbz2 lib/lib.a
> /home/kbrown/src/texlive/test64/Work/texk/kpathsea/.libs/libkpathsea.a
> -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
> /home/kbrown/src/texlive/test64/Work/libs/harfbuzz/libharfbuzz.a(hb-ot-shape-complex-arabic.o):hb-ot-shape-complex-arabic.cc:(.rdata+0x140):
> relocation truncated to fit: R_X86_64_PC32 against
> `.text$_ZNK2OT19SubstLookupSubTable8dispatchINS_25hb_get_coverage_context_tEEENT_8return_tEPS3_j'
>
>
> [and many more relocation errors]

This seems to be the same problem reported by Yaakov last year; see the 
long thread starting at 
http://cygwin.com/ml/cygwin-developers/2013-04/msg00055.html and 
continuing into May and June.  Corinna announced a fix in 
http://cygwin.com/ml/cygwin-apps/2013-06/msg00057.html; is it possible 
that the fix didn't make it into the latest binutils?

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Relocation errors with latest binutils
  2014-03-26 16:48 ` Ken Brown
@ 2014-03-26 17:58   ` Corinna Vinschen
  0 siblings, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2014-03-26 17:58 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2210 bytes --]

On Mar 26 11:15, Ken Brown wrote:
> On 3/20/2014 6:31 PM, Ken Brown wrote:
> >With binutils-2.24.51-1 the build of xetex.exe (part of TeX Live) fails
> >with relocation errors like the following:
> >
> >g++ -g -O2 -o xetex.exe xetexdir/xetex-xetexextra.o
> >synctexdir/xetex-synctex.o xetex-xetexini.o xetex-xetex0.o
> >xetex-xetex-pool.o libxetex.a
> >/home/kbrown/src/texlive/test64/Work/libs/harfbuzz/libharfbuzz.a
> >/home/kbrown/src/texlive/test64/Work/libs/graphite2/libgraphite2.a
> >/home/kbrown/src/texlive/test64/Work/libs/icu/icu-build/lib/libicuuc.a
> >/home/kbrown/src/texlive/test64/Work/libs/icu/icu-build/lib/libicudata.a
> >/home/kbrown/src/texlive/test64/Work/libs/teckit/libTECkit.a
> >/home/kbrown/src/texlive/test64/Work/libs/poppler/libpoppler.a
> >/home/kbrown/src/texlive/test64/Work/libs/libpng/libpng.a
> >/home/kbrown/src/texlive/test64/Work/libs/freetype2/libfreetype.a
> >/home/kbrown/src/texlive/test64/Work/libs/zlib/libz.a -lfontconfig
> >-lexpat -lfreetype -lz -lbz2 lib/lib.a
> >/home/kbrown/src/texlive/test64/Work/texk/kpathsea/.libs/libkpathsea.a
> >-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
> >/home/kbrown/src/texlive/test64/Work/libs/harfbuzz/libharfbuzz.a(hb-ot-shape-complex-arabic.o):hb-ot-shape-complex-arabic.cc:(.rdata+0x140):
> >relocation truncated to fit: R_X86_64_PC32 against
> >`.text$_ZNK2OT19SubstLookupSubTable8dispatchINS_25hb_get_coverage_context_tEEENT_8return_tEPS3_j'
> >
> >
> >[and many more relocation errors]
> 
> This seems to be the same problem reported by Yaakov last year; see
> the long thread starting at
> http://cygwin.com/ml/cygwin-developers/2013-04/msg00055.html and
> continuing into May and June.  Corinna announced a fix in
> http://cygwin.com/ml/cygwin-apps/2013-06/msg00057.html; is it
> possible that the fix didn't make it into the latest binutils?

It has not been applied yet, in fact.  My collegue is just looking into
that and will pull it in today if it passes the testsuite.

Fortunately we need a new binutils soon anyway :}


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2014-03-26 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-21  0:07 Relocation errors with latest binutils Ken Brown
2014-03-26 16:48 ` Ken Brown
2014-03-26 17:58   ` Corinna Vinschen

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).