Can't build on non-default version of gcc
See original GitHub issueWe’re trying to build a package with gcc 4.9. The system has versions 4.8, 4.8, 6.3 (default).
if __name__ == "__main__":
builder = ConanMultiPackager(
reference="switcher/0.4",
upload=True,
remote="barbarian")
builder.add({"os": "Linux", "compiler": "gcc", "compiler.libcxx": "libstdc++", "compiler.version": "4.9", "build_type": "Debug", "arch": "x86"})
builder.add({"os": "Linux", "compiler": "gcc", "compiler.libcxx": "libstdc++", "compiler.version": "4.9", "build_type": "Debug", "arch": "x86_64"})
builder.run()
It seems to be the first time you've ran conan
Auto detecting your dev setup to initialize conan.conf
Found gcc 6.3
Default conan.conf settings
os=Linux
arch=x86_64
compiler=gcc
compiler.version=6.3
compiler.libcxx=libstdc++
build_type=Release
*** You can change them in ~/.conan/conan.conf ***
*** Or override with -s compiler='other' -s ...s***
WARN: Conanfile doesn't have 'url'.
It is recommended to add it as attribute
WARN: Conanfile doesn't have 'license'.
It is recommended to add it as attribute
WARN: Conanfile doesn't have 'description'.
It is recommended to add it as attribute
switcher/0.4@paulius/switcher_program: A new conanfile.py version was exported
switcher/0.4@paulius/switcher_program: Folder: /home/parallels/.conan/data/switcher/0.4/paulius/switcher_program/export
PROJECT: WARN: config() has been deprecated. Use config_options and configure
switcher/0.4@PROJECT
WARN: Remotes registry file missing, creating default one in /home/parallels/.conan/registry.txt
############## CONAN PACKAGE TOOLS ######################
DEBUG: - Skipped build, compiler mismatch: {'os': 'Linux', 'compiler.version': '4.9', 'compiler.libcxx': 'libstdc++', 'arch': 'x86', 'build_type': 'Debug', 'compiler': 'gcc'}
#########################################################
############## CONAN PACKAGE TOOLS ######################
DEBUG: - Skipped build, compiler mismatch: {'os': 'Linux', 'compiler.version': '4.9', 'compiler.libcxx': 'libstdc++', 'arch': 'x86_64', 'build_type': 'Debug', 'compiler': 'gcc'}
#########################################################
It looks like conan found the default compiler and is sticking with it. How can we make it recognise other versions? We could define the CXX
variable or change the settings, but we’re going to be doing multi-compiler builds pretty soon, and ConanMultiPackager
seems like our best bet here.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Compiling sources with a non-default compiler - Stack Overflow
After downloading the sources they must be compiled with a proprietary version of compile tools in order to be able to statically link ......
Read more >Building Tensorflow using non-default GCC fails with /lib64 ...
I'm trying to compile Tensorflow on a SLURM cluster machine where the default version of GCC is outdated ( 4.8.5 ) and cannot...
Read more >build-essential can't find gcc - Ask Ubuntu
Try typing this at a terminal: which gcc. If nothing comes back, then GCC is probably not in your path variable. Type:
Read more >Installing GCC: Building - GNU Project
If you are not building GNU binutils in the same source tree as GCC, you will need a cross-assembler and cross-linker installed before...
Read more >Compile a package from AUR using non-default version of GCC
So the problem is - I want to install wine-staging-d3dadapter package from aur. If it is compiled with 5.2 gcc with -O2 then...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since a built-in filter never got implemented, the manual way isn’t terrible using python’s
filter
function. Something like this:Looks good! maybe we could add it to the docs