Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 137917
Alias:
Product:
Component:
Status: RESOLVED
Resolution: WONTFIX
Assigned To: Jeremy Huddleston (RETIRED) <eradicator@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Torsten Kaiser <Storklerk@ariolc.dyndns.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
compiler.eselect.patch unset COMPILER_CONFIG_LDPATH when not the native ctarget patch Steven Newbury 2006-08-05 23:57 0000 555 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 137917 depends on: Show dependency tree
Bug 137917 blocks: 143697
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-06-25 02:07 0000
I emerge arm-softfloat-linux-gnu-gcc in version 4.1.1 and 3.4.6 onto an ~x86
system.
After using eselect compiler to switch between these two arm-gccs some programs
no longer work:

ariolc ~ # eix -e glibc
eix: error while loading shared libraries:
/usr/lib/gcc/arm-softfloat-linux-gnu/4.1.1/libgcc_s.so.1: ELF file OS ABI
invalid

The cause of this error is, that ld.so.conf contains:
...
/usr/lib/gcc/arm-softfloat-linux-gnu/4.1.1
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1
...

So ld.so will try to load the wrong library first.

The cause of this seems to be, that [a]rm comes before [i]686 when eselect
rebuilds /etc/env.d/05compiler and then /etc/ld.so.conf.

/etc/env.d/gcc contains the following files:
arm-softfloat-linux-gnu-3.4.6
arm-softfloat-linux-gnu-3.4.6-hardenednopiessp
arm-softfloat-linux-gnu-4.1.1
config
config-
config-i686-pc-linux-gnu
i686-pc-linux-gnu-3.4.6
i686-pc-linux-gnu-3.4.6-hardened
i686-pc-linux-gnu-3.4.6-hardenednopie
i686-pc-linux-gnu-3.4.6-hardenednopiessp
i686-pc-linux-gnu-3.4.6-hardenednossp
i686-pc-linux-gnu-4.0.3
i686-pc-linux-gnu-4.1.1

------- Comment #1 From Steven Newbury 2006-08-05 23:20:55 0000 -------
(In reply to comment #0)
> I emerge arm-softfloat-linux-gnu-gcc in version 4.1.1 and 3.4.6 onto an ~x86
> system.
> After using eselect compiler to switch between these two arm-gccs some programs
> no longer work:
> 
> ariolc ~ # eix -e glibc
> eix: error while loading shared libraries:
> /usr/lib/gcc/arm-softfloat-linux-gnu/4.1.1/libgcc_s.so.1: ELF file OS ABI
> invalid
> 
> The cause of this error is, that ld.so.conf contains:
> ...
> /usr/lib/gcc/arm-softfloat-linux-gnu/4.1.1
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.1
> ...
> 
> So ld.so will try to load the wrong library first.
> 
> The cause of this seems to be, that [a]rm comes before [i]686 when eselect
> rebuilds /etc/env.d/05compiler and then /etc/ld.so.conf.
> 
> /etc/env.d/gcc contains the following files:
> arm-softfloat-linux-gnu-3.4.6
> arm-softfloat-linux-gnu-3.4.6-hardenednopiessp
> arm-softfloat-linux-gnu-4.1.1
> config
> config-
> config-i686-pc-linux-gnu
> i686-pc-linux-gnu-3.4.6
> i686-pc-linux-gnu-3.4.6-hardened
> i686-pc-linux-gnu-3.4.6-hardenednopie
> i686-pc-linux-gnu-3.4.6-hardenednopiessp
> i686-pc-linux-gnu-3.4.6-hardenednossp
> i686-pc-linux-gnu-4.0.3
> i686-pc-linux-gnu-4.1.1
> 

I've been having the same problem here for a ages.  I have been working with
experimental cross-arm-eabi toolchains, emerging directly with an overlay so I
wasn't sure if it was something I did wrong somewhere.  Given you're having the
same problem I think it needs fixing here in eselect compiler.  Only "native"
gcc libraries should be merged into the LDPATH entry in 05compiler.

I'll see if I can make a patch for it...

------- Comment #2 From Steven Newbury 2006-08-05 23:57:17 0000 -------
Created an attachment (id=93574) [details]
unset COMPILER_CONFIG_LDPATH when not the native ctarget

------- Comment #3 From SpanKY 2006-08-07 09:20:58 0000 -------
*** Bug 143096 has been marked as a duplicate of this bug. ***

------- Comment #4 From solar 2006-08-12 10:12:45 0000 -------
eradicator, I'm going to p.mask this package if you dont fix this like real
soon. 
It's been sitting here for two months untouched.

------- Comment #5 From Andrew Gaffney 2006-08-12 12:03:00 0000 -------
This thing just needs to be p.mask'd anyway until it can be proven to not be a
steaming pile of crap.

------- Comment #6 From solar 2006-08-14 07:04:57 0000 -------
>=sys-devel/gcc-config-2 and app-admin/eselect-compiler masked till these 
bugs are resolved.

------- Comment #7 From Peter Read 2006-08-14 08:38:21 0000 -------
Of course, now it's masked and emerge -auvDN world is giving a nice friendly
error;

!!! All ebuilds that could satisfy "app-admin/eselect-compiler" have been
masked.
!!! One of the following masked packages is required to complete your request:
- app-admin/eselect-compiler-2.0.0_rc1-r6 (masked by: package.mask)
# Ned Ludd <solar/gentoo.org> (Aug 14 2006)
# This this breaks working systems and eradicator
# has gone MIA yet again. Bug 137917

- app-admin/eselect-compiler-2.0.0_rc2 (masked by: package.mask)
- app-admin/eselect-compiler-2.0.0_rc2-r1 (masked by: package.mask)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "sys-libs/glibc-2.4-r3" [ebuild])

On ~amd64 at least.  I looked at the glibc ebuild to see exactly what it
depends on and am guessing the recommendation would be going back to
gcc-config-1.3.13-r3 ?  If so might be worth adding that to the comments for
the mask so a load of unnecessary bugs don't get logged...

------- Comment #8 From solar 2006-08-14 08:40:55 0000 -------
So downgrade gcc-config and unmerge eselect-compiler.

------- Comment #9 From Andrew Gaffney 2006-08-14 08:44:39 0000 -------
Solar, this is the bug I was telling you about. It can be "fixed" by just
p.mask'ing gcc-config-2 and leaving eselect-compiler alone. In most cases, this
is enough.

------- Comment #10 From Peter Read 2006-08-14 09:12:02 0000 -------
(In reply to comment #8)
> So downgrade gcc-config and unmerge eselect-compiler.
> 

Of course, I was suggesting mentioning it in the package.mask comments might
prevent unnecessary bugs being logged ....  TBH I'll just be unmasking what you
masked, but figured it'd be in everyones interest to prevent silly bugs being
opened.

------- Comment #11 From Steven Newbury 2006-08-17 11:02:30 0000 -------
I take it the patch I posted above is unacceptable?  OK it is a little hacky,
it does do the job nicely though.

------- Comment #12 From solar 2006-08-17 11:13:06 0000 -------
Steven, see bug #143697 for a more complete list of problems.

------- Comment #13 From SpanKY 2007-03-13 06:35:04 0000 -------
eselect-compiler is dead for the time being

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug