Bug 46803

Summary: qt5-script: ошибка сборки на LoongArch
Product: Sisyphus Reporter: Alexey Sheplyakov <asheplyakov>
Component: qt5-scriptAssignee: Sergey V Turchin <zerg>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: asheplyakov, iv, sin, zerg
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 45802    
Attachments:
Description Flags
патч none

Description Alexey Sheplyakov 2023-07-07 14:37:30 MSK
In file included from ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Register.h:32,
                 from ../3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.h:35:
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h: In constructor 'QTJSC::JSValue::JSValue(QTJSC::JSCell*)':
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h:493:28: error: cast from 'QTJSC::JSCell*' to 'int32_t' {aka 'int'} loses precision [-fpermissive]
  493 |         u.asBits.payload = reinterpret_cast<int32_t>(ptr);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h: In constructor 'QTJSC::JSValue::JSValue(const QTJSC::JSCell*)':
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h:505:28: error: cast from 'QTJSC::JSCell*' to 'int32_t' {aka 'int'} loses precision [-fpermissive]
  505 |         u.asBits.payload = reinterpret_cast<int32_t>(const_cast<JSCell*>(ptr));
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:5353: obj/release/JITStubs.o] Error 1
Comment 1 Alexey Sheplyakov 2023-07-07 14:56:31 MSK
Created attachment 13740 [details]
патч
Comment 2 Repository Robot 2023-07-13 14:41:46 MSK
qt5-script-5.15.10-alt1 -> sisyphus:

 Mon Jul 10 2023 Sergey V Turchin <zerg@altlinux> 5.15.10-alt1
 - new version
 - support LoongArch architecture (lp64d ABI) (thanks asheplyakov@alt) (closes: #46803)