xtensor icon indicating copy to clipboard operation
xtensor copied to clipboard

How can I compile xtensor with gcc-7.5

Open guoxxiong opened this issue 1 year ago • 4 comments

I am keeping the default gcc-7.5 on ubuntu 18.04. No upgrade gcc, anyone have ideas to compile successfully. Thanks

guoxxiong avatar Apr 02 '24 12:04 guoxxiong

Could you please list the error?

tdegeus avatar Apr 02 '24 13:04 tdegeus

error like this: xtensor/xexpression.hpp:172:9: internal compiler error: Segmentation fault

The same issue "2289" can be solved by upgrading gcc and g++ to 8.4. I wonder if it is possible to compile without upgrading gcc.

guoxxiong avatar Apr 02 '24 14:04 guoxxiong

Hi,

We've dropped support for gcc-7 as it is really outdated now. If you can't upgrade your system compiler, you can install micromamba, cd to xtensor, and then tun the following:

micromamba env create -f environment-dev.yml
micromamba activate xtensor
micromamba install compilers

And then you can pass the following variables to cmake: -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX. This way it should use the compiler in your micromamba environment instead of your system compiler.

JohanMabille avatar Apr 02 '24 18:04 JohanMabille

This issue is stale because it has been open for 30 days with no activity. It will be automatically closed in 14 days.

github-actions[bot] avatar May 03 '24 01:05 github-actions[bot]

Closing as we don't support gcc 7 anymore, the only solution is to upgrade the compiler (either the systme one, or using micromamba).

JohanMabille avatar May 06 '24 07:05 JohanMabille