Hide Forgot
I did spec2006 tests and got the following compiling errors for 64bit build: EtherLLC_n.cc:12:17: fatal error: cmath: No such file or directoryEtherAppSrv_n.cc:12:17: fatal error: cmath: No such file or directoryEtherHost_n.cc:12:17: fatal error: cmath: No such file or directoryEtherAppCli_n.cc:12:17: fatal error: cmath: No such file or directory compilation terminated. compilation terminated. compilation terminated. EtherEncap_n.cc:12:17: fatal error: cmath: No such file or directory compilation terminated. In file included from omnet_include/omnetpp.h:20:0, from EtherHub.cc:23: omnet_include/defs.h:23:33: fatal error: cmath: No such file or directory compilation terminated. compilation terminated. EtherHub_n.cc:12:17: fatal error: cmath: No such file or directory compilation terminated. In file included from omnet_include/omnetpp.h:20:0, from EtherApp_m.h:8, from EtherApp_m.cc:11: omnet_include/defs.h:23:33: fatal error: cmath: No such file or directory compilation terminated. In file included from omnet_include/omnetpp.h:20:0, from EtherFrame_m.h:8, from EtherFrame_m.cc:11: omnet_include/defs.h:23:33: fatal error: cmath: No such file or directoryIn file included from omnet_include/omnetpp.h:20:0, from EtherCtrl_m.h:8, from EtherCtrl_m.cc:11: omnet_include/defs.h:23:33: fatal error: cmath: No such file or directory compilation terminated. compilation terminated. EtherBus_n.cc:12:17: fatal error: cmath: No such file or directory compilation terminated. In file included from omnet_include/omnetpp.h:20:0, from EtherLLC.cc:24: omnet_include/defs.h:23:33: fatal error: cmath: No such file or directory compilation terminated. In file included from omnet_include/omnetpp.h:20:0, from EtherBus.cc:27: omnet_include/defs.h:23:33: fatal error: cmath: No such file or directory compilation terminated. In file included from omnet_include/omnetpp.h:20:0, from EtherAppSrv.cc:21: omnet_include/defs.h:23:33: fatal error: cmath: No such file or directory compilation terminated. In file included from omnet_include/omnetpp.h:20:0, from EtherEncap.cc:24: omnet_include/defs.h:23:33: fatal error: cmath: No such file or directory compilation terminated. EtherAppCli.cc:22:17: fatal error: cmath: No such file or directory compilation terminated. specmake: *** [EtherEncap_n.o] Error 1 specmake: *** Waiting for unfinished jobs.... specmake: *** [EtherAppCli_n.o] Error 1 specmake: *** [EtherCtrl_m.o] Error 1 specmake: *** [EtherHost_n.o] Error 1 specmake: *** [EtherApp_m.o] Error 1 specmake: *** [EtherBus_n.o] Error 1 specmake: *** [EtherHub.o] Error 1 specmake: *** [EtherAppSrv_n.o] Error 1 specmake: *** [EtherHub_n.o] Error 1 specmake: *** [EtherFrame_m.o] Error 1 specmake: *** [EtherLLC_n.o] Error 1 specmake: *** [EtherBus.o] Error 1 specmake: *** [EtherLLC.o] Error 1 specmake: *** [EtherEncap.o] Error 1 specmake: *** [EtherAppCli.o] Error 1 specmake: *** [EtherAppSrv.o] Error 1 Error with make 'specmake -j16 build': check file '/tmp/cpu2006/benchspec/CPU2006/471.omnetpp/build/build_base_base_64.0000/make.err' Command returned exit code 2 Error with make! *** Error building 471.omnetpp If you wish to ignore this error, please use '-I' or ignore errors. The cmd I did was bin/runspec -c pat_base_64 --iterations=1 --size=ref all and got above errors. Appears the compiler is not looking in the correct place for C++ includes. [root@c57f1ju0203 ~]# cat junk.cc #include <cmath> [root@c57f1ju0203 ~]# g++ -c junk.cc junk.cc:1:17: fatal error: cmath: No such file or directory compilation terminated. If you add -v to the above command you'll see the following lines in the output: ignoring nonexistent directory "/usr/local/lib/gcc/powerpc64-linux/4.6.2/../../../../include/c++/4.6.2" ignoring nonexistent directory "/usr/local/lib/gcc/powerpc64-linux/4.6.2/../../../../include/c++/4.6.2/powerpc64-linux" ignoring nonexistent directory "/usr/local/lib/gcc/powerpc64-linux/4.6.2/../../../../include/c++/4.6.2/backward" ignoring nonexistent directory "/usr/local/lib/gcc/powerpc64-linux/4.6.2/../../../../powerpc64-linux/include" #include "..." search starts here: #include <...> search starts here: /usr/local/lib/gcc/powerpc64-linux/4.6.2/include /usr/local/include /usr/local/lib/gcc/powerpc64-linux/4.6.2/include-fixed /usr/include End of search list. There is no /usr/local/include/c++/4.6.2 subdirectory, but there are the following two, which do contain 'cmath'. /usr/include/c++/4.6.2 (although this dir contains a "ppc64-redhat-linux" subdir as opposed to "powerpc64-linux" noted above, so possibly a separate issue) /usr/local/include/c++/4.6.1 So I did a test: by removing the codes in /usr/local/include , then the compiling can go on. So it means it doesn't go on to search other pathes like /usr/include , etc. after it didn't find the header in /usr/local/include/. == Comment: == An easier way to produce the failure, as opposed to trying to build SPEC is the simple example that follows. [root@c57f1ju0203 ~]# cat junk.cc #include <cmath> [root@c57f1ju0203 ~]# g++ -c junk.cc junk.cc:1:17: fatal error: cmath: No such file or directory compilation terminated.
The distro compiler isn't configured to look up headers in /usr/local/ tree appart from /usr/local/include, so when it is looking in /usr/local/lib/gcc/powerpc64-linux/4.6.2/../../../../include/c++/4.6.2 it is clearly some compiler you've built yourself, not the distro compiler.