Open jogojapan opened 5 years ago
Will respond with more details, but what makes you think that the gcc version in the conda environment is 8?
Thank you!
The reason I make that assumption about the GCC version in the conda environment is that it says so:
(/space/conda/xeus) 19:12 localhost:~$ gcc --version
gcc (GCC) 8.2.1 20181215 (Red Hat 8.2.1-6)
Copyright (C) 2018 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.
Ah, if you do which gcc
, you should see your system's gcc. Conda's gcc is not invoked with the gcc
command.
Hum. Trying your code on the binder appears to work.
Ah, if you do
which gcc
, you should see your system's gcc. Conda's gcc is not invoked with thegcc
command.
Oh, I see. I had assumed the effect of the GCC 7 option would be similar to installing a different GCC version in the environment and making that the one that would be called by default. I should have checked more carefully.
OK, gcc7 is a bad name for the "rebuild" channel of conda-forge, which is ongoing a large rebuild endeavor to migrate to the latest conda-build tooling. On linux, it migrates conda-forge from gcc 4.8 to 7.3 at the same time hence the name of the channel. Although the channel name is also used for the os x rebuild...
The page https://conda-forge.org/status/ shows the rebuild progress. This channel will replace the main channel when the rebuild is done.
Trying to install xeus-cling I had the same problems as described in https://github.com/QuantStack/xeus-cling/issues/187 and following the instructions there, I re-installed it in a clean conda environment using
That allowed me to use xeus-cling notebooks, and for the most part it works well.
However I ran into an error (see at the end of my comment) when compiling the minimal example below, using random number generators and a lambda expression.
There are two things that confuse me about this:
cling
directly from the command line in the same conda environment, it runs fine-c conda-forge/label/gcc7
element in the installation command? Does that cause mismatches between the compiler and the standard library version? And does that affect cling on the command line in a different way than in the notebook?Code:
Error from the xeus-cling notebook (C++14 kernel):