Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291383 - cross-xxx/gcc: linking libs (linked with C++) with gcc fails: libstdc++.so.6, needed by /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libGLU.so, not found
Summary: cross-xxx/gcc: linking libs (linked with C++) with gcc fails: libstdc++.so.6,...
Status: RESOLVED DUPLICATE of bug 549994
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Crossdev team
URL:
Whiteboard:
Keywords:
: 521182 595500 (view as bug list)
Depends on:
Blocks: crossdev-bugs
  Show dependency tree
 
Reported: 2009-10-31 22:23 UTC by Andrei Slavoiu
Modified: 2018-04-07 18:59 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,5.26 KB, text/plain)
2009-10-31 22:26 UTC, Andrei Slavoiu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2009-10-31 22:23:16 UTC
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:
Comment 1 Andrei Slavoiu 2009-10-31 22:26:43 UTC
Created attachment 208906 [details]
build.log
Comment 2 Andrei Slavoiu 2009-10-31 22:28:11 UTC
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=""
Comment 3 Andrei Slavoiu 2009-10-31 22:32:37 UTC
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
Comment 4 Víctor Ostorga (RETIRED) gentoo-dev 2009-11-02 22:58:39 UTC
@embedded: Guys, may be you have a better clue of what is going on in this bug.
Comment 5 SpanKY gentoo-dev 2009-11-02 23:22:08 UTC
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
Comment 6 Andrei Slavoiu 2009-11-03 21:45:51 UTC
(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
Comment 7 Andrei Slavoiu 2009-11-03 21:47:51 UTC
Note that `armv4tl-softfloat-linux-gnueabi-gcc test.c -lGLU -lGL -lstdc++` works.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-07-30 03:04:44 UTC
(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
Comment 9 SpanKY gentoo-dev 2016-12-10 05:39:35 UTC
*** Bug 595500 has been marked as a duplicate of this bug. ***
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2018-04-07 18:28:48 UTC
*** Bug 521182 has been marked as a duplicate of this bug. ***
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2018-04-07 18:59:13 UTC

*** This bug has been marked as a duplicate of bug 549994 ***