[Debichem-devel] Bug#1012302: apbs: ftbfs on riscv64: error: ‘_FPU_MASK_IM’ undeclared (first use in this function)

Bo YU tsu.yubo at gmail.com
Fri Jun 3 10:28:09 BST 2022


Package: apbs
Version: 3.4.1-4
Severity: minor
Tags: ftbfs, patch
User: debian-riscv at lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv at lists.debian.org

Dear Maintainer,

The apbs package has ftbfs on riscv64:

```
/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/uninit.c:305:17: error: ‘_FPU_MASK_IM’ undeclared (first use in this function)
  305 |         cw &= ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
      |                 ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/uninit.c:305:17: note: each undeclared identifier is reported only once for each function it appears in
/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/uninit.c:305:32: error: ‘_FPU_MASK_ZM’ undeclared (first use in this function)
  305 |         cw &= ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
      |                                ^~~~~~~~~~~~
[  8%] Building C object _deps/fetk-build/punc/src/cgcode/CMakeFiles/cgcode.dir/spcgnr.c.o
/<<PKGBUILDDIR>>/debian/external_deps/fetk/punc/src/vf2c/uninit.c:305:47: error: ‘_FPU_MASK_OM’ undeclared (first use in this function)
  305 |         cw &= ~(_FPU_MASK_IM | _FPU_MASK_ZM | _FPU_MASK_OM);
      |                                               ^~~~~~~~~~~~
```

The full buildd is here:

https://buildd.debian.org/status/fetch.php?pkg=apbs&arch=riscv64&ver=3.4.1-3&stamp=1654099965&raw=0

And I refer to here[0], becasue the fpu_control.h on riscv64 does not
have these macroes are defined, so I am intend to add these macroes in
uninit.c by manual.

Tha patch attached is fix the issue and it is build ok on localy.

```
Build Architecture: riscv64
Build Type: binary
Build-Space: 436052
Build-Time: 1883
Distribution: UNRELEASED
Host Architecture: riscv64
Install-Time: 245
Job: /home/vimer/build/06/02_apbs/apbs_3.4.1-4.dsc
Lintian: warn
Machine Architecture: amd64
Package: apbs
Package-Time: 2170
Source-Version: 3.4.1-4
Space: 436052
Status: successful
Version: 3.4.1-4
--------------------------------------------------------------------------------
Finished at 2022-06-03T07:43:04Z
Build needed 00:36:10, 436052k disk space
```

Please consider to apply it in next upload and if any issue please let
me know.

PS: I noticed there is different with abps on sala repo and sid.
I have to switch the newest repo to build it:)

[0]: https://github.com/Electrostatics/FETK/issues/71
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apbs-fix-riscv64-ftbfs.patch
Type: text/x-diff
Size: 931 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debichem-devel/attachments/20220603/c560f494/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debichem-devel/attachments/20220603/c560f494/attachment.sig>


More information about the Debichem-devel mailing list