All of lore.kernel.org
 help / color / mirror / Atom feed
* poky thud: qtscript fails to build with undefined reference to `cti_vm_throw'
@ 2019-11-01  9:06 JK.Behnke
  2019-11-01 17:23 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: JK.Behnke @ 2019-11-01  9:06 UTC (permalink / raw)
  To: yocto

Hello,
 
I tried to build a poky SDK with QT5 support (I am using poky thud).
Unfortunately this failed while bitbaking qtscript.
When executing "bitbake qtscript" directly I get the same error.
 
Here are the IMHO relevant lines of the huge log.do_compile file.
I have replaced the long paths by <...> for clarity.
 
-- multiple warnings ---
...  warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
---

-- warning ---
In member function 'allocatePropertyStorageInline',
    inlined from 'allocatePropertyStorage' at <...>/git/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.cpp:546:34:
<...>/git/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:679:68: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
     PropertyStorage newPropertyStorage = new EncodedJSValue[newSize];
                                                                    ^
<...>/git/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h: In member function 'allocatePropertyStorage':
<...>/recipe-sysroot/usr/include/c++/8.2.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)
---
 
--- error ---
<...>/recipe-sysroot-native/usr/bin/i686-poky-linux/../../libexec/i686-poky-linux/gcc/i686-poky-linux/8.2.0/ld: <...>/recipe-sysroot-native/usr/bin/i686-poky-linux/../../libexec/i686-poky-linux/gcc/i686-poky-linux/8.2.0/ld: DWARF error: invalid abstract instance DIE ref
/tmp/ccSwzRoN.ltrans0.ltrans.o: in function `ctiVMThrowTrampoline':
<artificial>:(.text+0x1f): undefined reference to `cti_vm_throw'
collect2: error: ld returned 1 exit status
Makefile:666: recipe for target '../../lib/libQt5Script.so.5.12.2' failed
---
 
Has anyone an idea what could be the problem?
 
Thanks
Jochen


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

* Re: poky thud: qtscript fails to build with undefined reference to `cti_vm_throw'
  2019-11-01  9:06 poky thud: qtscript fails to build with undefined reference to `cti_vm_throw' JK.Behnke
@ 2019-11-01 17:23 ` Khem Raj
  2019-11-01 19:44   ` Jochen Behnke
  2019-11-05  7:50   ` JK.Behnke
  0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2019-11-01 17:23 UTC (permalink / raw)
  To: JK.Behnke; +Cc: Yocto Project

On Fri, Nov 1, 2019 at 2:12 AM <JK.Behnke@web.de> wrote:
>
> Hello,
>
> I tried to build a poky SDK with QT5 support (I am using poky thud).
> Unfortunately this failed while bitbaking qtscript.
> When executing "bitbake qtscript" directly I get the same error.
>
> Here are the IMHO relevant lines of the huge log.do_compile file.
> I have replaced the long paths by <...> for clarity.
>
> -- multiple warnings ---
> ...  warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> ---
>
> -- warning ---
> In member function 'allocatePropertyStorageInline',
>     inlined from 'allocatePropertyStorage' at <...>/git/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.cpp:546:34:
> <...>/git/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:679:68: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
>      PropertyStorage newPropertyStorage = new EncodedJSValue[newSize];
>                                                                     ^
> <...>/git/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h: In member function 'allocatePropertyStorage':
> <...>/recipe-sysroot/usr/include/c++/8.2.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)
> ---
>
> --- error ---
> <...>/recipe-sysroot-native/usr/bin/i686-poky-linux/../../libexec/i686-poky-linux/gcc/i686-poky-linux/8.2.0/ld: <...>/recipe-sysroot-native/usr/bin/i686-poky-linux/../../libexec/i686-poky-linux/gcc/i686-poky-linux/8.2.0/ld: DWARF error: invalid abstract instance DIE ref
> /tmp/ccSwzRoN.ltrans0.ltrans.o: in function `ctiVMThrowTrampoline':
> <artificial>:(.text+0x1f): undefined reference to `cti_vm_throw'
> collect2: error: ld returned 1 exit status
> Makefile:666: recipe for target '../../lib/libQt5Script.so.5.12.2' failed
> ---
>
> Has anyone an idea what could be the problem?
>

