Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#18580 closed defect (fixed)

gf2x fails to build with GCC 5.1

Reported by: vbraun Owned by:
Priority: major Milestone: sage-6.8
Component: packages: standard Keywords:
Cc: captaintrunky Merged in:
Authors: Jeroen Demeyer Reviewers: François Bissey
Report Upstream: N/A Work issues:
Branch: 317056e (Commits, GitHub, GitLab) Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jdemeyer)

I get

libtool: link: gcc -O2 -g -Wall -W -mpclmul -o update-thresholds update-thresholds.o replace.o 
./tunetoom -s 1.05 100 -o tunetoom.res
10 TC2:1.42e-07 TC3:0.00e+00 TC3W:2.72e-07 TC4:0.00e+00 best:1.42e-07 TC2
11 TC2:1.53e-07 TC3:0.00e+00 TC3W:3.74e-07 TC4:0.00e+00 best:1.53e-07 TC2
12 TC2:1.72e-07 TC3:0.00e+00 TC3W:4.30e-07 TC4:0.00e+00 best:1.72e-07 TC2
13 TC2:2.39e-07 TC3:0.00e+00 TC3W:4.25e-07 TC4:0.00e+00 best:2.39e-07 TC2
14 TC2:2.59e-07 TC3:0.00e+00 TC3W:4.86e-07 TC4:0.00e+00 best:2.59e-07 TC2
15 TC2:3.12e-07 TC3:0.00e+00 TC3W:4.81e-07 TC4:0.00e+00 best:3.12e-07 TC2
16 TC2:3.45e-07 TC3:0.00e+00 TC3W:5.69e-07 TC4:0.00e+00 best:3.45e-07 TC2
17 Error: Kara and TC3 differ for 17x17 at word 10
failed:=[[1804289383, 846930886, 1681692777, 1714636915, 1957747793, 424238335, 719885386, 1649760492, 596516649, 1189641421, 1025202362, 1350490027, 783368690, 1102520059, 2044897763, 1967513926, 1365180540],[1540383426, 304089172, 1303455736, 35005211, 521595368, 294702567, 1726956429, 336465782, 861021530, 278722862, 233665123, 2145174067, 468703135, 1101513929, 1801979802, 1315634022, 635723058],[2275208724440845966, 578835738574109472, 570907324271046658, 1721997420105918243, 47478187739472868, 2305068767181959844, 490632590654943332, 1648018861384150968, 1872486827742044477, 1811960975040491224, 2038303057396306481, 1812554215605348157, 586551633139081423, 2265129573793559332, 1265216569049212830, 231022760417897247, 879627083851098905, 1484277262406484998, 1032241803148982813, 97066198695746088, 1537851430801362415, 532335089721381249, 974274190033416458, 1428585459552938882, 2120216175782401425, 421032103174243316, 2187544794608990614, 1837540120186350729, 2233724571656724210, 1225084381300543628, 955860066683444378, 1731325861233837476, 794963405273605304, 0],[2275208724440845966, 578835738574109472, 570907324271046658, 1721997420105918243, 47478187739472868, 2305068767181959844, 490632590654943332, 1648018861384150968, 1872486827742044477, 1811960975040491224, 11261675094251082289, 16634189858104203458, 8636820403715694384, 2265129573793559332, 10488588605903988638, 18215721313291654368, 8343744953003676902, 1484277262406484998, 8191130233705792994, 97066198695746088, 10761223467656138223, 17914408983988170366, 17472469883676135157, 17018158614156612733, 2120216175782401425, 421032103174243316, 2187544794608990614, 1837540120186350729, 2233724571656724210, 1225084381300543628, 955860066683444378, 1731325861233837476, 794963405273605304, 0]];
Makefile:2202: recipe for target 'tunetoom.res' failed
make[4]: *** [tunetoom.res] Aborted (core dumped)
make[4]: *** Deleting file 'tunetoom.res'
make[4]: Leaving directory '/mnt/disk/home/release/Sage/local/var/tmp/sage/build/gf2x-1.1.p1/src/src'
Makefile:976: recipe for target 'tune-toom' failed
make[3]: *** [tune-toom] Error 2
make[3]: Leaving directory '/mnt/disk/home/release/Sage/local/var/tmp/sage/build/gf2x-1.1.p1/src'
Error: Failed to tune gf2x.

when building with

(sage-sh) jdemeyer@tamiyo:sage-config$ gcc --version
gcc (GCC) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

or with the default compiler on Fedora 22:

$ gcc --version
gcc (GCC) 5.1.1 20150422 (Red Hat 5.1.1-1)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Change History (11)

comment:1 Changed 6 years ago by captaintrunky

  • Cc captaintrunky added

comment:2 Changed 6 years ago by jdemeyer

  • Summary changed from gf2x fails to build with gcc 5.1.1 to gf2x fails to build with Fedora's gcc 5.1.1

The 5.1.1 version number is something Fedora invented, it doesn't officially exist yet as far as I can see on https://gcc.gnu.org/

comment:3 Changed 6 years ago by jdemeyer

  • Description modified (diff)
  • Summary changed from gf2x fails to build with Fedora's gcc 5.1.1 to gf2x fails to build with GCC 5.1

Confirmed with vanilla GCC 5.1.0

comment:4 Changed 6 years ago by jdemeyer

-fno-forward-propagate fixes the problem.

comment:5 Changed 6 years ago by jdemeyer

  • Branch set to u/jdemeyer/gf2x_fails_to_build_with_gcc_5_1

comment:6 Changed 6 years ago by jdemeyer

  • Authors set to Jeroen Demeyer
  • Commit set to 317056e59d125e704e25d3573737219be9b66b13
  • Status changed from new to needs_review

New commits:

317056eWork around problems compiling gf2x with GCC 5.1

comment:7 follow-up: Changed 6 years ago by fbissey

  • Reviewers set to François Bissey

I notice that if you request a debug build of gf2x you will not test for gcc 5.1. Does the plain debug build work with gcc 5.1? If not gcc 5.1 will have to be tested separately.

Last edited 6 years ago by fbissey (previous) (diff)

comment:8 in reply to: ↑ 7 Changed 6 years ago by jdemeyer

Replying to fbissey:

Does the plain debug build work with gcc 5.1?

Yes.

comment:9 Changed 6 years ago by fbissey

  • Status changed from needs_review to positive_review

Looks good to me.

comment:10 Changed 6 years ago by vbraun

  • Branch changed from u/jdemeyer/gf2x_fails_to_build_with_gcc_5_1 to 317056e59d125e704e25d3573737219be9b66b13
  • Resolution set to fixed
  • Status changed from positive_review to closed

comment:11 Changed 6 years ago by saraedum

  • Commit 317056e59d125e704e25d3573737219be9b66b13 deleted

This is still an issue with GCC 5.2.0. See #18978.

Note: See TracTickets for help on using tickets.