Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: Accept gcc/gfortran 10.x #29456

Closed
mkoeppe opened this issue Apr 3, 2020 · 65 comments
Closed

configure: Accept gcc/gfortran 10.x #29456

mkoeppe opened this issue Apr 3, 2020 · 65 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 3, 2020

As all build errors of standard packages with gcc/gfortran 10 have been fixed, we change the gcc and gfortran configure scripts to again accept these versions.

This ticket does not change the version of the gcc spkg.

Previous tickets:

Related discussions:

Depends on #3360
Depends on #29766

CC: @dimpase @orlitzky @kiwifb @vbraun @enriqueartal @alexjbest @heluani @EmmanuelCharpentier

Component: porting

Keywords: sd109

Author: Matthias Koeppe

Branch: c898920

Reviewer: Volker Braun

Issue created by migration from https://trac.sagemath.org/ticket/29456

@mkoeppe mkoeppe added this to the sage-9.2 milestone Apr 3, 2020
@mkoeppe mkoeppe changed the title Meta-ticket: Support gcc 10 (fedora-32) Meta-ticket: Support gcc 10, needed for fedora-32 build (scheduled to be released end of April 2020) Apr 26, 2020
@kiwifb
Copy link
Member

kiwifb commented Apr 26, 2020

comment:3

Any more details on palp?

@kiwifb
Copy link
Member

kiwifb commented Apr 26, 2020

comment:4

Also, if we are targeting 9.2 we can move to higher scipy.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 26, 2020

comment:5

Replying to @kiwifb:

Any more details on palp?

For example here: https://github.com/mkoeppe/sage/runs/618646432?check_suite_focus=true

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 26, 2020

comment:6

Replying to @kiwifb:

Also, if we are targeting 9.2 we can move to higher scipy.

As far as I can see there is no release yet with the fix

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 26, 2020

comment:7

Question is whether we want to fix this for 9.1 already.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 26, 2020

comment:10

Presumably Fedora 32 has patched packages.

@mkoeppe

This comment has been minimized.

@dimpase
Copy link
Member

dimpase commented Apr 27, 2020

comment:12

Replying to @mkoeppe:

Replying to @kiwifb:

Any more details on palp?

For example here: https://github.com/mkoeppe/sage/runs/618646432?check_suite_focus=true

