Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 245256

Summary: sys-devel/gcc-4.2.4 - /usr/lib/gcc/armv5te-iwmmxt-linux-gnueabi/4.2.4/libstdc++.so: undefined reference to `libintl_gettext'
Product: Gentoo Linux Reporter: Oleh Kravchenko <oleg>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: VERIFIED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Oleh Kravchenko 2008-11-02 09:52:53 UTC
Fail to compile code by c++

localhost ~ # armv5te-iwmmxt-linux-gnueabi-g++ hello.c -o hello
/usr/lib/gcc/armv5te-iwmmxt-linux-gnueabi/4.2.4/libstdc++.so: undefined reference to `libintl_gettext'
/usr/lib/gcc/armv5te-iwmmxt-linux-gnueabi/4.2.4/libstdc++.so: undefined reference to `libintl_textdomain'
/usr/lib/gcc/armv5te-iwmmxt-linux-gnueabi/4.2.4/libstdc++.so: undefined reference to `libintl_bindtextdomain'
collect2: ld returned 1 exit status


Reproducible: Always
Comment 1 Oleh Kravchenko 2008-11-02 09:53:51 UTC
Created attachment 170523 [details]
emerge --info

localhost ~ # uname -a
Linux localhost 2.6.27 #9 PREEMPT Tue Oct 28 22:06:43 EET 2008 armv5tel XScale-PXA270 rev 7 (v5l) Asus P535 GNU/Linux
Comment 2 Oleh Kravchenko 2008-11-02 09:56:13 UTC
I am copy libc-2.7.so from host cross-armv5te-iwmmxt-linux-gnueabi/glibc-2.7-r2
to pda. And it's work. But why native libc-2.7.so don't work?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-02 18:23:49 UTC
Apparently you need to copy over libintl as well.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-02 18:24:09 UTC
Or something providing that.
Comment 5 Oleh Kravchenko 2008-11-09 21:08:35 UTC
> I am copy libc-2.7.so from host cross-armv5te-iwmmxt-linux-gnueabi/glibc-2.7-r2
> to pda. And it's work. But why native libc-2.7.so don't work?
> 
I am sorry, I am copy file libstdc++.so.6.0.9 from toolchain :)

About problem linker, I am create libstdc++.so.wrapper:
OUTPUT_FORMAT(elf32-littlearm)
GROUP ( /usr/lib/gcc/armv5te-iwmmxt-linux-gnueabi/4.2.4/libstdc++.so.6.0.9 /usr/lib/libintl.so )

And make soft link ibstdc++.so to libstdc++.so.wrapper
g++ now work fine! :)

May be this is a bug of ebuild gcc?

Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-10 03:38:09 UTC
I wouldn't know. It clearly is beyond the scope of building and installing a Gentoo Linux distro. Portage offers ways to install files to the "live" filesystems which you weren't using, it seems. How would "not having copied an essential file over" be a Gentoo problem?
Comment 7 Oleh Kravchenko 2008-11-10 08:27:25 UTC
(In reply to comment #6)
> I wouldn't know. It clearly is beyond the scope of building and installing a
> Gentoo Linux distro. Portage offers ways to install files to the "live"
> filesystems which you weren't using, it seems. How would "not having copied an
> essential file over" be a Gentoo problem?
> 

The native arm g++ cannot compile the program on pda. I consider it as a problem.

Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-12 05:06:09 UTC
*sigh*
Comment 9 SpanKY gentoo-dev 2008-12-07 20:27:18 UTC
libstdc++.so should not have linked against libintl/gettext in the first place as that stuff is provided by glibc

post full build logs with recent versions of tools ...
Comment 10 Oleh Kravchenko 2010-01-28 07:11:08 UTC
lafilefixer --justfixit
emerge -e world

resolve problem