#1064339 qtscript-opensource-src: FTBFS: Please add support for loongarch64

#1064339#5
Date:
2024-02-20 07:00:04 UTC
From:
To:
Dear maintainers,

We need to add architectural support for qtscript-opensource-src.
Otherwise it will build failures .

Please consider the patch I have attached.
Would it be possible to include the support for LoongArch in the next
upload?
If you have any questions, you can contact me at any time.


/usr/include/c++/13/bits/unique_ptr.h:65:28: note: declared here
    65 |   template<typename> class auto_ptr;
       |                            ^~~~~~~~
../3rdparty/javascriptcore/JavaScriptCore/wtf/OwnPtr.h:61:25: warning:
‘template<class> class std::auto_ptr’ is deprecated: use
'std::unique_ptr' instead [-Wdeprecated-declarations]
    61 |         void adopt(std::auto_ptr<ValueType> autoPtr) {
ASSERT(!autoPtr.get() || m_ptr != autoPtr.get()); deleteOwnedPtr(m_ptr);
m_ptr = autoPtr.release(); }
       |                         ^~~~~~~~
/usr/include/c++/13/bits/unique_ptr.h:65:28: note: declared here
    65 |   template<typename> class auto_ptr;
       |                            ^~~~~~~~
../3rdparty/javascriptcore/JavaScriptCore/wtf/VectorTraits.h:84:30:
warning: ‘template<class> class std::auto_ptr’ is deprecated: use
'std::unique_ptr' instead [-Wdeprecated-declarations]
    84 |     struct VectorTraits<std::auto_ptr<P> > :
SimpleClassVectorTraits { };
       |                              ^~~~~~~~
/usr/include/c++/13/bits/unique_ptr.h:65:28: note: declared here
    65 |   template<typename> class auto_ptr;
       |                            ^~~~~~~~
In file included from
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSCell.h:28:
../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));
       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -c -include .pch/Qt5Script -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 
-fno-strict-aliasing -Wall -Wreturn-type -Wcast-align -Wchar-subscripts 
-Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare 
-Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self 
-fno-stack-protector -g -O2 
-ffile-prefix-map=/home/loongson/songd/qt/qtscript-opensource-src/qtscript-opensource-src-5.15.10+dfsg=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++1y 
-fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions 
-D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_FOREACH 
-DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DJSC=QTJSC 
-Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex 
-Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_NO_USING_NAMESPACE 
-DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DBUILDING_QT__=1 
-DWTF_USE_ACCELERATED_COMPOSITING -DNDEBUG -DLOG_DISABLED=1 
-DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF 
-DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DJS_NO_EXPORT 
-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SCRIPT_LIB 
-DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS 
-DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS 
-DQT_DISABLE_DEPRECATED_BEFORE=0x050000 
-DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS 
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB 
-I. -I../3rdparty/javascriptcore/JavaScriptCore 
-I../3rdparty/javascriptcore 
-I../3rdparty/javascriptcore/JavaScriptCore/assembler 
-I../3rdparty/javascriptcore/JavaScriptCore/bytecode 
-I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler 
-I../3rdparty/javascriptcore/JavaScriptCore/debugger 
-I../3rdparty/javascriptcore/JavaScriptCore/interpreter 
-I../3rdparty/javascriptcore/JavaScriptCore/jit 
-I../3rdparty/javascriptcore/JavaScriptCore/parser 
-I../3rdparty/javascriptcore/JavaScriptCore/pcre 
-I../3rdparty/javascriptcore/JavaScriptCore/profiler 
-I../3rdparty/javascriptcore/JavaScriptCore/runtime 
-I../3rdparty/javascriptcore/JavaScriptCore/wrec 
-I../3rdparty/javascriptcore/JavaScriptCore/wtf 
-I../3rdparty/javascriptcore/JavaScriptCore/wtf/symbian 
-I../3rdparty/javascriptcore/JavaScriptCore/wtf/unicode 
-I../3rdparty/javascriptcore/JavaScriptCore/yarr 
-I../3rdparty/javascriptcore/JavaScriptCore/API 
-I../3rdparty/javascriptcore/JavaScriptCore/ForwardingHeaders 
-I../3rdparty/javascriptcore/JavaScriptCore/generated 
-I/home/loongson/songd/qt/qtscript-opensource-src/qtscript-opensource-src-5.15.10+dfsg/src/3rdparty/javascriptcore/WebKit/qt/Api 
-I../3rdparty/javascriptcore/JavaScriptCore/pcre 
-I/home/loongson/songd/qt/qtscript-opensource-src/qtscript-opensource-src-5.15.10+dfsg/src/3rdparty/javascriptcore/JavaScriptCore/tmp 
-I. -Iparser -I../../include -I../../include/QtScript 
-I../../include/QtScript/5.15.10 
-I../../include/QtScript/5.15.10/QtScript 
-I/usr/include/loongarch64-linux-gnu/qt5/QtCore/5.15.10 
-I/usr/include/loongarch64-linux-gnu/qt5/QtCore/5.15.10/QtCore 
-I/usr/include/loongarch64-linux-gnu/qt5 
-I/usr/include/loongarch64-linux-gnu/qt5/QtCore -I.moc 
-I/usr/lib/loongarch64-linux-gnu/qt5/mkspecs/linux-g++ -o 
obj/release/JSCallbackConstructor.o
../3rdparty/javascriptcore/JavaScriptCore/API/JSCallbackConstructor.cpp
In file included from
../3rdparty/javascriptcore/JavaScriptCore/interpreter/Register.h:32,
                  from
