Building it for `ivybridge-unknown-linux-gnu` does indeed solve the problem and all the tests are passed correctly.
Thank you very much. On Wednesday, January 24, 2018 at 10:38:48 PM UTC+2, Bill Hart wrote: > > That looks correct. Perhaps this Haswell is missing some instructions. > They do exist, unfortunately. > > You can try forcing it to build with ivybridge-unknown-linux-gnu instead > of haswell-unknown-linux-gnu and see if the problem goes away. > > On 24 January 2018 at 21:36, Daniel Șuteu <tri...@gmail.com <javascript:>> > wrote: > >> The output of `./config.guess` is: haswell-unknown-linux-gnu >> >> On Wednesday, January 24, 2018 at 10:32:23 PM UTC+2, Bill Hart wrote: >>> >>> What is the output of config.guess >>> >>> On 24 January 2018 at 18:28, Daniel Șuteu <tri...@gmail.com> wrote: >>> >>>> Hello, >>>> >>>> There seems to be minor issue with mpir-3.0.0 under Intel Celeron G1820 >>>> (compiled on Arch Linux with GCC-7.2.1+20180116-1). >>>> >>>> Some tests (37 of them) fail with the error "Illegal instruction". >>>> >>>> Bellow is a snippet of the output of `make check`: >>>> >>>> libtool: link: gcc -march=native -O3 -pipe -fstack-protector-strong >>>> --param=ssp-buffer-size=4 -fno-plt -Wl,-O1 -Wl,--sort-common >>>> -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/t-tdiv_qr >>>> t-tdiv_qr.o ../../tests/.libs/libtests.a /tmp/mpir-3.0.0/.libs/libmpir.so >>>> -lm ../../.libs/libmpir.so >>>> make[4]: Leaving directory '/tmp/mpir-3.0.0/tests/mpn' >>>> make check-TESTS >>>> make[4]: Entering directory '/tmp/mpir-3.0.0/tests/mpn' >>>> make[5]: Entering directory '/tmp/mpir-3.0.0/tests/mpn' >>>> PASS: t-addadd_n >>>> PASS: t-addsub_n >>>> PASS: t-aors_1 >>>> PASS: t-asmtype >>>> ../../test-driver: line 107: 3482 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-dc_bdiv_q >>>> ../../test-driver: line 107: 3501 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-dc_bdiv_q_n >>>> ../../test-driver: line 107: 3566 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-dc_bdiv_qr_n >>>> ../../test-driver: line 107: 3540 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-dc_bdiv_qr >>>> ../../test-driver: line 107: 3603 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-dc_div_q >>>> ../../test-driver: line 107: 3626 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-dc_div_qr >>>> ../../test-driver: line 107: 3672 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-dc_divappr_q >>>> ../../test-driver: line 107: 3660 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-dc_div_qr_n >>>> ../../test-driver: line 107: 3718 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-divebyff >>>> ../../test-driver: line 107: 3749 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-divebyfobm1 >>>> PASS: t-divrem_1 >>>> ../../test-driver: line 107: 3803 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-fat >>>> ../../test-driver: line 107: 3825 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-gcdext >>>> PASS: t-get_d >>>> PASS: t-instrument >>>> ../../test-driver: line 107: 3888 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-hgcd >>>> ../../test-driver: line 107: 3936 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-inv_div_q >>>> ../../test-driver: line 107: 3966 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-inv_div_qr >>>> ../../test-driver: line 107: 3998 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-inv_div_qr_n >>>> ../../test-driver: line 107: 4024 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-inv_divappr_q >>>> ../../test-driver: line 107: 4056 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-inv_divappr_q_n >>>> PASS: t-iord_u >>>> ../../test-driver: line 107: 4082 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-invert >>>> ../../test-driver: line 107: 4147 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-lorrshift1 >>>> PASS: t-mp_bases >>>> ../../test-driver: line 107: 4179 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-matrix22 >>>> ../../test-driver: line 107: 4235 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-mullow_basecase >>>> ../../test-driver: line 107: 4264 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-mullowhigh >>>> ../../test-driver: line 107: 4290 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-mulmid >>>> ../../test-driver: line 107: 4315 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-mulmod_2expm1 >>>> ../../test-driver: line 107: 4348 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-mulmod_2expp1 >>>> PASS: t-perfsqr >>>> ../../test-driver: line 107: 4377 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-neg >>>> ../../test-driver: line 107: 4438 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-redc_1 >>>> ../../test-driver: line 107: 4452 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-sb_bdiv_q >>>> ../../test-driver: line 107: 4493 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-sb_bdiv_qr >>>> ../../test-driver: line 107: 4512 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-sb_div_q >>>> ../../test-driver: line 107: 4554 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-sb_div_qr >>>> ../../test-driver: line 107: 4586 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-sb_divappr_q >>>> PASS: t-scan >>>> PASS: t-subadd_n >>>> ../../test-driver: line 107: 4641 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-sizeinbase >>>> ../../test-driver: line 107: 4693 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-tdiv_q >>>> ../../test-driver: line 107: 4720 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: t-tdiv_qr >>>> PASS: st_instrument >>>> ../../test-driver: line 107: 4749 Illegal instruction (core >>>> dumped) "$@" > $log_file 2>&1 >>>> FAIL: st_fat >>>> make[6]: Entering directory '/tmp/mpir-3.0.0/tests/mpn' >>>> make[6]: Nothing to be done for 'all'. >>>> make[6]: Leaving directory '/tmp/mpir-3.0.0/tests/mpn' >>>> >>>> ============================================================================ >>>> Testsuite summary for MPIR 3.0.0 >>>> >>>> ============================================================================ >>>> # TOTAL: 50 >>>> # PASS: 13 >>>> # SKIP: 0 >>>> # XFAIL: 0 >>>> # FAIL: 37 >>>> # XPASS: 0 >>>> # ERROR: 0 >>>> >>>> ============================================================================ >>>> See tests/mpn/test-suite.log >>>> Please report to http://groups.google.co.uk/group/mpir-devel/ >>>> >>>> ============================================================================ >>>> make[5]: *** [Makefile:1171: test-suite.log] Error 1 >>>> make[5]: Leaving directory '/tmp/mpir-3.0.0/tests/mpn' >>>> make[4]: *** [Makefile:1279: check-TESTS] Error 2 >>>> make[4]: Leaving directory '/tmp/mpir-3.0.0/tests/mpn' >>>> make[3]: *** [Makefile:1693: check-am] Error 2 >>>> make[3]: Leaving directory '/tmp/mpir-3.0.0/tests/mpn' >>>> make[2]: *** [Makefile:798: check-recursive] Error 1 >>>> make[2]: Leaving directory '/tmp/mpir-3.0.0/tests' >>>> make[1]: *** [Makefile:942: check-recursive] Error 1 >>>> make[1]: Leaving directory '/tmp/mpir-3.0.0' >>>> make: *** [Makefile:1231: check] Error 2 >>>> make check 19.28s user 3.21s system 119% cpu 18.759 total >>>> >>>> >>>> Processor info (output of `lscpu`): >>>> >>>> Architecture: x86_64 >>>> CPU op-mode(s): 32-bit, 64-bit >>>> Byte Order: Little Endian >>>> CPU(s): 2 >>>> On-line CPU(s) list: 0,1 >>>> Thread(s) per core: 1 >>>> Core(s) per socket: 2 >>>> Socket(s): 1 >>>> NUMA node(s): 1 >>>> Vendor ID: GenuineIntel >>>> CPU family: 6 >>>> Model: 60 >>>> Model name: Intel(R) Celeron(R) CPU G1820 @ 2.70GHz >>>> Stepping: 3 >>>> CPU MHz: 2281.722 >>>> CPU max MHz: 2700.0000 >>>> CPU min MHz: 800.0000 >>>> BogoMIPS: 5389.18 >>>> Virtualization: VT-x >>>> L1d cache: 32K >>>> L1i cache: 32K >>>> L2 cache: 256K >>>> L3 cache: 2048K >>>> NUMA node0 CPU(s): 0,1 >>>> Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr >>>> pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe >>>> syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good >>>> nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor >>>> ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe >>>> popcnt tsc_deadline_timer xsave rdrand lahf_lm abm cpuid_fault >>>> invpcid_single pti retpoline tpr_shadow vnmi flexpriority ept vpid >>>> fsgsbase >>>> tsc_adjust erms invpcid xsaveopt dtherm arat pln pts >>>> >>>> If more info is required, I would be happy to provide. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "mpir-devel" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to mpir-devel+...@googlegroups.com. >>>> To post to this group, send email to mpir-...@googlegroups.com. >>>> Visit this group at https://groups.google.com/group/mpir-devel. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "mpir-devel" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to mpir-devel+...@googlegroups.com <javascript:>. >> To post to this group, send email to mpir-...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/mpir-devel. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscr...@googlegroups.com. To post to this group, send email to mpir-devel@googlegroups.com. Visit this group at https://groups.google.com/group/mpir-devel. For more options, visit https://groups.google.com/d/optout.