Relocation errors with latest binutils

Ken Brown kbrown@cornell.edu
Fri Mar 21 00:07:00 GMT 2014


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



More information about the Cygwin mailing list