perhaps we need to patch binutils/ld with

https://patches-gcc.linaro.org/patch/9614/

see
https://sourceware.org/bugzilla/show_bug.cgi?id=23425

if you could try it out and report back that would be awesome

> Thanks
> Jochen
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


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

* Re: poky thud: qtscript fails to build with undefined reference to `cti_vm_throw'
  2019-11-01 17:23 ` Khem Raj
@ 2019-11-01 19:44   ` Jochen Behnke
  2019-11-05  7:50   ` JK.Behnke
  1 sibling, 0 replies; 4+ messages in thread
From: Jochen Behnke @ 2019-11-01 19:44 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

> On Fri, Nov 1, 2019 at 2:12 AM <JK.Behnke@web.de> wrote:
>>
>> Hello,
>>
>> I tried to build a poky SDK with QT5 support (I am using poky thud).
>> Unfortunately this failed while bitbaking qtscript.
>> When executing "bitbake qtscript" directly I get the same error.
>>
>> Here are the IMHO relevant lines of the huge log.do_compile file.
>> I have replaced the long paths by <...> for clarity.
>>
>> -- multiple warnings ---
>> ...  warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
>> ---
>>
>> -- warning ---
>> In member function 'allocatePropertyStorageInline',
>>      inlined from 'allocatePropertyStorage' at <...>/git/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.cpp:546:34:
>> <...>/git/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:679:68: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
>>       PropertyStorage newPropertyStorage = new EncodedJSValue[newSize];
>>                                                                      ^
>> <...>/git/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h: In member function 'allocatePropertyStorage':
>> <...>/recipe-sysroot/usr/include/c++/8.2.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)
>> ---
>>
>> --- error ---
>> <...>/recipe-sysroot-native/usr/bin/i686-poky-linux/../../libexec/i686-poky-linux/gcc/i686-poky-linux/8.2.0/ld: <...>/recipe-sysroot-native/usr/bin/i686-poky-linux/../../libexec/i686-poky-linux/gcc/i686-poky-linux/8.2.0/ld: DWARF error: invalid abstract instance DIE ref
>> /tmp/ccSwzRoN.ltrans0.ltrans.o: in function `ctiVMThrowTrampoline':
>> <artificial>:(.text+0x1f): undefined reference to `cti_vm_throw'
>> collect2: error: ld returned 1 exit status
>> Makefile:666: recipe for target '../../lib/libQt5Script.so.5.12.2' failed
>> ---
>>
>> Has anyone an idea what could be the problem?
>>
>
> perhaps we need to patch binutils/ld with
>
> https://patches-gcc.linaro.org/patch/9614/
>
> see
> https://sourceware.org/bugzilla/show_bug.cgi?id=23425
>
> if you could try it out and report back that would be awesome
>

Thanks for the quick response.
I'll give it a try next week, when I am back in the office.

Regards
Jochen

>> Thanks
>> Jochen
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto



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

* Re: poky thud: qtscript fails to build with undefined reference to `cti_vm_throw'
  2019-11-01 17:23 ` Khem Raj
  2019-11-01 19:44   ` Jochen Behnke
@ 2019-11-05  7:50   ` JK.Behnke
  1 sibling, 0 replies; 4+ messages in thread
From: JK.Behnke @ 2019-11-05  7:50 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/html, Size: 4470 bytes --]

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

end of thread, other threads:[~2019-11-05  7:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01  9:06 poky thud: qtscript fails to build with undefined reference to `cti_vm_throw' JK.Behnke
2019-11-01 17:23 ` Khem Raj
2019-11-01 19:44   ` Jochen Behnke
2019-11-05  7:50   ` JK.Behnke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.