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

Support gcc 11 #169

Open
DavidAnderegg opened this issue Aug 25, 2021 · 11 comments
Open

Support gcc 11 #169

DavidAnderegg opened this issue Aug 25, 2021 · 11 comments

Comments

@DavidAnderegg
Copy link
Contributor

Describe the bug
It is not possible to use sharpy with gcc11 because the required scipy(1.3.2) version was built using gcc9. It might be possible to force scipy to compile locally with gcc11.

I just wanted to let you know, may be add a little note to the install instructions?

Anyways, thank you for making this all open source!

To Reproduce
First build it using gcc11. Then, run the tests.

Expected behavior
I am not sure? Maybe upgrade scipy or mention it somewhere?

System Info (please complete the following information):

  • OS: arch linux

Additional context
I fixed it on arch with installing the aur-packages gcc9, gcc9-fortran, gcc9-libs and this cmake command: FC=gfortran-9 CXX=g++-9 CC=gcc-9 cmake ..

@ArturoMS13
Copy link
Contributor

Dear David,
thank you for reporting this. We will try to fix it or at least make a note in the next release.
Best regards.

@ArturoMS13 ArturoMS13 mentioned this issue Aug 25, 2021
@x3oo
Copy link

x3oo commented Aug 25, 2021

thumbs up

@x3oo
Copy link

x3oo commented Aug 30, 2021

(sharpy_env) [buttermelted@thinkpad sharpy]$ python -m unittest
running unittest
running unittest
.Segmentation fault (core dumped)
(sharpy_env) [buttermelted@thinkpad sharpy]$

changed my issues to this, will try to compile with less threads

@x3oo
Copy link

x3oo commented Aug 30, 2021

changing from -j6 to -j2
i am on 2 core 4 thread machine

@ArturoMS13
Copy link
Contributor

Dear x3oo,

This issue sometimes happens when you have not checkout the same branch in SHARPy and the submodules (xbeam and UVLM). Can you doublecheck that?

I highly doubt chaning the number of cores will make a difference.

Best regards

@x3oo
Copy link

x3oo commented Aug 30, 2021

git submodule update --remote
recompiling now with -j4
using -j with high number can result in errors

@x3oo
Copy link

x3oo commented Aug 30, 2021

running unittest
running unittest
./home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/abstract_array.py:325: DeprecationWarning: invalid escape sequence \m
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/abstract_array.py:325: DeprecationWarning: invalid escape sequence \m
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:557: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:571: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:604: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:614: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:625: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:635: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:645: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:656: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:667: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:557: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:571: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:604: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:614: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:625: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:635: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:645: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:656: DeprecationWarning: invalid escape sequence \i
/home/buttermelted/.conda/envs/sharpy_env/lib/python3.7/site-packages/tvtk/tvtk_classes.zip/tvtk_classes/algorithm.py:667: DeprecationWarning: invalid escape sequence \i

still testing whoooo

@x3oo
Copy link

x3oo commented Aug 30, 2021

Ran 52 tests in 1004.682s

OK (skipped=4)
(sharpy_env) [buttermelted@thinkpad sharpy]$
whoop whoop, most likely git submodule solved the issue.

@x3oo
Copy link

x3oo commented Aug 30, 2021

thanks for programming and releasing sharpy, thanks for the fast support.
man, am i happy after so much pain.

@x3oo
Copy link

x3oo commented Aug 30, 2021

@DavidAnderegg how did you find the solution? i am asking so i can solve it next time myself

@DavidAnderegg
Copy link
Contributor Author

Basically I googled the error code until I figured out that a certain GLIBC - Version corresponds to a certain gcc version. Then it was only putting the knowledge and the error message together.

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

3 participants