Your message dated Mon, 21 Nov 2022 15:05:52 +0000
with message-id <e1ox8mq-00fxem...@fasolo.debian.org>
and subject line Bug#1011502: fixed in codeblocks 20.03+svn13046-0.1
has caused the Debian Bug report #1011502,
regarding codeblocks: ftbfs on riscv64 arch (error: #error "Unknown CPU
architecture")
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1011502: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011502
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: codeblocks
Version: 20.03-3.1
Severity: normal
Tags: ftbfs, patch
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org
Dear Maintainer,
The codeblocks package has a ftbfs issue on riscv64 arch:
```
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../src/include
-I/usr/lib/riscv64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64
-DWXUSINGDLL -D__WXGTK__ -pthread -I/usr/include/glib-2.0 -I/usr/lib/riscv64-linux-gnu/glib-2.0/include
-I../../src/include/scripting/include -I../../src/include -I../../src/sdk/wxscintilla/include
-I../../src/include/scripting/bindings -I../../src/include/scripting/sqplus -I../../src/include/mozilla_chardet
-I../../src/include/mozilla_chardet/mfbt -I../../src/include/mozilla_chardet/nsprpub/pr/include
-I../../src/include/mozilla_chardet/xpcom -I../../src/include/mozilla_chardet/xpcom/base
-I../../src/include/mozilla_chardet/xpcom/glue -DCB_AUTOCONF -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG
-DBUILD_DATE=\"2021-11-08\" -DBUILD_TIME=\"13:51:13\" -DCB_PRECOMP -DPIC -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security
-std=gnu++14 -Winvalid-pch -fPIC -fexceptions -c mozilla_chardet/src/nsCharSetProber.cpp -fPIC -DPIC -o
mozilla_chardet/src/.libs/nsCharSetProber.o
In file included from
../../src/include/mozilla_chardet/nsprpub/pr/include/prcpucfg.h:40,
from
../../src/include/mozilla_chardet/nsprpub/pr/include/prtypes.h:26,
from
../../src/include/mozilla_chardet/nsprpub/pr/include/prmem.h:14,
from mozilla_chardet/src/nsCharSetProber.cpp:7:
../../src/include/mozilla_chardet/nsprpub/pr/include/prcpucfg_linux.h:919:2: error:
#error "Unknown CPU architecture"
919 | #error "Unknown CPU architecture"
| ^~~~~
In file included from
../../src/include/mozilla_chardet/nsprpub/pr/include/prmem.h:14,
from mozilla_chardet/src/nsCharSetProber.cpp:7:
../../src/include/mozilla_chardet/nsprpub/pr/include/prtypes.h:263:2: error:
#error No suitable type for PRInt8/PRUint8
...
```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=codeblocks&arch=riscv64&ver=20.03-3.1&stamp=1636403405&raw=0
The patch attached is to fix the issue and it is ok to build on riscv64:
```
Build Architecture: riscv64
Build Type: binary
Build-Space: 4754304
Build-Time: 10228
Distribution: unstable
Host Architecture: riscv64
Install-Time: 198
Job: /home/vimer/05/30_codeblocks/codeblocks_20.03-3.1.dsc
Lintian: warn
Machine Architecture: riscv64
Package: codeblocks
Package-Time: 10545
Source-Version: 20.03-3.1
Space: 4754304
Status: successful
Version: 20.03-3.1
```
Please consider to apply it in next upload, thank you~
BTW, I am fail to register account for codeblacks on
https://forums.codeblocks.org/index.php/board,7.0.html
to forward the patch for them. Please to let them know
if it is convenient for you. thanks again~
Bo
--
Best Regards,
fix ftbfs on riscv64 arch.
refer to:
https://openbsdmailbox.blogspot.com/2022/04/let-codeblocks-build-on-riscv64.html
--- a/src/include/mozilla_chardet/nsprpub/pr/include/prcpucfg_linux.h
+++ b/src/include/mozilla_chardet/nsprpub/pr/include/prcpucfg_linux.h
@@ -643,6 +643,52 @@
#define PR_BYTES_PER_WORD_LOG2 3
#define PR_BYTES_PER_DWORD_LOG2 3
+#elif defined(__riscv) && __riscv_xlen == 64
+
+#define IS_LITTLE_ENDIAN 1
+#undef IS_BIG_ENDIAN
+#define IS_64
+
+#define PR_BYTES_PER_BYTE 1
+#define PR_BYTES_PER_SHORT 2
+#define PR_BYTES_PER_INT 4
+#define PR_BYTES_PER_INT64 8
+#define PR_BYTES_PER_LONG 8
+#define PR_BYTES_PER_FLOAT 4
+#define PR_BYTES_PER_DOUBLE 8
+#define PR_BYTES_PER_WORD 8
+#define PR_BYTES_PER_DWORD 8
+
+#define PR_BITS_PER_BYTE 8
+#define PR_BITS_PER_SHORT 16
+#define PR_BITS_PER_INT 32
+#define PR_BITS_PER_INT64 64
+#define PR_BITS_PER_LONG 64
+#define PR_BITS_PER_FLOAT 32
+#define PR_BITS_PER_DOUBLE 64
+#define PR_BITS_PER_WORD 64
+
+#define PR_BITS_PER_BYTE_LOG2 3
+#define PR_BITS_PER_SHORT_LOG2 4
+#define PR_BITS_PER_INT_LOG2 5
+#define PR_BITS_PER_INT64_LOG2 6
+#define PR_BITS_PER_LONG_LOG2 6
+#define PR_BITS_PER_FLOAT_LOG2 5
+#define PR_BITS_PER_DOUBLE_LOG2 6
+#define PR_BITS_PER_WORD_LOG2 6
+
+#define PR_ALIGN_OF_SHORT 2
+#define PR_ALIGN_OF_INT 4
+#define PR_ALIGN_OF_LONG 8
+#define PR_ALIGN_OF_INT64 8
+#define PR_ALIGN_OF_FLOAT 4
+#define PR_ALIGN_OF_DOUBLE 8
+#define PR_ALIGN_OF_POINTER 8
+#define PR_ALIGN_OF_WORD 8
+
+#define PR_BYTES_PER_WORD_LOG2 3
+#define PR_BYTES_PER_DWORD_LOG2 3
+
#elif defined(__hppa__)
#undef IS_LITTLE_ENDIAN
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: codeblocks
Source-Version: 20.03+svn13046-0.1
Done: Bo YU <tsu.y...@gmail.com>
We believe that the bug you reported is fixed in the latest version of
codeblocks, 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 1011...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Bo YU <tsu.y...@gmail.com> (supplier of updated codeblocks 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 ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 20 Nov 2022 15:12:29 +0800
Source: codeblocks
Architecture: source
Version: 20.03+svn13046-0.1
Distribution: unstable
Urgency: medium
Maintainer: David Paleino <da...@debian.org>
Changed-By: Bo YU <tsu.y...@gmail.com>
Closes: 1011502 1019830
Changes:
codeblocks (20.03+svn13046-0.1) unstable; urgency=medium
.
* Non-maintainer upload.
* New upstream version 20.03+svn13046. (Closes: #1019830)
* Upstream support riscv64. (Closes: #1011502)
* d/patch: add revision.m4
* adjust usr/share/appdata/codeblocks.appdata.xml
to usr/share/metainfo/codeblocks.appdata.xml
* add source/lintian-overrides
* rebase d/patch
Checksums-Sha1:
39403a36612d701aaaf7ad4129f4c37e5c1e632a 2381 codeblocks_20.03+svn13046-0.1.dsc
dbb3183c52be4b0c3616fcf7ec101cf699d2b2c6 21611012
codeblocks_20.03+svn13046.orig.tar.gz
f34fd8441b4f9863680d1ef0973efcc921388d7b 26308
codeblocks_20.03+svn13046-0.1.debian.tar.xz
a820cac2c35c1c07a53d2d6ba5b0cdfb7edb723d 14355
codeblocks_20.03+svn13046-0.1_source.buildinfo
Checksums-Sha256:
decf7bc8b9fefa7dd150164f863af7cb7a409b9e8c96cd0857bb5a71065d513c 2381
codeblocks_20.03+svn13046-0.1.dsc
e513233a898cd233b6fb0bdba62a43bbdd156d642a815b34f8be7c0209b23f39 21611012
codeblocks_20.03+svn13046.orig.tar.gz
938fed13160d19862731acd46f706239ef065d8002eb86a1dffc183365342d75 26308
codeblocks_20.03+svn13046-0.1.debian.tar.xz
a21939cccbae43b6d38a3797c473a6353e89bc23ee73fd57504afd68837008a8 14355
codeblocks_20.03+svn13046-0.1_source.buildinfo
Files:
f9676e313335817077b074dbaf67cb55 2381 x11 optional
codeblocks_20.03+svn13046-0.1.dsc
2fbcedbf3190c6a21d132a9afd82f1fd 21611012 x11 optional
codeblocks_20.03+svn13046.orig.tar.gz
24cc038fa4c4f6a1e830ce84ec647a14 26308 x11 optional
codeblocks_20.03+svn13046-0.1.debian.tar.xz
505e9234d68fecea155403a22b3b608e 14355 x11 optional
codeblocks_20.03+svn13046-0.1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmN7kLEQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFPaDC/4wQ+g9hDQ9MtebHg/Ko3RGpkYlB53d2hFL
01+2cK4dDBU6KjTp9bY3owwin9RLYjcWyrZJzpB/3e9zRyARcs2xX6mRefsacsmu
e+bsou6DJSAUGCRJz2YfE5gKb7BaClQjDE7GKVn5yzdFnyB77u+h35MMkzMI+u19
3z3RFYLyua8Ywh2NkyWwmeZ1XlBIy9Je6SZvFxnUUOYg/q+pB89iUest11ipob7P
hBD8E+tNeRE3WRLcT1Iei2g3r/dLM5qCYibSo2GGAuWjiy5ZtHOOzpfhzaUOq9In
FS1Yc9DZ21nLrgrX+aCZck8agi/bLRWnw4whLXBfz1Xe3TI3Ib8366YJoDw2tI0S
+BNY3tODSoK1gI1AFH1oG42HAAlZpipFct9BY6ACAkThGXsa3fAZwMbaZ31s8vXp
v5Ttr410eNzoHmQ3xo8FwN97sYAAAysym0R8fTLBuPUfQ0RbOnk3Wc5VuLPGA7s5
aEh3bZmRSicAJirekqZZe3rl6/DmlHY=
=qyrX
-----END PGP SIGNATURE-----
--- End Message ---