../3rdparty/javascriptcore/JavaScriptCore/runtime/ArgList.h:25,
                  from
../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:26,
                  from
../3rdparty/javascriptcore/JavaScriptCore/API/JSCallbackConstructor.h:30,
                  from
../3rdparty/javascriptcore/JavaScriptCore/API/JSCallbackConstructor.cpp:27:
../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));
       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
../3rdparty/javascriptcore/JavaScriptCore/wtf/VectorTraits.h:24,
                  from
../3rdparty/javascriptcore/JavaScriptCore/interpreter/Register.h:35:
../3rdparty/javascriptcore/JavaScriptCore/wtf/OwnPtr.h: At global scope:
../3rdparty/javascriptcore/JavaScriptCore/wtf/OwnPtr.h:43:21: warning:
‘template<class> class std::auto_ptr’ is deprecated: use
'std::unique_ptr' instead [-Wdeprecated-declarations]
    43 |         OwnPtr(std::auto_ptr<ValueType> autoPtr) :
m_ptr(autoPtr.release()) { }
       |                     ^~~~~~~~
In file included from /usr/include/c++/13/memory:78,
                  from
/usr/include/loongarch64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:71,
                  from
/usr/include/loongarch64-linux-gnu/qt5/QtCore/qsharedpointer.h:48,
                  from
/usr/include/loongarch64-linux-gnu/qt5/QtCore/qdebug.h:54,
                  from
/usr/include/loongarch64-linux-gnu/qt5/QtCore/qcborcommon.h:45,
                  from
/usr/include/loongarch64-linux-gnu/qt5/QtCore/qcborvalue.h:45,
                  from
/usr/include/loongarch64-linux-gnu/qt5/QtCore/qcborarray.h:43,
                  from
/usr/include/loongarch64-linux-gnu/qt5/QtCore/QtCore:38,
                  from ../../include/QtScript/QtScriptDepends:3:
/usr/include/c++/13/bits/unique_ptr.h:65:28: note: declared here
    65 |   template<typename> class auto_ptr;
       |                            ^~~~~~~~
