Hey Yue TL:DR; I pushed version 1.0.155 upstream tarball and updated the changelog in salsa. I told my sponsor I fixed most of these but didn't get any response yet. Not sure if I can update the build myself, this is my first package and it was my first build.
On Wed, 2025-03-19 at 20:21 +0800, Yue Gui wrote: > > Dear feenox maintainer, That would be me! > The package feenox build failed on almost all arch.The crucial buildd > log below: > ``` > FAIL: tests/expressions_constants.sh > ==================================== > > expr.fee 1+1 ... ok > expr.fee 1+3 ... ok > expr.fee 1+2*3 ... ok > expr.fee (1+2)*3 ... ok > expr.fee (-2^3) ... ok > expr.fee (-1-(-1)) ... ok > expr.fee (-1+(-1)) ... ok > expr.fee (-1+(+1)) ... ok > expr.fee (-1-(+1)) ... ok > expr.fee 1/3 ... ok > expr.fee (1+1/1e6)^1e6 ... ok > expr.fee 1/((1+1/1e6)^1e6) ... ok > expr.fee ((1+1/1e6)^1e6)^(-1) ... ok > expr.fee 2^0.5 ... ok > expr.fee 2^(1/2) ... ok > expr.fee sqrt(5)+(-2*(-2))*(-1) ... ok > expr.fee (1+sqrt(5))/2 ... ok > expr.fee pi ... ok > expr.fee pi/2 ... ok > expr.fee 2*pi ... ok > expr.fee pi^2 ... ok > expr.fee pi^0.5 ... ok > expr.fee sqrt(2) ... ok > expr.fee sqrt(3) ... ok > expr.fee sqrt(pi) ... ok > expr.fee sqrt(pi^2) ... ok > expr.fee sqrt(pi)^2 ... ok > expr.fee atan2(exp(-1/2),log(sqrt(2))) ... ok > expr.fee mod(sinh(1+1^2),pi) ... ok > expr.fee max(1,sqrt(2),cos(acos(2/3)),floor(1.9)) ... ok > expr.fee if(sqrt(10)>pi,10,pi^2) ... ok > expr.fee sin(1) ... ok > expr.fee sqrt(1-cos(1)^2) ... ok > expr.fee sin(1)^2+cos(1)^2 ... ok > expr.fee 1/0 ... ok > expr.fee (-1)^0.5 ... wrong, expected '-nan' and got 'nan' > FAIL tests/expressions_constants.sh (exit status: 1) Yeah, I saw this. The issue is that amd64 returns -nan but all others return nan. I skipped this tests in the new version. I can ask for uname -m and see if I need to expect the minus or not, but will do this in a later version. > FAIL: tests/los-alamos.sh > ========================= > > la-p01-PUa-1-0-IN.fee ... ok > la-p02-PUa-1-0-SL.fee ... ok > la-p03-PUa-H2O_1-1-0-SL.fee ... ok > la-p04-PUa-H2O_0.5-1-0-SL.fee ... ok > la-p05-PUb-1-0-IN.fee ... ok > la-p06-PUb-1-0-SL.fee ... ok > la-p07-PUb-1-0-CY.fee ... ok > la-p08-PUb-1-0-SP.fee ... ok > la-p09-PUb-H2O_1-1-0-CY.fee ... ok > la-p10-PUb-H2O_10-1-0-CY.fee ... ok > la-p47-U-2-0-IN.fee ... ok > la-p48-U-2-0-SL.fee ... ok > la-p49-U-2-0-SP.fee ... wrong, expected zero and got '0.00166048' > FAIL tests/los-alamos.sh (exit status: 1) The tolerance was 1e-3, I increased it to 2e-3 in the commit you mention below. > > My solution to this issue: > The build failed due to three important tests not passing, namely > tests/los-alamos.sh, tests/expressions_constants.sh, and tests/ray- > effect.sh. I referred to the handling approach in the upstream- > related files > (https://github.com/seamplex/feenox/commit/c222eb3f236f0635a60b6c441d > 8723e156a4cfcd#diff- > 49f9f63db61e3d02d7075941790e3b31a27617c7bcfb48c51845b02fa4a8f666; > https://github.com/seamplex/feenox/commit/b3b4312d141e133fae9bfdced98 > 883a25cba9d35#diff- > e567837620f74415f49203a714c25ba19d426c1f8554d029b2c24932137a3f15) > and, combined with the build logs, created a patch to modify these > tests. I tested this solution, and it works effectively. The > debpatch is in the attachment.Please let me know whether this > solution can be accepted. Yes, although updating to 1.0.155 should also fix those. -- jeremy