I am trying to install AMD x86 Open64 on Scientific Linux 6.2 amd64 on a custom folder...
If I have lib/gcc-lib/x86_64-open64-linux/4.5.1/64 in LD_LIBRARY_PATH and if I try to compile a simple program, I get the following error:
lib/gcc-lib/x86_64-open64-linux/4.5.1/wgen42: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64
If I use lib/gcc-lib/x86_64-open64-linux/4.5.1/32 then it works.
so I wonder, why do I have to use 32bit libraries on 64bit os ? am I doing something wrong?