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
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
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?
Apparently you need to copy over libintl as well.
Or something providing that.
> 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?
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?
(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.
*sigh*
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 ...
lafilefixer --justfixit emerge -e world resolve problem