[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

gcc-c++ on an x86_64 bit platform



I'm trying to make a 64 bit build of openmpi-1.2.3 on a x86_64 bit machine running RHEL 4 with a 2.6.9-55.0.2.ELsmp I have the following gcc-c++ packages installed
compat-gcc-32-c++.x86_64                 3.2.3-47.3
libstdc++.i386                           3.4.6-8
libstdc++.x86_64                         3.4.6-8
gcc-c++.x86_64                           3.4.6-8
gcc4-c++.x86_64                          4.1.1-53.EL4

I am getting the following errors when I run the configure script bundled with openmpi:
In file included from conftest.cc:99:
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/string:45:28: bits/c++config.h: No such file or directory In file included from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_algobase.h:70, from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/char_traits.h:46, from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/string:47,
                 from conftest.cc:99:
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/iosfwd:46:29: bits/c++locale.h: No such file or directory <snipped>

if I do a find for the headers, I get this:

[openmpi-1.2.3]$ find /usr/include/ -name string -print
/usr/include/c++/3.2.3/string
/usr/include/c++/3.4.3/debug/string
/usr/include/c++/3.4.3/string
/usr/include/c++/3.3.4/string
[openmpi-1.2.3]$ find /usr/include/ -name c++config.h -print
/usr/include/c++/3.2.3/x86_64-redhat-linux/bits/c++config.h
/usr/include/c++/3.4.3/i386-redhat-linux/bits/c++config.h
/usr/include/c++/3.3.4/x86_64-redhat-linux/bits/c++config.h

/usr/include/c++/3.4.6 is a symblink to /usr/include/3.4.3, and /usr/include.c++/3.4.3/string looks like this:

#include <bits/c++config.h>
#include <bits/stringfwd.h>
#include <bits/char_traits.h>
#include <memory>       // For allocator.
#include <bits/type_traits.h>
#include <iosfwd>       // For operators >>, <<, and getline decls.
#include <bits/stl_iterator.h>
#include <bits/stl_function.h>  // For less
#include <bits/basic_string.h>

Do I need to edit the header file to point to the correct /usr/include/c++/3.4.3/x86_64-redhat-linux/bits/c++config.h, or is there an RPM that I'm missing? I would symblink /usr/include/c++/3.4.3/bits to /usr/include/c++/3.4.3/i386-redhat-linux/bits, but there are files in the directory already.

Any advice?
                  Spencer Davis


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]