64bit Ubuntu problem

Archives Forums/Linux Discussion/64bit Ubuntu problem

D4NM4N(Posted 2008) [#1]
/usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libGL.so when searching for -lGL
/usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL

This is what i am getting. I dont remember this problem on 32 bit. I have installed all the normal packs. as described in the install guide :/

Any ideas?


skidracer(Posted 2008) [#2]
On 64 bit ia32-libs is a prerequisite.


D4NM4N(Posted 2008) [#3]
aha, thanks. :)

Perhaps 'someone' could post that in the install guide ;p
(Its still on 5.10!)


D4NM4N(Posted 2008) [#4]
Wait a minute i have that already :O

Any other ideas before i panic and run back to the cover of safe 32bit?
Also getting when i try and rebuild all modules :
Compiling:blitz_app.c
In file included from /usr/include/features.h:345,
                 from /usr/include/ctype.h:27,
                 from /home/dan/BlitzMax/mod/pub.mod/stdc.mod/stdc.h:5,
                 from /home/dan/BlitzMax/mod/brl.mod/blitz.mod/blitz.h:5,
                 from /home/dan/BlitzMax/mod/brl.mod/blitz.mod/blitz_app.c:2:
/usr/include/gnu/stubs.h:7:27: gnu/stubs-32.h: No such file or directory
Build Error: failed to compile /home/dan/BlitzMax/mod/brl.mod/blitz.mod/blitz_app.c
Process complete


mabe relevent


D4NM4N(Posted 2008) [#5]
Ok, i think i solved that lot with:
sudo ln -s -T /usr/include/gnu/stubs-64.h /usr/include/gnu/stubs-32.h


But i am still getting cannot find -IGL error when compiling :(


Perturbatio(Posted 2008) [#6]
http://www.blitzbasic.com/Community/posts.php?topic=52964#591942

Any use?


D4NM4N(Posted 2008) [#7]
Not really, its for Ubuntu 5.10, the deb link doesnt work. Says something about duplicates

Thanks for the try tho :)

I can now compile the modules too just not any samples.


dawlane(Posted 2008) [#8]
I wouldn't worry about the skipping incompatible libs bit. have you tried linking the glut libs. Here's an earlier topic http://www.blitzbasic.com/Community/posts.php?topic=76068


D4NM4N(Posted 2008) [#9]
Ok, i added:

sudo ln -s /usr/lib32/libGL.so.1 /usr/lib32/libGL.so

Now im getting;

Linking:digesteroids.debug
/usr/bin/ld: skipping incompatible /usr/lib/libGLU.so when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/lib/libGLU.a when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib/libGLU.so when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib/libGLU.a when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../libGLU.so when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../libGLU.a when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libGLU.so when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libGLU.a when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libGLU.so when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libGLU.a when searching for -lGLU
/usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libX11.a when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib/libX11.a when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../libX11.a when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libX11.a when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.a when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
Build Error: Failed to link /home/dan/BlitzMax/samples/digesteroids/digesteroids.deb

I attempted to use my instinct and do the same with libGLU but nothing changes :/


dawlane(Posted 2008) [#10]
Have you tried sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so ?


D4NM4N(Posted 2008) [#11]
Oooh looks promising!

Am i correct in assuming that these skip messages are because its trying the 64 bit ones first and then resolving the 32bit ones?

I think i am beginning to get what this is doing.. (why these links cannot be there to start with is beyond me!)

I managed to create similar links for libXxf86vm, libasound and libstdc++ but am now stuck.

/usr/bin/ld: cannot find -lm

I have no /usr/lib32/libm.so to work with :/

(edit) ok thats in /lib32/ for some reason

sorted

now i got libgcc.a causing the problem.

/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/./libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc

I located it in /usr/lib/gcc-lib but theres no 32bit version.


dawlane(Posted 2008) [#12]
Which version of Ubuntu are you using ?. Be warned that rebuilding the module will screw things up with gcc 4+ in the 64bit enviroment.

You may find it easier to do a clean install of BlitzMax and do the following..

sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so
sudo ln -s /usr/lib32/libGLU.so.1 /usr/lib32/libGLU.so
sudo ln -s /usr/lib32/libXxf86vm.so.1 /usr/lib32/libXxf86vm.so
sudo ln -s /usr/lib32/libstdc++.so.6 /usr/lib32/libstdc++.so
sudo apt-get install gcc-multilib
sudo ln -s /usr/lib32/libGL.so.1 /usr/lib32/libGL.so

So far I have managed to build the modules successfully, but have hit a problem when compiling a project with the rebuilt modules (can't find -lgcc)


D4NM4N(Posted 2008) [#13]
Using 7.10 64bit standard. Im using GCC 3.3


D4NM4N(Posted 2008) [#14]
Hmm, that multilib thing was not installed but doesnt seem to have made much difference


dawlane(Posted 2008) [#15]
Here's a the place to dig around for the libs http://packages.ubuntu.com/gutsy/

You will just have to look in the packages for the files

CRAP! I think I screwed up my gcc


dawlane(Posted 2008) [#16]
There is a libgcc_s.so.1 in the lib32 directory you could try a link to that (libgcc.so) ?

It will take me some time to try as some how a screwed up the system completely after removing some dead wood (guess it wasn't so dead after all lol)


dawlane(Posted 2008) [#17]
BIG PROBLEM!

g++-3.3/gcc-3.3 doesn't have a multilib version (no 32bit libs) :(
So you wont be able to build any modules (you can but your applications wont link and linking g++-3.3/gcc-3.3 to their 4.1+ counter parts will not work either (applications throw exceptions))


D4NM4N(Posted 2008) [#18]
im going back to 32 bit where everything just works.

To be honest I noticed no major performance improvements when using 64bit, although my processor is only a basic 3ghz celeron-M 64 so that could be why.


dawlane(Posted 2008) [#19]
This looks like it could be a way to get those pesky g++3.3 32bit libs http://ubuntuforums.org/showthread.php?t=24575

I don't know why I didn't think of this before.

I will look it this the next time I install Ubuntu 64.