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

build/pkgs/gcc/spkg-configure.m4: Fix SAGE_BROKEN_GCC test #31097

Closed
mkoeppe opened this issue Dec 22, 2020 · 18 comments
Closed

build/pkgs/gcc/spkg-configure.m4: Fix SAGE_BROKEN_GCC test #31097

mkoeppe opened this issue Dec 22, 2020 · 18 comments

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Dec 22, 2020

Code in build/pkgs/gcc/spkg-configure.m4, last modified in #30128, tries to use the configure-generated file src/bin/sage-env-config as part of the SAGE_BROKEN_GCC test.

As observed in #30845, this fails on builds from a distclean source tree into a SAGE_LOCAL that has an installed g++.

CC: @dimpase @orlitzky @tobiasdiez @kliem

Component: build

Author: Matthias Koeppe

Branch/Commit: 1cf3de4

Reviewer: Tobias Diez, Jonathan Kliem

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

@mkoeppe mkoeppe added this to the sage-9.3 milestone Dec 22, 2020
@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 22, 2020

comment:1

I think the fix could be to just take out the source sage-env-config. In this particular case (gcc, g++ installed in $SAGE_LOCAL), the variables CONFIGURED_CC etc. are not actually used; and other recent changes to sage-env should make it run OK without the sage-env-config.

@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 22, 2020

@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 22, 2020

Author: Matthias Koeppe

@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 22, 2020

Commit: 1cf3de4

@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 22, 2020

comment:3

... please test ...


New commits:

1cf3de4build/pkgs/gcc/spkg-configure.m4: Fix SAGE_BROKEN_GCC test

@kliem
Copy link
Contributor

kliem commented Dec 22, 2020

@tobiasdiez
Copy link
Contributor

comment:5

Strange. Even with this ticket included I get

Checking whether SageMath should install SPKG gcc...
bash: /home/runner/work/sage/sage/src/bin/sage-env-config: No such file or directory
configure: Installing GCC because installed g++ is broken

https://github.com/tobiasdiez/sage/runs/1595724994?check_suite_focus=true

@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 22, 2020

comment:6

You forgot to run bootstrap.

@tobiasdiez
Copy link
Contributor

comment:7

I don't think so, it's under "Install dependencies".

@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 22, 2020

comment:8

You need to change bootstrap -D to bootstrap

@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 22, 2020

comment:9

Or better, go through tox instead of doing things from scratch again

@tobiasdiez
Copy link
Contributor

comment:10

Thanks! That worked. However, now I get:

-----------------------------------------------------------------------------
Checking whether SageMath should install SPKG gcc...
checking for C compiler vendor... gnu
checking whether /usr/share/miniconda/envs/sage-build/bin/x86_64-conda-linux-gnu-c++ supports C++11 features with -std=gnu++11... yes
checking for /usr/share/miniconda/envs/sage-build/bin/x86_64-conda-linux-gnu-cc option to accept ISO C99... none needed
configure: no suitable system package found for SPKG gcc
checking for the location of crti.o... /usr/share/miniconda/envs/sage-build/bin/../x86_64-conda-linux-gnu/sysroot/usr/lib/../lib
-----------------------------------------------------------------------------

so detection is not yet working.

@tobiasdiez
Copy link
Contributor

comment:11

False alarm. It is working for me now! The changes look good to me as well, but I would prefer if somebody else also has a look.

@tobiasdiez
Copy link
Contributor

Changed reviewer from https://github.com/kliem/sage/pull/32/checks to Tobias Diez, ... https://github.com/kliem/sage/pull/32/checks

@kliem
Copy link
Contributor

kliem commented Jan 15, 2021

Changed reviewer from Tobias Diez, ... https://github.com/kliem/sage/pull/32/checks to Tobias Diez, Jonathan Kliem

@kliem
Copy link
Contributor

kliem commented Jan 15, 2021

comment:12

I agree, that this locks good.

@mkoeppe
Copy link
Member Author

mkoeppe commented Jan 15, 2021

comment:13

Thanks!

@vbraun
Copy link
Member

vbraun commented Jan 24, 2021

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

4 participants