../3rdparty/javascriptcore/JavaScriptCore/wtf/OwnPtr.h:61:25: warning:
‘template<class> class std::auto_ptr’ is deprecated: use
'std::unique_ptr' instead [-Wdeprecated-declarations]
    61 |         void adopt(std::auto_ptr<ValueType> autoPtr) {
ASSERT(!autoPtr.get() || m_ptr != autoPtr.get()); deleteOwnedPtr(m_ptr);
m_ptr = autoPtr.release(); }
       |                         ^~~~~~~~
/usr/include/c++/13/bits/unique_ptr.h:65:28: note: declared here
    65 |   template<typename> class auto_ptr;
       |                            ^~~~~~~~
../3rdparty/javascriptcore/JavaScriptCore/wtf/VectorTraits.h:84:30:
warning: ‘template<class> class std::auto_ptr’ is deprecated: use
'std::unique_ptr' instead [-Wdeprecated-declarations]
    84 |     struct VectorTraits<std::auto_ptr<P> > :
SimpleClassVectorTraits { };
       |                              ^~~~~~~~
/usr/include/c++/13/bits/unique_ptr.h:65:28: note: declared here
    65 |   template<typename> class auto_ptr;
       |                            ^~~~~~~~
make[3]: *** [Makefile:1515:obj/release/JSBase.o] 错误 1
make[3]: *** 正在等待未完成的任务....
make[3]: *** [Makefile:1632:obj/release/JSCallbackConstructor.o] 错误 1
make[3]:
离开目录“/home/loongson/songd/qt/qtscript-opensource-src/qtscript-opensource-src-5.15.10+dfsg/src/script”
make[2]: *** [Makefile:48:sub-script-make_first-ordered] 错误 2
make[2]:
离开目录“/home/loongson/songd/qt/qtscript-opensource-src/qtscript-opensource-src-5.15.10+dfsg/src”
make[1]: *** [Makefile:49:sub-src-make_first] 错误 2
make[1]:
离开目录“/home/loongson/songd/qt/qtscript-opensource-src/qtscript-opensource-src-5.15.10+dfsg”
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:13:binary] 错误 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
loongson@loongson:~/songd/qt/qtscript-opensource-src/qtscript-opensource-src-5.15.10+dfsg$

#1064339#8
Date:
2024-02-25 20:52:43 UTC
From:
To:
Hello,

Bug #1064339 in qtscript reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/qt-kde-team/qt/qtscript/-/commit/c8bb0856492fa12796a5018eb48f792390da34a5
------------------------------------------------------------------------
Add a patch to support loongarch64.

Closes: #1064339.
Thanks Ding Song!
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1064339

#1064339#15
Date:
2024-02-26 01:24:54 UTC
From:
To:
Thank you.


在 2024/2/26 上午4:52, Dmitry Shachnev 写道:

#1064339#20
Date:
2024-02-26 01:48:14 UTC
From:
To:
Thank you.

On Sun, 25 Feb 2024 20:52:43 +0000 Dmitry Shachnev wrote:

 > Control: tag -1 pending
 >
 > Hello,
 >
 > Bug #1064339 in qtscript reported by you has been fixed in the
 > Git repository and is awaiting an upload. You can see the commit
 > message below and you can check the diff of the fix at:
 >
 >
https://salsa.debian.org/qt-kde-team/qt/qtscript/-/commit/c8bb0856492fa12796a5018eb48f792390da34a5
 >
 > ------------------------------------------------------------------------
 > Add a patch to support loongarch64.
 >
 > Closes: #1064339.
 > Thanks Ding Song!
 > ------------------------------------------------------------------------
 >
 > (this message was generated automatically)
 > --
 > Greetings
 >
 > https://bugs.debian.org/1064339
 >
 >

