armv4tl-softfloat-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -Os -pipe -Wall -W -Iinclude -Wl,-O1 -o bin/glewinfo src/glewinfo.c -Llib -Wl,-Bdynamic -lGLEW -L/usr/X11R6/lib -lXmu -lXi -lGLU -lGL -lXext -lX11 armv4tl-softfloat-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -Os -pipe -Wall -W -Iinclude -Wl,-O1 -o bin/visualinfo src/visualinfo.c -Llib -Wl,-Bdynamic -lGLEW -L/usr/X11R6/lib -lXmu -lXi -lGLU -lGL -lXext -lX11 /usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: warning: libstdc++.so.6, needed by /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so, not found (try using -rpath or -rpath-link) /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator new[](unsigned int)@GLIBCXX_3.4' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `__gxx_personality_v0@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `__cxa_end_cleanup@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator delete[](void*)@GLIBCXX_3.4' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator new(unsigned int)@GLIBCXX_3.4' collect2: ld returned 1 exit status make: *** [bin/visualinfo] Error 1 make: *** Waiting for unfinished jobs.... /usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: warning: libstdc++.so.6, needed by /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so, not found (try using -rpath or -rpath-link) /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator new[](unsigned int)@GLIBCXX_3.4' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `__gxx_personality_v0@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `__cxa_end_cleanup@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator delete[](void*)@GLIBCXX_3.4' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator new(unsigned int)@GLIBCXX_3.4' collect2: ld returned 1 exit status make: *** [bin/glewinfo] Error 1 * ERROR: media-libs/glew-1.5.1 failed: * emake failed Reproducible: Always Steps to Reproduce:
Created attachment 208906 [details] build.log
Portage 2.2_rc46 (default/linux/arm/10.0, gcc-4.4.2, unavailable, 2.6.31-rc9-27175-gc182be3 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.31-rc9-27175-gc182be3-x86_64-AMD_Phenom-tm-_9350e_Quad-Core_Processor-with-gentoo-2.0.1 Timestamp of tree: Sat, 31 Oct 2009 19:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.4, 3.1.1-r1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.6.3, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="arm" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=armv4t -mtune=arm920t -Os -pipe" CHOST="armv4tl-softfloat-linux-gnueabi" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=armv4t -mtune=arm920t -Os -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--root-deps --with-bdeps y" FEATURES="assume-digests buildpkg ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs preserved-rebuild protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirrors.evolva.ro/gentoo http://ftp.roedu.net/pub/mirrors/gentoo.org http://mirrors.xservers.ro/gentoo http://distfiles.gentoo.org" LANG="ro_RO.UTF-8" LC_ALL="ro_RO.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="ro en eo" MAKEOPTS="-j5 --load-average=8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/usr/armv4tl-softfloat-linux-gnueabi/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/openmoko/trunk/openmoko-target" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X accessibility arm consolekit cracklib crypt dbus fam glib hal iconv ipv6 jpeg lzma mng ncurses nls nptl pam passwdqc pch policykit readline sdl sha512 sqlite ssl symlink tiff truetype tslib unicode xcb xml xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="tslib" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ro en eo" USERLAND="GNU" VIDEO_CARDS="fbdev" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= media-libs/glew-1.5.1 was built with the following: USE=""
I manged too work around this by changing the ebuild to pass the C++ compiler as CC but I think that's too hacky for portage
@embedded: Guys, may be you have a better clue of what is going on in this bug.
the glew ebuild needs fixing to not use -L/usr/X11R6/lib ... that path makes no sense anymore in any ebuild i dont think that'll fix the error here though. the cross-toolchain should already know to search the private gcc dirs for libraries like libstdc++ ... what if you try to link your own code like: echo 'main(){}' > test.c armv4tl-softfloat-linux-gnueabi-gcc test.c -lGLU
(In reply to comment #5) > the glew ebuild needs fixing to not use -L/usr/X11R6/lib ... that path makes no > sense anymore in any ebuild > > i dont think that'll fix the error here though. the cross-toolchain should > already know to search the private gcc dirs for libraries like libstdc++ ... > > what if you try to link your own code like: > echo 'main(){}' > test.c > armv4tl-softfloat-linux-gnueabi-gcc test.c -lGLU armv4tl-softfloat-linux-gnueabi-gcc test.c -lGLU /usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: warning: libGL.so.1, needed by /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so, not found (try using -rpath or -rpath-link) /usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: warning: libstdc++.so.6, needed by /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so, not found (try using -rpath or -rpath-link) /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glEvalMesh1' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glTranslated' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glMap1f' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glNormal3f' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glEnd' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator new[](unsigned int)@GLIBCXX_3.4' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glEnable' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glEvalPoint1' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glPopAttrib' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glEvalCoord1f' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glDisable' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glMap2f' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glMultMatrixf' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glEvalMesh2' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glMapGrid2f' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glPushAttrib' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glTexCoord2f' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glMapGrid1f' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glTexImage3D' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glOrtho' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glPolygonMode' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glTranslatef' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `__gxx_personality_v0@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `__cxa_end_cleanup@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glPixelStorei' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glGetIntegerv' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator delete[](void*)@GLIBCXX_3.4' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glScalef' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glMultMatrixd' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glTexImage2D' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glBegin' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glNormal3fv' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glVertex3f' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glMapGrid2d' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glVertex2fv' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glGetString' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glColor3f' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glEvalPoint2' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glVertex3fv' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glGetTexLevelParameteriv' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.3' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glTexImage1D' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `operator new(unsigned int)@GLIBCXX_3.4' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glVertex2f' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glGetFloatv' /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so: undefined reference to `glEvalCoord2f' collect2: ld returned 1 exit status
Note that `armv4tl-softfloat-linux-gnueabi-gcc test.c -lGLU -lGL -lstdc++` works.
(In reply to comment #5) > the glew ebuild needs fixing to not use -L/usr/X11R6/lib ... that path makes no > sense anymore in any ebuild that's been fixed. however, i don't think this is a glew problem per Comment #6
*** Bug 595500 has been marked as a duplicate of this bug. ***
*** Bug 521182 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 549994 ***