Summary: | dev-db/sqlite-3.20.1: date.test date-2.2c-* tests fail on x86 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas Deutschmann (RETIRED) <whissi> |
Component: | Current packages | Assignee: | Arfrever Frehtes Taifersar Arahesis <arfrever.fta> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | proxy-maint, slyfox, toralf |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge-info.txt dev-db:sqlite-3.21.0:20171130-003752.log emerge-history.txt environment etc.portage.tbz2 logs.tbz2 temp.tbz2 |
Description
Thomas Deutschmann (RETIRED)
![]() I think test fails due to slight precision variation caused by FPU being 80-bit internally. If we add the following to CFLAGS, then: -mfpmath=387 (default on i686): test fails -mfpmath=sse (default on x86_64): test passes Quick reproduce howto: $ ./configure CFLAGS="-O2 -m32 -mfpmath=387" LDFLAGS=-m32 $ make testfixture $ ./testfixture test/date.test Sent email to sqlite-users@mailinglists.sqlite.org with subject "sqlite-3.20.1: test/date.test fails on i686 target due to FPU wibbles" as a bug report. *** Bug 632002 has been marked as a duplicate of this bug. *** Fixed: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ab48e6c1f373ae3f56773a1b9fc31845576d705 In SQLite 3.21.0 on x86-32 with default CFLAGS, date-2.2c-* tests still fail and 3 new tests (e_expr-32.2.5, e_expr-32.2.6, e_expr-32.2.8) fail: ! e_expr-32.2.5 expected: [integer 9223372036854775807] ! e_expr-32.2.5 got: [real 9.22337203685478e+18] ! e_expr-32.2.6 expected: [integer 9223372036854775807] ! e_expr-32.2.6 got: [real 9.22337203685478e+18] ! e_expr-32.2.8 expected: [integer 9000000000000000001 integer 9000000000000000001 integer 9000000000000000001 integer 9000000000000000001 integer 9000000000000000001 integer 9000000000000000001 integer 9223372036854775807 integer 9223372036854775807 integer 9223372036854775807 real 9.22337203685478e+18 real 9.22337203685478e+18 integer 9223372036854775807 integer 9223372036854775807 integer -5 integer -5] ! e_expr-32.2.8 got: [integer 9000000000000000001 real 9.0e+18 real 9.0e+18 real 9.0e+18 integer 9000000000000000001 real 9.0e+18 integer 9223372036854775807 real 9.22337203685478e+18 real 9.22337203685478e+18 real 9.22337203685478e+18 real 9.22337203685478e+18 real 9.22337203685478e+18 real 9.22337203685478e+18 integer -5 integer -5] date-2.2c-* tests will be re-enabled. The planned solution (in SQLite >=3.21.0) is generally: If SSE supported: Use -mfpmath=sse Else: Use -ffloat-store got at the unstable amd64 chroot image 17.0-desktop-plasma-systemd_libressl-test_20171129-194156 this : make: *** [Makefile:<snip>: tcltest] Error 1 Created attachment 507282 [details]
emerge-info.txt
Created attachment 507284 [details]
dev-db:sqlite-3.21.0:20171130-003752.log
Created attachment 507286 [details]
emerge-history.txt
Created attachment 507288 [details]
environment
Created attachment 507290 [details]
etc.portage.tbz2
Created attachment 507292 [details]
logs.tbz2
Created attachment 507294 [details]
temp.tbz2
This is unrelated. Your log shows failure of fts3expr4-1.8 test, not date-2.2c-* tests. *** Bug 632002 has been marked as a duplicate of this bug. *** |