Login  Register

Re: Problems building JOGL: [cc] /usr/bin/ld: cannot find -lstdc++

Posted by rmshelby on Dec 17, 2014; 12:03am
URL: https://forum.jogamp.org/Problems-building-JOGL-cc-usr-bin-ld-cannot-find-lstdc-tp4033761p4033765.html

OK, I removed the 32bit libstdc++:

[root@obsidian lib]# rpm -q libstdc++ libstdc++-devel
libstdc++-4.8.3-7.fc20.x86_64
libstdc++-4.8.3-7.fc20.i686
libstdc++-devel-4.8.3-7.fc20.x86_64
[root@obsidian lib]# rpm --nodeps -e libstdc++-4.8.3-7.fc20.i686
[root@obsidian lib]# rpm -q libstdc++ libstdc++-devel
libstdc++-4.8.3-7.fc20.x86_64
libstdc++-devel-4.8.3-7.fc20.x86_64

Subsequently running the build on JOGL produced the same result:

       [cc] Starting dependency analysis for 47 files.
       [cc] 47 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 0 total files to be compiled.
       [cc] 0 total files to be compiled.
       [cc] Starting link
       [cc] /usr/bin/ld: cannot find -lstdc++
       [cc] collect2: error: ld returned 1 exit status

BUILD FAILED
/home/shelby/science/neuro/jworkspace/jogl/make/build.xml:83: The following error occurred while executing this line:
/home/shelby/science/neuro/jworkspace/jogl/make/build-oculusvr.xml:710: The following error occurred while executing this line:
/home/shelby/science/neuro/jworkspace/jogl/make/build-oculusvr.xml:613: The following error occurred while executing this line:
/home/shelby/science/neuro/jworkspace/jogl/make/build-oculusvr.xml:555: gcc failed with return code 1

Total time: 26 seconds


So it seems the presence of the 32bit libstdc++ is not the issue.  Something else is going on.

Bob Shelby