[Debian-pan-maintainers] Bug#1092152: bornagain:FTBFS:build failed on riscv64 (Example.specular.GaussianBeams.persist test failed)

Yue Gui yuemeng.gui at gmail.com
Sun Jan 5 12:16:24 GMT 2025


Source: bornagain
Version:  22~git20241218175952.966c34a+ds3-1
Severity: serious
Tags: FTBFS, patch
User: debian-riscv at lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv at lists.debian.org

Dear bornagain Maintainer,
 The package bornagain build failed on riscv.The full buildd log below:
```

FAILED: relative deviation of dat from ref is 0.000429572, above given
threshold 2e-10
359: /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/test_output/MiniExamples/specular/GaussianBeams
vs /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/GaussianBeams.0.int,
tol=2e-10 => ok=True
359: /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/test_output/MiniExamples/specular/GaussianBeams
vs /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/GaussianBeams.1.int,
tol=2e-10 => ok=True
359: /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/test_output/MiniExamples/specular/GaussianBeams
vs /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/GaussianBeams.2.int,
tol=2e-10 => ok=False
359: To overwrite references:
359: cp -f /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/test_output/MiniExamples/specular/GaussianBeams.0.int
/build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/GaussianBeams.0.int
359: cp -f /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/test_output/MiniExamples/specular/GaussianBeams.1.int
/build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/GaussianBeams.1.int
359: cp -f /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/test_output/MiniExamples/specular/GaussianBeams.2.int
/build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/GaussianBeams.2.int
359: cp -f /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/test_output/MiniExamples/specular/GaussianBeams.3.int
/build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/GaussianBeams.3.int
359: Traceback (most recent call last):
359:   File "/build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/auto/MiniExamples/specular/GaussianBeams.py",
line 37, in <module>
359:     bp.plot_multicurve(results, **plotargs)
359:   File "/build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/py/src/bornagain/ba_plot.py",
line 549, in plot_multicurve
359:     save_results(pfields, _datfile,
359:   File "/build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/py/src/bornagain/ba_plot.py",
line 279, in save_results
359:     raise Exception("No agreement between result and reference")
359: Exception: No agreement between result and reference
359/684 Test #359: Example.specular.GaussianBeams.persist
................................***Failed   29.21 sec
test 360
        Start 360: Example.specular.MagneticLayer.persist

```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=bornagain&arch=riscv64&ver=22%7Egit20241218175952.966c34a%2Bds3-1&stamp=1736040529&raw=0

My solution to this issue:
The issue arises because the tests for GaussianBeams on the RISC-V
architecture exceed the acceptable threshold. My solution is to slightly
increase the threshold to ensure the tests pass on the RISC-V
architecture.The debpatch is in the attachment.Please let me know whether
this solution can be accepted.
Gui-Yue
Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-pan-maintainers/attachments/20250105/ad3d1926/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raise_GaussianBeams_test_threshold.patch
Type: application/octet-stream
Size: 2181 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-pan-maintainers/attachments/20250105/ad3d1926/attachment.obj>


More information about the Debian-pan-maintainers mailing list