conda-forge / compilers-feedstock

A conda-smithy repository for compilers.
BSD 3-Clause "New" or "Revised" License
9 stars 17 forks source link

How to specify the gcc version when using this package? #47

Closed bryanloz-xilinx closed 2 years ago

bryanloz-xilinx commented 2 years ago

Comment:

Say we want to restrict the gcc version to 7.3, how do we specify that when installing this package?

can we do something like: conda install cxx-compiler gcc=7.3 -c conda-forge

bryanloz-xilinx commented 2 years ago

Looks like conda-forge only provides back to 8.5

$ conda search -f gcc -c conda-forge
Loading channels: done
# Name                       Version           Build  Channel             
gcc                            8.5.0      h143be6b_1  conda-forge         
gcc                            8.5.0     h143be6b_10  conda-forge         
gcc                            8.5.0      h143be6b_2  conda-forge         
gcc                            8.5.0      h143be6b_3  conda-forge         
gcc                            8.5.0      h143be6b_4  conda-forge         
gcc                            8.5.0      h143be6b_5  conda-forge         
gcc                            8.5.0      h143be6b_6  conda-forge         
gcc                            8.5.0      h143be6b_7  conda-forge         
gcc                            8.5.0      h143be6b_8  conda-forge         
gcc                            8.5.0      h143be6b_9  conda-forge         
gcc                            9.4.0      h192d537_1  conda-forge         
gcc                            9.4.0     h192d537_10  conda-forge         
gcc                            9.4.0      h192d537_2  conda-forge         
gcc                            9.4.0      h192d537_3  conda-forge         
gcc                            9.4.0      h192d537_4  conda-forge         
gcc                            9.4.0      h192d537_5  conda-forge         
gcc                            9.4.0      h192d537_6  conda-forge         
gcc                            9.4.0      h192d537_7  conda-forge         
gcc                            9.4.0      h192d537_8  conda-forge         
gcc                            9.4.0      h192d537_9  conda-forge         
gcc                           10.3.0      he2824d0_1  conda-forge         
gcc                           10.3.0     he2824d0_10  conda-forge         
gcc                           10.3.0      he2824d0_2  conda-forge         
gcc                           10.3.0      he2824d0_3  conda-forge         
gcc                           10.3.0      he2824d0_4  conda-forge         
gcc                           10.3.0      he2824d0_5  conda-forge         
gcc                           10.3.0      he2824d0_6  conda-forge         
gcc                           10.3.0      he2824d0_7  conda-forge         
gcc                           10.3.0      he2824d0_8  conda-forge         
gcc                           10.3.0      he2824d0_9  conda-forge         
gcc                           11.1.0      hee54495_1  conda-forge         
gcc                           11.2.0      h702ea55_1  conda-forge         
gcc                           11.2.0     h702ea55_10  conda-forge         
gcc                           11.2.0      h702ea55_2  conda-forge         
gcc                           11.2.0      h702ea55_3  conda-forge         
gcc                           11.2.0      h702ea55_4  conda-forge         
gcc                           11.2.0      h702ea55_5  conda-forge         
gcc                           11.2.0      h702ea55_6  conda-forge         
gcc                           11.2.0      h702ea55_7  conda-forge         
gcc                           11.2.0      h702ea55_8  conda-forge         
gcc                           11.2.0      h702ea55_9  conda-forge
bryanloz-xilinx commented 2 years ago

So this would work to use old gcc

conda install cxx-compiler gcc=8.5 -c conda-forge

It has been nice chatting with you @bryanloz-xilinx