#1064339#25
Date:
2024-02-26 08:44:50 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
qtscript-opensource-src, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1064339@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitry Shachnev <mitya57@debian.org> (supplier of updated qtscript-opensource-src package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 26 Feb 2024 11:19:15 +0300
Source: qtscript-opensource-src
Architecture: source
Version: 5.15.10+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Dmitry Shachnev <mitya57@debian.org>
Closes: 1046104 1064339
Changes:
 qtscript-opensource-src (5.15.10+dfsg-3) unstable; urgency=medium
 .
   * Add a patch to support loongarch64 (closes: #1064339, thanks Ding Song).
   * Add debian/clean file (closes: #1046104).
Checksums-Sha1:
 f8f6c8bc0073b79f521f13c1fd30ead42b587219 2902 qtscript-opensource-src_5.15.10+dfsg-3.dsc
 7cc4c3e8a6d143162f662545179f0478c0dc94d2 16472 qtscript-opensource-src_5.15.10+dfsg-3.debian.tar.xz
 9a2ff91f44257caaf4dc6a20871ce1fb594b0f84 11973 qtscript-opensource-src_5.15.10+dfsg-3_source.buildinfo
Checksums-Sha256:
 44dfb6a685cddef5dd5c81a6189646c9ed412f29e3d917fe844eba16f72aaae6 2902 qtscript-opensource-src_5.15.10+dfsg-3.dsc
 229c0073ac8814c47320faaae58d96551f3d4e315eadea87f3544d782f5bf679 16472 qtscript-opensource-src_5.15.10+dfsg-3.debian.tar.xz
 9a49e1f171820942d074e4c4bde70c6bbb25ea11073fa00baf7fcbe714ab708b 11973 qtscript-opensource-src_5.15.10+dfsg-3_source.buildinfo
Files:
 60d8c3710b64faefaea60376c0799aaf 2902 libs optional qtscript-opensource-src_5.15.10+dfsg-3.dsc
 2160b4eff69b038e1a156322e9363e94 16472 libs optional qtscript-opensource-src_5.15.10+dfsg-3.debian.tar.xz
 d9920d25421185af8f1c4dd219602d30 11973 libs optional qtscript-opensource-src_5.15.10+dfsg-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEEq2sdvrA0LydXHe1qsmYUtFL0RrYFAmXcSisTHG1pdHlhNTdA
ZGViaWFuLm9yZwAKCRCyZhS0UvRGtmU+D/9S2z8nzGD4Phq1EjLBv7saID0D+Fsn
y4mEodFoHeiTForkdxC3bz6N2dyvDOHWNNcZqslYthvD9rVkH0Lw2PNp/C34jYjF
Rk5qKpqK4JauNl3NNGLW9QoYb/JU36+xwuYXXjbPwSBN7SezF20wiSbt9uDXCafV
c7s5x9sB7AYKVXcO3g44u1vUbzos2VanGwh43jKPpr6mMSBOmnOPNsBJ7unvQsPZ
bM9ZCZBiPnAMiEeIYGvCzUzsCgrErSC+fxWtT9991H1064iMMiNx7PemOs10cCOW
qxd14tarWfyXZp/QmAuU3rw4+GEDlTkAioTzR9MHoPbUf0AnoNBD5QlEN+XALNDn
vNBEP1RU7aibL9tX2qaHcJFOrnd4PiPYADUHT4MmAgx33FZn+1Sbv+mlpqRCKqnF
YK1vWXgcQbbe0zdi1Kce1RX15PfSO1tdAF+jjAvdhHZPhDyBU4lfNMG60elDN1jP
Q9it/r4mmSms2KDO2npk9Z9woBLq9nQA4B23omzEBzzMz+MQjh/OsjzHesRibfCU
om+kQP1gC7E6WlZlBd8NCUvh9ClYitxanlduIq1ud/Sz6tVugueYo4314b15lqXt
tY13BLvJybChA0eUF2eJ9bdIyt2xG/xiggzLztG3zyP5maxFkH6JOlLuRcvZtbwZ
rWR7hOtYPd+UHg==
=Wmmb
-----END PGP SIGNATURE-----