Your message dated Fri, 12 Aug 2022 13:34:14 +0000
with message-id <e1omunm-00gxwl...@fasolo.debian.org>
and subject line Bug#1014792: fixed in purelibc 1.0.6-1
has caused the Debian Bug report #1014792,
regarding purelibc: ftbfs on riscv64("error: ‘__NR_fork’ undeclared")
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.)


-- 
1014792: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014792
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: purelibc
Version: 1.0.5-1
Severity: normal
Tags: ftbfs, patch
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org

Dear purelibc Maintainer,
The package has a ftbfs issue on riscv64:

```
/<<PKGBUILDDIR>>/syscalls.c: In function ‘fork’:
/<<PKGBUILDDIR>>/syscalls.c:1026:30: error: ‘__NR_fork’ undeclared (first use 
in this function)
 1026 |         return _pure_syscall(__NR_fork);
      |                              ^~~~~~~~~
/<<PKGBUILDDIR>>/syscalls.c:1026:30: note: each undeclared identifier is 
reported only once for each function it appears in
/<<PKGBUILDDIR>>/syscalls.c: In function ‘select’:
/<<PKGBUILDDIR>>/syscalls.c:1198:30: error: ‘__NR_select’ undeclared (first use 
in this function)
 1198 |         return 
_pure_syscall(__NR_select,n,readfds,writefds,exceptfds,timeout);
      |                              ^~~~~~~~~~~
/usr/include/unistd.h: In function ‘fork’:
/<<PKGBUILDDIR>>/syscalls.c:1028:1: warning: control reaches end of non-void 
function [-Wreturn-type]
 1028 | }
      | ^
/usr/include/riscv64-linux-gnu/sys/select.h: In function ‘select’:
/<<PKGBUILDDIR>>/syscalls.c:1209:1: warning: control reaches end of non-void 
function [-Wreturn-type]
 1209 | }
```

The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=purelibc&arch=riscv64&ver=1.0.5-1&stamp=1651106695&raw=0

The patch attached is to fix the isssue and I can build riscv64 on
my locally real riscv64 hardware(Unmatched board) with it.

Please review it carefully and let me konw if you need my assistant to
do more tests, thanks.

Bo
-- 
Best Regards,

--- a/syscalls.c
+++ b/syscalls.c
@@ -1016,7 +1016,7 @@
 		return -1;
 	else
 		return child_tid;
-#elif defined(__aarch64__)
+#elif defined(__aarch64__) || defined(__riscv) && __riscv_xlen==64
 	int child_tid;
 	if (_pure_syscall(__NR_clone, NULL, CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, &child_tid) < 0)
 		return -1;