2020-04-26T04:55:26.7728042Z   [palp-2.1.p2]   MoriCone.c: In function 'Triang2dSFan':
2020-04-26T04:55:26.7728579Z   [palp-2.1.p2]   MoriCone.c:489:48: warning: 'Z[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
2020-04-26T04:55:26.7729093Z   [palp-2.1.p2]     489 | #define BZangle(a,b) (ConeAngle(B.x[Z[a]],B.x[Z[b]])) // Gale-points
2020-04-26T04:55:26.7729654Z   [palp-2.1.p2]         |                                                ^
2020-04-26T04:55:26.7730199Z   [palp-2.1.p2]   gcc -O3 -W -Wall  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE   -c -o SingularInput.o SingularInput.c
2020-04-26T04:55:26.7730774Z   [palp-2.1.p2]   gcc -O3 -W -Wall  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o poly.x poly.o Coord.o Rat.o Vertex.o Polynf.o LG.o
2020-04-26T04:55:26.7731343Z   [palp-2.1.p2]   gcc -O3 -W -Wall  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o class.x class.o Coord.o Rat.o Vertex.o Polynf.o Subpoly.o Subadd.o Subdb.o
2020-04-26T04:55:26.7731892Z   [palp-2.1.p2]   gcc -O3 -W -Wall  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o cws.x cws.o Coord.o Rat.o Vertex.o Polynf.o LG.o
2020-04-26T04:55:26.7732465Z   [palp-2.1.p2]   gcc -O3 -W -Wall  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o nef.x nef.o Coord.o Rat.o Vertex.o Polynf.o E_Poly.o Nefpart.o LG.o
2020-04-26T04:55:26.7733264Z   [palp-2.1.p2]   gcc -O3 -W -Wall  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o mori.x mori.o Coord.o Rat.o Vertex.o Polynf.o MoriCone.o SingularInput.o LG.o
2020-04-26T04:55:26.7733900Z   [palp-2.1.p2]   /usr/bin/ld: MoriCone.o:(.bss+0x0): multiple definition of `nr_SR_elements'; mori.o:(.bss+0x10): first defined here
2020-04-26T04:55:26.7734659Z   [palp-2.1.p2]   /usr/bin/ld: SingularInput.o:(.bss+0x0): multiple definition of `nr_SR_elements'; mori.o:(.bss+0x10): first defined here
2020-04-26T04:55:26.7735158Z   [palp-2.1.p2]   /usr/bin/ld: SingularInput.o: in function `HyperSurfSingular':
2020-04-26T04:55:26.7735673Z   [palp-2.1.p2]   SingularInput.c:(.text+0x1e1): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
2020-04-26T04:55:26.7736112Z   [palp-2.1.p2]   collect2: error: ld returned 1 exit status
2020-04-26T04:55:26.7736565Z   [palp-2.1.p2]   make[4]: *** [Makefile:50: mori] Error 1
2020-04-26T04:55:26.7737028Z   [palp-2.1.p2]   make[4]: Target 'all' not remade because of errors.
2020-04-26T04:55:26.7737532Z   [palp-2.1.p2]   make[4]: Leaving directory '/sage/local/var/tmp/sage/build/palp-2.1.p2/src'
2020-04-26T04:55:26.7738036Z   [palp-2.1.p2]   ********************************************************************************
2020-04-26T04:55:26.7738482Z   [palp-2.1.p2]   Error building palp-2.1.p2
  • before the logs exprire...

@mkoeppe

This comment has been minimized.

@mkoeppe mkoeppe changed the title Meta-ticket: Support gcc 10, needed for fedora-32 build (scheduled to be released end of April 2020) Meta-ticket: Support gcc 10, needed for fedora-32 build (released end of April 2020) May 10, 2020
@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@slel

This comment has been minimized.

@enriqueartal
Copy link
Contributor

comment:19

Besides the packages cited in the description (cannot say about gf2x) gap_packages does not build, due to cohomolo package.

@timokau
Copy link
Contributor

timokau commented May 19, 2020

comment:20

Palp 2.11 mentions gcc 10 compatibility:

palp-2.11.tar.gz: Small change in Mori.h for compatibility with gcc_10 and other minor patches (thanks to J. Puydt) [May 18, 2020].

-- http://hep.itp.tuwien.ac.at/~kreuzer/CY/CYpalp.html

@timokau
Copy link
Contributor

timokau commented May 19, 2020

comment:21

Unfortunately I'm not sure if the upstream source tarball for palp 2.11 is finalized though. Since I've packaged it 3 days ago (NixOS/nixpkgs#87944) the tarball silently changed.

@kiwifb
Copy link
Member

kiwifb commented May 19, 2020

comment:22

Replying to @timokau:

Unfortunately I'm not sure if the upstream source tarball for palp 2.11 is finalized though. Since I've packaged it 3 days ago (NixOS/nixpkgs#87944) the tarball silently changed.

I just adopted the patch already shipped in fedora until a new release.

  • sympow is fixed by upgrading to the new fork.
  • scipy can be fixed by adding some fortran flags until they fix the code, -std=legacy I think. I otherwise built sage-on-gentoo successfully with gcc-10 but I am not sure I have scanned absolutely all the packages.

@timokau
Copy link
Contributor

timokau commented May 28, 2020

comment:23

For what it's worth, upstream confirmed that palp 2.11 is stable and no further changes are expected.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 28, 2020

Changed keywords from none to sd109

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 14, 2020

comment:25

I have opened #29859 for palp

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jul 14, 2020

comment:41

Tests running at https://github.com/mkoeppe/sage/actions/runs/168165380

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 14, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

d39817fbuild/pkgs/numpy: Downgrade to 1.18.5 to fix build error on debian-jessie
879375bMerge branch 't/29766/packages/networkx24' into t/29456/meta_ticket__support_gcc_10__needed_for_fedora_32_build__released_end_of_april_2020_
a17c655m4/sage_spkg_collect.m4: Do not include script packages in SAGE_SDIST_PACKAGES
827923abootstrap: Accept 2020s in config.guess version check
c30ac54tox.ini: Add local-nobootstrap
de6464d.github/workflows/tox.yml: Add jobs "dist", "local-macos-nohomebrew
775b7f7Trac #30088: add a few explanatory comments to m4/sage_spkg_collect.m4.
160862fm4/sage_spkg_collect.m4: Mention sagelib in the comment
d1a2cbfMerge branch 't/30088/fix__make_sdist___add_test_run_to_github_actions' into t/29929/tox_ini__add_a_macos_environment_without_homebrew__conda
7cf9a5cMerge branch 't/29929/tox_ini__add_a_macos_environment_without_homebrew__conda' into t/29456/meta_ticket__support_gcc_10__needed_for_fedora_32_build__released_end_of_april_2020_

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 14, 2020

Changed commit from e5bf863 to 7cf9a5c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 14, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

fcddf69Revert "build/pkgs/numpy: Downgrade to 1.18.5 to fix build error on debian-jessie"
3558737build/pkgs/numpy/patches/16871.patch: New
4e6d8a3Merge branch 't/29766/packages/networkx24' into t/29456/meta_ticket__support_gcc_10__needed_for_fedora_32_build__released_end_of_april_2020_

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 14, 2020

Changed commit from 7cf9a5c to 4e6d8a3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 15, 2020

Changed commit from 4e6d8a3 to 2035df2

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 15, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

ba0ccb6Experimental: Use numpy PR 16871
c24d109build/pkgs/cython: Updatt to 0.29.21
79bf297Merge branch 't/29861/upgrade_cython_to_0_29_20' into t/29456/meta_ticket__support_gcc_10__needed_for_fedora_32_build__released_end_of_april_2020_
2035df2Fixup: Experimental: Use numpy PR 16871

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 7, 2020

Changed dependencies from #3360, #29766, #29929, #30118 to #3360, #29766

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 7, 2020

Changed commit from 2035df2 to 95e8a22

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 7, 2020

Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:

56fe1c2Merge branch 't/3360/sympow-2.23.2' into t/29456/meta_ticket__support_gcc_10__needed_for_fedora_32_build__released_end_of_april_2020_
1bf6249Update numpy to 1.19.1, add patches
061e975Merge branch 'u/mkoeppe/upgrade_cython_to_0_29_20' of git://trac.sagemath.org/sage into t/29766/packages/networkx24
fc7592cMerge branch 't/29929/tox_ini__add_a_macos_environment_without_homebrew__conda' into t/29766/packages/networkx24
7fe5985right place for warnings.filterwarnings() for networkx & scipy
5fa0bbabuild/pkgs/scipy: Update to 1.5.2
3890e1abuild/make/Makefile.in: Improve handling of SAGE_CHECK_PACKAGES
5d4b013build/make/Makefile.in: Handle the case in which SAGE_CHECK_PACKAGES is set using a command argument
fb9806aMerge branch 't/29766/packages/networkx24' into t/29456/meta_ticket__support_gcc_10__needed_for_fedora_32_build__released_end_of_april_2020_
95e8a22build/pkgs/{gcc,gfortran}/spkg-configure.m4: Accept gcc 10.x

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 7, 2020

comment:49

Re-enabled gcc 10. Tests run at https://github.com/mkoeppe/sage/actions/runs/199625493

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 10, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

c898920build/pkgs/gcc/spkg-configure.m4: Fixup

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 10, 2020

Changed commit from 95e8a22 to c898920

@enriqueartal
Copy link
Contributor

comment:51

I have just built it successfully. It failed the installation of gap_packages because of package cohomolo but it also fails to compile in gap itself.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 11, 2020

comment:52

Thanks for testing!

If there's no ticket for gap_packages yet, could you open one please?

@dimpase
Copy link
Member

dimpase commented Aug 11, 2020

comment:53

Replying to @mkoeppe:

Thanks for testing!

If there's no ticket for gap_packages yet, could you open one please?

I just opened gap-packages/cohomolo#24
(verified that it's a problem with gcc-10 on Gentoo)

@mkoeppe

This comment has been minimized.

@mkoeppe mkoeppe changed the title Meta-ticket: Support gcc/gfortran 10 configure: Accept gcc/gfortran 10.x Aug 18, 2020
@vbraun
Copy link
Member

vbraun commented Aug 18, 2020

Author: Matthias Koeppe

@vbraun
Copy link
Member

vbraun commented Aug 18, 2020

Reviewer: Volker Braun

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 19, 2020

comment:57

Thanks.

@EmmanuelCharpentier
Copy link
Mannequin

EmmanuelCharpentier mannequin commented Aug 19, 2020

comment:58

Replying to @vbraun:

FWIW, worked for me for the upgrade to 9.2.beta9...

@vbraun
Copy link
Member

vbraun commented Aug 20, 2020

@dimpase
Copy link
Member

dimpase commented Aug 23, 2020

comment:60

this seems not to be in beta9, right? should it be in beta10?

@dimpase
Copy link
Member

dimpase commented Aug 23, 2020

Changed commit from c898920 to none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants