Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125225 - Eselect compiler doesn't work correctly.
Summary: Eselect compiler doesn't work correctly.
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: eselect (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-06 05:24 UTC by Maxim Grechkin
Modified: 2006-06-10 15:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Grechkin 2006-03-06 05:24:21 UTC
eselect compiler doesn't work! when I switch compiler with it gcc-config output doesn't change. gcc -v changes but some other links are not changed. It results in problem while compiling glibc :"tls support is required". After changing with gcc-config it builds correct.
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2006-03-06 05:33:47 UTC
Please specify the installed version of both app-admin/eselect and app-admin/eselect-compiler.
Comment 2 Maxim Grechkin 2006-03-07 07:49:06 UTC
eselect version 1.0 eselect-compiler 20051017 (latest from portage)
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2006-03-29 10:43:25 UTC
are you using gcc-config-2?  That's the version that is the frontend to eselect compiler.  eselect-compiler does not use the old config files.
Comment 4 Maxim Grechkin 2006-03-30 05:48:26 UTC
My problem:
1) I installed gcc 4.1.0
2) I changed compiler to gcc 4.1.0 by eselect compiler
3) When compiling glibc I get: "tls support is required"
4) Then I swithced compiler with gcc-config (version 1.3) (to gcc 4.1.0)
PS: After 2) gcc -v reports gcc 4.1.0 but I think links to some libs are not changed correctly.
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2006-03-30 14:03:09 UTC
Yeah, your problem is you have BOTH gcc-config-1.3 and eselect-compiler installed.  That isn't supported, nor would I expect it to work
Comment 6 Maxim Grechkin 2006-03-31 04:04:37 UTC
1) emerge -C gcc-config (1.3 removed)
2) emerge eselect eselect compiler
3) eselect compiler set <gcc 3.4> (switch to gcc 3.4 from gcc 4.1)
4) emerge --nodeps glibc :
                 from include/tls.h:6,
                 from sysdeps/unix/sysv/linux/i386/sysdep.h:30,
                 from <stdin>:1:
nptl/sysdeps/i386/i686/../tls.h:65:3: #error "TLS support is required."

PS: eselect compiler has profile for already removed gcc 4.0.2 ! 
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2006-03-31 21:59:41 UTC
so, what is gcc --version there when it fails?  I assume this is 3.4 on amd64...
Comment 8 Maxim Grechkin 2006-04-01 04:27:06 UTC
Yes it is gcc 3.4, but I think that links to some libs are not changed correctly. (link for tls include and lib files). gcc-config 1.3 changes compiler about 3 times slower - maybe it is doing some more things (switch not only gcc but the libs also)
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2006-04-01 08:44:17 UTC
gcc-config does it differently which is why it is slower, it is not taking longer because it is "doing more".

Please attach the output of:
i686-pc-linux-gnu-gcc --version

My guess is you haven't selected your compiler for i686-pc-linux-gnu.
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2006-04-01 08:50:41 UTC
And re: your PS, that's because /etc/eselect/compiler is protected by CONFIG_PROTECT.  Add the following to make.conf:

CONFIG_PROTECT_MASK="/etc/eselect/compiler"
Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2006-06-10 15:41:40 UTC
Closing due to lack of response