<div dir="ltr">Source: bornagain<br>Version:  22~git20241218175952.966c34a+ds3-1<div>Severity: serious<br>Tags: FTBFS, patch<br>User: <a href="mailto:debian-riscv@lists.debian.org" target="_blank">debian-riscv@lists.debian.org</a><br>Usertags: riscv64<br>X-Debbugs-Cc: <a href="mailto:debian-riscv@lists.debian.org" target="_blank">debian-riscv@lists.debian.org</a></div><div><br></div><div>Dear bornagain Maintainer,</div><div> The package bornagain build failed on riscv.The full buildd log below:</div><div>```</div><div><pre style="color:rgb(0,0,0)">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/<a href="http://GaussianBeams.0.int">GaussianBeams.0.int</a>, 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/<a href="http://GaussianBeams.1.int">GaussianBeams.1.int</a>, 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/<a href="http://GaussianBeams.2.int">GaussianBeams.2.int</a>, 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/<a href="http://GaussianBeams.0.int">GaussianBeams.0.int</a> /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/<a href="http://GaussianBeams.0.int">GaussianBeams.0.int</a>
359: cp -f /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/test_output/MiniExamples/specular/<a href="http://GaussianBeams.1.int">GaussianBeams.1.int</a> /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/<a href="http://GaussianBeams.1.int">GaussianBeams.1.int</a>
359: cp -f /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/test_output/MiniExamples/specular/<a href="http://GaussianBeams.2.int">GaussianBeams.2.int</a> /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/<a href="http://GaussianBeams.2.int">GaussianBeams.2.int</a>
359: cp -f /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/obj-riscv64-linux-gnu/test_output/MiniExamples/specular/<a href="http://GaussianBeams.3.int">GaussianBeams.3.int</a> /build/reproducible-path/bornagain-22~git20241218175952.966c34a+ds3/Tests/ReferenceData/MiniExamples/specular/<a href="http://GaussianBeams.3.int">GaussianBeams.3.int</a>
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</pre></div><div>```</div><div>The full buildd log is here:</div><div><a href="https://buildd.debian.org/status/fetch.php?pkg=bornagain&arch=riscv64&ver=22%7Egit20241218175952.966c34a%2Bds3-1&stamp=1736040529&raw=0">https://buildd.debian.org/status/fetch.php?pkg=bornagain&arch=riscv64&ver=22%7Egit20241218175952.966c34a%2Bds3-1&stamp=1736040529&raw=0</a></div><div><br></div><div>My solution to this issue:</div><div>

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.</div><div>Gui-Yue</div><div>Best Regards</div></div>