Summary: | gcc-config messes up cmake | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Chris Bruner <cbruner> |
Component: | [OLD] Development | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Chris Bruner
2010-12-13 22:47:17 UTC
an even easier test case. gcc_config 2 (or whatever you need to switch to an older compiler) cmake error appears. What if you forgot about changing the system compiler and just ran: # eval $(gcc-config -E 2) instead? I don't follow how using eval $(gcc-config -E 2) on a makefile that uses cmake is going to help this. Could you explain further please? Does your system have the 3.4.6 compiler on it? I find that I can't even build cmake with this older compiler. I've also found other programs have a hard time with it. (MPlayer for instance). I thought gcc-config was only to switch which compiler and libraries the were to be used in compiling and linking. (In reply to comment #3) > I don't follow how using eval $(gcc-config -E 2) > on a makefile that uses cmake is going to help this. Could you explain further > please? Setting `gcc-config 2' sets your system compiler, and it seems that this isn't what you wanted to do: you appear to try to use a different compiler for a specific purpose in a specific shell. Your Steps To Reproduce in the Description do not mention setting the system compiler (`gcc-config 2') and then executing `source /etc/profile', which is the second required step if you're going to run make from the command line to build a package. However, running `eval $(gcc-config -E 2) in a shell will give you the correct paths to the compiler you chose, just in that shell, immediately, without switching all kinds of symlinks that changing the system compiler would entail. Running gcc-config without options would give you this information: Usage: gcc-config [options] [CC Profile] Change the current cc/gcc profile, or give info about profiles. Options: -C, --nocolor Disable color output -O, --use-old Use the old profile if one was selected. -f, --force Make sure all config files are regenerated. -P, --use-portage-chost Only set to given profile if its CHOST is the same as that set for portage in /etc/make.conf (or one of other portage config files...). -c, --get-current-profile Print current used gcc profile. -l, --list-profiles Print a list of available profiles. -S, --split-profile Split profiles into their components -E, --print-environ Print environment that can be used to setup the current gcc profile, or a specified one. -B, --get-bin-path Print path where binaries of the given/current profile are located. -L, --get-lib-path Print path where libraries of the given/current profile are located. -X, --get-stdcxx-incdir Print path where g++ include files of the given/current profile are located. Profile names are of the form: <CHOST>-<gcc version> For example: i686-pc-linux-gnu-3.2.1 If you need more support, try our forums at <http://forums.gentoo.org/> or our IRC channel at <irc://chat.freenode.net/#gentoo>. If you then find a real bug, instead of a mere puzzle, feel free to report a new bug. |