Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59082

relocation truncated to fit error when cross-compiling QtWebKit for arm-linux-gnueabihf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.9.0 Alpha
    • Fix Version/s: None
    • Component/s: WebKit
    • Labels:
      None
    • Environment:
      Ubuntu 64-bit, cross-compiling for BeagleBone running ARM7.

      Description

      When attempting to cross-compile QtWebKit with gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf-g++ cross-compiler, the following error is generated.

      rm -f libQt5WebKit.so.5.8.1 libQt5WebKit.so libQt5WebKit.so.5 libQt5WebKit.so.5.8
      /home/doug/workspace/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ mfloat-abi=hard --sysroot=/mnt/Wayland -Wl,gc-sections -Wl,no-undefined -Wl,no-undefined -fdebug-types-section -Wl,no-keep-memory -Wl,-enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN -shared -Wl,-soname,libQt5WebKit.so.5 -o libQt5WebKit.so.5.8.1 -L/home/doug/build/Wayland/install/lib/ -lrt -lpthread -ldl -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Gui -L/home/doug/build/Wayland/install/lib/ -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Core -lrt -ldl -lpthread -lQt5Network -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Core -lrt -ldl -lpthread -lQt5Core -lrt -ldl -lpthread -lpthread -Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive -L/home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/WebKit/ -Wl,-whole-archive -lWebKit2 -Wl,-no-whole-archive -L/home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/WebKit2/ -lrt -Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -L/home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/WebCore/ -lz -lXrender -Wl,-whole-archive -lANGLE -Wl,-no-whole-archive -L/home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/ThirdParty/ANGLE/ -Wl,-whole-archive -lleveldb -Wl,-no-whole-archive -L/home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/ThirdParty/leveldb/ -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L/home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore/ -Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L/home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/WTF/ -lpthread -L/mnt/Wayland/usr/lib/arm-linux-gnueabihf -lEGL -lXext -lX11 -lm -lX11 -licui18n -licuuc -licudata -L/home/doug/workspace/qt5.8_ARM7/qtsensors/lib -lQt5Sensors -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Core -lrt -ldl -lpthread -L/home/doug/workspace/qt5.8_ARM7/qtlocation/lib -lQt5Positioning -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Core -lrt -ldl -lpthread -L/home/doug/workspace/qt5.8_ARM7/qtdeclarative/lib -lQt5Quick -L/home/doug/build/Wayland/install/lib/ -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Gui -L/home/doug/workspace/qt5.8_ARM7/qtdeclarative/lib -lQt5Qml -lQt5Network -lQt5Core -lrt -ldl -lpthread -L/home/doug/workspace/qt5.8_ARM7/qtwebchannel/lib -lQt5WebChannel -L/home/doug/workspace/qt5.8_ARM7/qtdeclarative/lib -lQt5Qml -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Network -lQt5Core -lrt -ldl -lpthread -lQt5Qml -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Network -lQt5Core -lrt -ldl -lpthread -L/home/doug/workspace/qt5.8_ARM7/qtmultimedia/lib -lQt5Multimedia -L/home/doug/build/Wayland/install/lib/ -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Network -lQt5Gui -lQt5Core -lrt -ldl -lpthread -lQt5Network -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Core -lrt -ldl -lpthread -lQt5Gui -L/home/doug/build/Wayland/install/lib/ -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Core -lrt -ldl -lpthread -lQt5Sql -L/home/doug/workspace/qt5.8_ARM7/qtbase/lib -lQt5Core -lrt -ldl -lpthread -lQt5Core -lrt -ldl -lpthread -lGLESv2
      /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LowLevelInterpreter.o: In function `llint_program_prologue':
      LowLevelInterpreter.cpp.rodata+0x4ba): relocation truncated to fit: R_ARM_THM_CALL against symbol `llint_entry_osr' defined in .text section in /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LLIntSlowPaths.o
      /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LowLevelInterpreter.o: In function `llint_eval_prologue':
      LowLevelInterpreter.cpp.rodata+0x4f4): relocation truncated to fit: R_ARM_THM_CALL against symbol `llint_entry_osr' defined in .text section in /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LLIntSlowPaths.o
      /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LowLevelInterpreter.o: In function `llint_function_for_call_prologue':
      LowLevelInterpreter.cpp.rodata+0x532): relocation truncated to fit: R_ARM_THM_CALL against symbol `llint_entry_osr_function_for_call' defined in .text section in /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LLIntSlowPaths.o
      LowLevelInterpreter.cpp.rodata+0x5b4): relocation truncated to fit: R_ARM_THM_CALL against symbol `llint_stack_check' defined in .text section in /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LLIntSlowPaths.o
      /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LowLevelInterpreter.o: In function `llint_function_for_construct_prologue':
      LowLevelInterpreter.cpp.rodata+0x5e0): relocation truncated to fit: R_ARM_THM_CALL against symbol `llint_entry_osr_function_for_construct' defined in .text section in /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LLIntSlowPaths.o
      LowLevelInterpreter.cpp.rodata+0x664): relocation truncated to fit: R_ARM_THM_CALL against symbol `llint_stack_check' defined in .text section in /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LLIntSlowPaths.o
      /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LowLevelInterpreter.o: In function `llint_function_for_call_arity_check':
      LowLevelInterpreter.cpp.rodata+0x690): relocation truncated to fit: R_ARM_THM_CALL against symbol `llint_entry_osr_function_for_call_arityCheck' defined in .text section in /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LLIntSlowPaths.o
      LowLevelInterpreter.cpp.rodata+0x6c2): relocation truncated to fit: R_ARM_THM_CALL against symbol `llint_slow_path_call_arityCheck' defined in .text section in /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LLIntSlowPaths.o
      /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LowLevelInterpreter.o: In function `llint_function_for_construct_arity_check':
      LowLevelInterpreter.cpp.rodata+0x70c): relocation truncated to fit: R_ARM_THM_CALL against symbol `llint_entry_osr_function_for_construct_arityCheck' defined in .text section in /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LLIntSlowPaths.o
      LowLevelInterpreter.cpp.rodata+0x740): relocation truncated to fit: R_ARM_THM_CALL against symbol `llint_slow_path_construct_arityCheck' defined in .text section in /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LLIntSlowPaths.o
      /home/doug/workspace/qt5.8_ARM7/qtwebkit/Source/JavaScriptCore//.obj/llint/LowLevelInterpreter.o: In function `llint_op_create_activation':
      LowLevelInterpreter.cpp.rodata+0x7b0): additional relocation overflows omitted from the output
      collect2: error: ld returned 1 exit status
      Makefile.api:92: recipe for target '../lib/libQt5WebKit.so.5.8.1' failed
      make: *** [../lib/libQt5WebKit.so.5.8.1] Error 1

      This has occurred for various versions of Qt and various versions of the cross-compiler. The sysroot is being defined as a mounted copy of the target Beaglebone's Debian OS.

      Qt is being configured as such:

      ../qt5/configure developer-build -shared -opengl es2 -device linux-beaglebone-g++ -device-option CROSS_COMPILE=/home/doug/workspace/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf -nomake tools -nomake examples -nomake tests -opensource -confirm-license -extprefix /opt/Qt5.8_ARM7 -sysroot /mnt/Wayland -v -pkg-config

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            annulen Konstantin Tokarev
            Reporter:
            digdugdo digdugdo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes