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

QtScript compilation fails for armv7 in yocto for Boot2Qt 5.12.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 5.12.1
    • 5.12.0 Beta 3
    • Qt Script
    • None

    Description

      Building qtscript in yocto for Boot2Qt 5.12.0 fails with "undefined reference to-" errors:

      /home/migronof/git_repos/dev/yocto/sumo/build-apalis-imx6/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtscript/5.12.0+gitAUTOINC+9b0fcf7943-r0/git/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h: In member function 'allocatePropertyStorage':
      | /home/migronof/git_repos/dev/yocto/sumo/build-apalis-imx6/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtscript/5.12.0+gitAUTOINC+9b0fcf7943-r0/recipe-sysroot/usr/include/c++/7.3.0/new:122:7: note: in a call to allocation function 'operator new []' declared here
      |  void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
      |        ^
      | /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_op_convert_this':
      | <artificial>:(.text+0x48): undefined reference to `JITStubThunked_op_convert_this'
      | /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_op_end':
      | <artificial>:(.text+0x58): undefined reference to `JITStubThunked_op_end'
      | /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_op_add':
      | <artificial>:(.text+0x68): undefined reference to `JITStubThunked_op_add'
      | /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_op_pre_inc':
      | <artificial>:(.text+0x78): undefined reference to `JITStubThunked_op_pre_inc'
      | /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_timeout_check':
      | <artificial>:(.text+0x88): undefined reference to `JITStubThunked_timeout_check'
      | /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_register_file_check':
      | <artificial>:(.text+0x98): undefined reference to `JITStubThunked_register_file_check'
      <snip>
      .
      .
      .
      <snip>
       /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_op_debug':
      | <artificial>:(.text+0x6b8): undefined reference to `JITStubThunked_op_debug'
      | /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_op_debug_catch':
      | <artificial>:(.text+0x6c8): undefined reference to `JITStubThunked_op_debug_catch'
      | /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_op_debug_return':
      | <artificial>:(.text+0x6d8): undefined reference to `JITStubThunked_op_debug_return'
      | /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_vm_throw':
      | <artificial>:(.text+0x6e8): undefined reference to `JITStubThunked_vm_throw'
      | /tmp/cczizpmq.ltrans0.ltrans.o: In function `cti_to_object':
      | <artificial>:(.text+0x6f8): undefined reference to `JITStubThunked_to_object'
      | collect2: error: ld returned 1 exit status
      | Makefile:664: recipe for target '../../lib/libQt5Script.so.5.12.0' failed
      | make[2]: *** [../../lib/libQt5Script.so.5.12.0] Error 1
      | make[2]: Leaving directory '/home/migronof/git_repos/dev/yocto/sumo/build-apalis-imx6/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/qtscript/5.12.0+gitAUTOINC+9b0fcf7943-r0/build/src/script'
      | Makefile:45: recipe for target 'sub-script-make_first-ordered' failed
      | make[1]: *** [sub-script-make_first-ordered] Error 2
      

      Full error log: https://paste.qt.io/pfq1tqmgq

      Seeminly a GCC version related, as Yocto (sumo) project this fails on arm, has GCC 7.3.0.
      The same qtscript revision (sha1 9b0fcf7943e63f35cf7d13c7771cb0185178e9fa) builds arm target fine on older yocto (morty) project, having GCC 6.

      Works ok for x86 targets.

      Attachments

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

        Activity

          People

            gronoff Mikko Gronoff
            gronoff Mikko Gronoff
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes