[PowerGraph] compile on one machine, but can not run on the other machine

User 2603 | 11/14/2015, 10:57:53 AM

Hi, I have two machines, call them as A and B. I compile the code on A, I can run the program on A. But I can not run the same binary file on B. It shows the error "Illegal instruction (core dumped)",

---------------------------the information of A: Linux server2 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x8664 x8664 x8664 GNU/Linux CPU: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz g++ -v Using built-in specs. COLLECTGCC=g++ COLLECTLTOWRAPPER=/usr/lib/gcc/x8664-linux-gnu/4.8/lto-wrapper Target: x8664-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x8664-linux-gnu --host=x8664-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)

Thu Nov 12 19:29:18 PHT 2015 System Information:

40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015

Compiler Information: gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

----------------------------The information of B: Linux server1 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x8664 x8664 x8664 GNU/Linux CPU:Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz yiyong@server1:~$ g++ -v Using built-in specs. COLLECTGCC=g++ COLLECTLTOWRAPPER=/usr/lib/gcc/x8664-linux-gnu/4.8/lto-wrapper Target: x8664-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x8664-linux-gnu --host=x8664-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)

Comments

User 1592 | 11/14/2015, 3:40:54 PM

It seems the machine configuration is not identical and this is why you are getting an error. Can you compile on machine B and run there and let us know if this works.


User 2603 | 11/15/2015, 4:13:05 AM

Yes, I compile it on B, it can run on B. But can not run on A


User 1592 | 11/15/2015, 6:18:06 AM

That proves your machines are not identical...


User 2603 | 11/15/2015, 6:55:49 AM

They have different CPU. Does it matter?


User 2745 | 12/7/2015, 2:56:56 AM

I have come across this problem. You should check out your linux kernel version because different kernel has different libs. PowerGraph requires the machines running together to be all same.