@@ -1193,10 +1193,9 @@
 #ifdef __NR_epoll_create1
 int select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout){
 #if defined(__x86_64__) || defined(__s390x__) || \
-	defined(__alpha__) || defined(__ia64__) || \
-	(defined(__riscv) && __riscv_xlen==64)
+	defined(__alpha__) || defined(__ia64__) 
 	return _pure_syscall(__NR_select,n,readfds,writefds,exceptfds,timeout);
-#elif defined(__aarch64__)
+#elif defined(__aarch64__) || defined(__riscv) && __riscv_xlen==64
 	if (timeout == NULL)
 		return pselect(n,readfds,writefds,exceptfds,NULL,NULL);
 	else {

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: purelibc
Source-Version: 1.0.6-1
Done: Andrea Capriotti <capri...@debian.org>

We believe that the bug you reported is fixed in the latest version of
purelibc, 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 1014...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrea Capriotti <capri...@debian.org> (supplier of updated purelibc 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: SHA256

Format: 1.8
Date: Fri, 12 Aug 2022 14:57:52 +0200
Source: purelibc
Architecture: source
Version: 1.0.6-1
Distribution: unstable
Urgency: medium
Maintainer: Debian VirtualSquare Team <virtualsqu...@cs.unibo.it>
Changed-By: Andrea Capriotti <capri...@debian.org>
Closes: 1014792
Changes:
 purelibc (1.0.6-1) unstable; urgency=medium
 .
   [ Renzo Davoli ]
   * New upstream release.
     + Fix ftbfs on riscv64. Closes: #1014792
       Thanks Bo YU
   [ Andrea Capriotti]
   * Bump Standards-Version to 4.6.1, no changes needed.
Checksums-Sha1:
 19b187e58064710161d52eb5e7fbe0ab9ec47bb6 2073 purelibc_1.0.6-1.dsc
 4df55bde545a8dcad575a28565f7b23abcb7fb80 27297 purelibc_1.0.6.orig.tar.gz
 b1bbea379cad16518ab2c622f8cfc38347c70a20 3472 purelibc_1.0.6-1.debian.tar.xz
 fc44bbb856f6a0e24f8b6fc5d6bf5bc9128b436e 6856 purelibc_1.0.6-1_source.buildinfo
Checksums-Sha256:
 4afeb4d9f61593cc2c9b923ce5e6555843751564f4e27e502946355a6afb13fb 2073 
purelibc_1.0.6-1.dsc
 220df8e90720cf6476692f00b6a7297dc7004d48c6d20ca3c282b1ab4f6b7b9a 27297 
purelibc_1.0.6.orig.tar.gz
 4987bce3466bac8e51f23b732747b4d39d1702c5c21f3510d647fc0a17bddc7d 3472 
purelibc_1.0.6-1.debian.tar.xz
 a05c52bd7bb77e60e885308dea0327ae4fd1418a8e7641818db960d1f1724a32 6856 
purelibc_1.0.6-1_source.buildinfo
Files:
 54eb3752008b9829ba65f21b9054a07e 2073 libs optional purelibc_1.0.6-1.dsc
 c239943df25fef04cb030e749b2c60af 27297 libs optional purelibc_1.0.6.orig.tar.gz
 d388e90c277ac8e8fb05cf5ac6d8a6ad 3472 libs optional 
purelibc_1.0.6-1.debian.tar.xz
 20488caa45b95b20e4ef7665e08c02d1 6856 libs optional 
purelibc_1.0.6-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEGvhvgTlGG2tOSvezC6/u7+lpvVQFAmL2UWoACgkQC6/u7+lp
vVTJqQ//e11PWGFpwyMMLP9Tcv8zX+eJk4KT1s20j1wNibC+HyPw3M3dDjNO5Qk4
lZ+z4W8CpuCAVL1SlrXLjgN2i3VCFknoRdzPWHT9tZAElDQGvr1/GzKq40aN6hEG
qA+bcubbwYGSzFTe647wLKniQmTSGI2KvZgmVjHh9SNiWzS1Iz2/asn4BOUiVgcr
LGfnSs0V5LadPD4lEnOKFSL8lllNZBGjmYiDZnFqMrEgc9fTi61iICCDJpbMcFOd
RkEF+/xStwg0IRTleSBh3+kF8KW6jGSxeghmfCRxYq9YPOl0t7BThgeXYznhlFMl
18OkrF41DbOKP79TFcn4g7W37Hw69ZLhHgMZ0UfAbvgCgkbJhM79L+hJ7Rfg6cfx
8t+m6AkqfmKvFqQfhf3phIfat8sINtjiCiMbupvF0ED+eCR5qcC9cLTT0L8X6TTO
dSXVZvxcgbtJiZdJFlnP4l+hx+CpIT1wg9Byt0AZtZf5EWjcplujUx4/zh9Q5s0W
hQjuGfkvyq8uvOYczcVG+IY3qExlcpNECRsQjYCtSyviUHo6zGkZAS11Fy6Fu7Yd
RSozC0kgm5Vqgf4e9A8qxiVJBOGIZsviFWtmL1anNbR7Nb8+Ny8jZxZMUzPKmoLU
hifi62Whi9DYsosyMJR3QFog6QR7AxHdaR52oyiRp+ZtDF9dPfc=
=abyQ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to