This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Relocation errors with latest binutils


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]