Hi there,
I'm new to arm,cross compiling and all.I have successfully installed dmtcp
on my x86_64 Ubuntu PC and verified the working.But, while trying build it
for ARM board i'm getting following error.
export CC=arm-linux-gnueabihf-gcc
export LD=arm-linux-gnueabihf-ld
export CXX=arm-linux-gnueabihf-g++
export CPP=arm-linux-gnueabihf-cpp
export CFLAGS=-Wall
export CXXFLAGS=-Wall
./configure --build=x86_64-unknown-linux-gnu --host=arm-linux-gnueabihf
--prefix=/home/acs/Desktop/user_space_suspend/dmtcp/build_arm
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-gnueabihf-strip... arm-linux-gnueabihf-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnueabihf
checking for arm-linux-gnueabihf-ranlib... arm-linux-gnueabihf-ranlib
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for arm-linux-gnueabihf-gcc... arm-linux-gnueabihf-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gnueabihf-gcc accepts -g... yes
checking for arm-linux-gnueabihf-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of arm-linux-gnueabihf-gcc... gcc3
checking how to run the C preprocessor... arm-linux-gnueabihf-cpp
checking whether we are using the GNU C++ compiler... yes
checking whether arm-linux-gnueabihf-g++ accepts -g... yes
checking dependency style of arm-linux-gnueabihf-g++... gcc3
checking for arm-linux-gnueabihf-gcc option to support OpenMP... -fopenmp
checking for arm-linux-gnueabihf-g++ option to support OpenMP... -fopenmp
checking whether posix mq_open works... no
checking whether GNU_HASH is supported for ELF... no
checking whether PR_SET_PTRACER is an option for prctl()... no
checking if process_vm_readv/process_vm_writev (CMA) available... checking
for process_vm_readv... yes
yes
checking for readline in -lreadline... no
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking readline/history.h usability... no
checking readline/history.h presence... no
checking for readline/history.h... no
checking for ps... yes
checking for python... yes
checking for dash... yes
checking for tcsh... no
checking for zsh... no
checking for vim... yes
checking for vim... /usr/bin/vim
checking for emacs... no
checking for emacs-nox... no
checking for script... yes
checking for screen... no
checking for screen... no
checking for strace... yes
checking for gdb... yes
checking for java... yes
checking for javac... yes
checking for cilkc... no
checking for cilkc... no
checking for gcl... no
checking for gcl... no
checking for matlab... no
checking for matlab... no
checking linux/version.h usability... yes
checking linux/version.h presence... yes
checking for linux/version.h... yes
checking for gzip... yes
Checking for password-less 'ssh localhost'... no
checking for mpicc.openmpi... /usr/bin/mpicc.openmpi
checking for mpirun.openmpi... /usr/bin/mpirun.openmpi
checking for sys/epoll.h... yes
checking for sys/eventfd.h... yes
checking for sys/signalfd.h... yes
checking for sys/inotify.h... yes
checking for arm-linux-gnueabihf-gcc atomic builtins... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/ckptfile/Makefile
config.status: creating contrib/infiniband/Makefile
config.status: creating plugin/Makefile
config.status: creating src/Makefile
config.status: creating src/mtcp/Makefile
config.status: creating src/plugin/Makefile
config.status: creating test/Makefile
config.status: creating test/autotest_config.py
config.status: creating test/plugin/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
Then when i run make, getting error like below
DMTCP version: 2.5.0-rc1
Date built: Mon Mar 7 17:59:26 IST 2016
config.log: ./configure --build=x86_64-unknown-linux-gnu
--host=arm-linux-gnueabihf
--prefix=/home/acs/Desktop/user_space_suspend/dmtcp/build_arm
Description: Ubuntu 14.04.4 LTS
Codename: trusty
Linux acs 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016
x86_64 x86_64 x86_64 GNU/Linux
libc version: ldd (Ubuntu EGLIBC 2.19-0ubuntu6.7) 2.19
Compiler: arm-linux-gnueabihf-gcc
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.8.2-16ubuntu4' --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/arm-linux-gnueabihf/include/c++/4.8.2
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --disable-libmudflap --disable-libitm
--disable-libquadmath --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-armhf-cross/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-armhf-cross
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-armhf-cross
--with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--disable-libgcj --enable-objc-gc --enable-multiarch --enable-multilib
--disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16
--with-float=hard --with-mode=thumb --disable-werror
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf-
--includedir=/usr/arm-linux-gnueabihf/include
Thread model: posix
gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4)
CFLAGS: -Wall
CXXFLAGS: -Wall
CPPFLAGS:
LDFLAGS:
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
/bin/mkdir -p ./bin
/bin/mkdir -p ./lib/dmtcp
rm -f src/config.h
cd src && make
make[1]: Entering directory `/home/acs/dmtcp/dmtcp/src'
Making all in mtcp
make[2]: Entering directory `/home/acs/dmtcp/dmtcp/src/mtcp'
arm-linux-gnueabihf-gcc -I../../include -I. -Wall -c -o mtcp_restart.o
-DPIC -fPIC -fno-stack-protector -g -O0 mtcp_restart.c
In file included from mtcp_restart.c:55:0:
mtcp_util.ic: In function ‘mtcp_strtol’:
mtcp_sys.h:486:35: error: expected expression before ‘)’ token
mtcp_syscall(SYS_##name, args)
^
mtcp_sys.h:258:35: note: in expansion of macro ‘mtcp_inline_syscall’
#define mtcp_sys_getpid(args...) mtcp_inline_syscall(getpid,0)
^
mtcp_util.h:27:17: note: in expansion of macro ‘mtcp_sys_getpid’
mtcp_sys_getpid(), __FILE__, __LINE__, __FUNCTION__); \
^
mtcp_util.ic:58:7: note: in expansion of macro ‘MTCP_PRINTF’
MTCP_PRINTF("Error converting str to int\n");
^
mtcp_sys.h:486:35: error: expected expression before ‘)’ token
mtcp_syscall(SYS_##name, args)
^
mtcp_sys.h:258:35: note: in expansion of macro ‘mtcp_inline_syscall’
#define mtcp_sys_getpid(args...) mtcp_inline_syscall(getpid,0)
^
mtcp_util.h:27:17: note: in expansion of macro ‘mtcp_sys_getpid’
mtcp_sys_getpid(), __FILE__, __LINE__, __FUNCTION__); \
^
mtcp_util.h:34:5: note: in expansion of macro ‘MTCP_PRINTF’
MTCP_PRINTF("Assertion failed: %s\n", #condition); \
^
mtcp_util.ic:61:5: note: in expansion of macro ‘MTCP_ASSERT’
MTCP_ASSERT(c < base);
^
mtcp_util.ic: In function ‘mtcp_mkdir’:
mtcp_sys.h:486:35: error: expected expression before ‘)’ token
mtcp_syscall(SYS_##name, args)
^
mtcp_sys.h:258:35: note: in expansion of macro ‘mtcp_inline_syscall’
#define mtcp_sys_getpid(args...) mtcp_inline_syscall(getpid,0)
^
mtcp_util.h:27:17: note: in expansion of macro ‘mtcp_sys_getpid’
mtcp_sys_getpid(), __FILE__, __LINE__, __FUNCTION__); \
^
mtcp_util.h:34:5: note: in expansion of macro ‘MTCP_PRINTF’
MTCP_PRINTF("Assertion failed: %s\n", #condition); \
^
mtcp_util.ic:226:3: note: in expansion of macro ‘MTCP_ASSERT’
MTCP_ASSERT(len < PATH_MAX);
^
mtcp_util.ic: In function ‘mtcp_readfile’:
mtcp_sys.h:486:35: error: expected expression before ‘)’ token
mtcp_syscall(SYS_##name, args)
^
mtcp_sys.h:258:35: note: in expansion of macro ‘mtcp_inline_syscall’
#define mtcp_sys_getpid(args...) mtcp_inline_syscall(getpid,0)
^
mtcp_util.h:27:17: note: in expansion of macro ‘mtcp_sys_getpid’
mtcp_sys_getpid(), __FILE__, __LINE__, __FUNCTION__); \
^
mtcp_util.ic:269:11: note: in expansion of macro ‘MTCP_PRINTF’
MTCP_PRINTF(" failed to read after 10 tries in a row.\n");
^
mtcp_sys.h:486:35: error: expected expression before ‘)’ token
mtcp_syscall(SYS_##name, args)
^
mtcp_sys.h:258:35: note: in expansion of macro ‘mtcp_inline_syscall’
#define mtcp_sys_getpid(args...) mtcp_inline_syscall(getpid,0)
^
mtcp_util.h:27:17: note: in expansion of macro ‘mtcp_sys_getpid’
mtcp_sys_getpid(), __FILE__, __LINE__, __FUNCTION__); \
^
mtcp_util.ic:274:9: note: in expansion of macro ‘MTCP_PRINTF’
MTCP_PRINTF("error %d reading checkpoint\n", mtcp_sys_errno);
^
mtcp_sys.h:486:35: error: expected expression before ‘)’ token
mtcp_syscall(SYS_##name, args)
^
mtcp_sys.h:258:35: note: in expansion of macro ‘mtcp_inline_syscall’
#define mtcp_sys_getpid(args...) mtcp_inline_syscall(getpid,0)
^
mtcp_util.h:27:17: note: in expansion of macro ‘mtcp_sys_getpid’
mtcp_sys_getpid(), __FILE__, __LINE__, __FUNCTION__); \
^
mtcp_util.ic:275:9: note: in expansion of macro ‘MTCP_PRINTF’
MTCP_PRINTF("only read %u bytes instead of %u from checkpoint
file\n",
^
mtcp_util.ic: In function ‘mtcp_skipfile’:
mtcp_sys.h:486:35: error: expected expression before ‘)’ token
mtcp_syscall(SYS_##name, args)
^
mtcp_sys.h:258:35: note: in expansion of macro ‘mtcp_inline_syscall’
#define mtcp_sys_getpid(args...) mtcp_inline_syscall(getpid,0)
^
mtcp_util.h:27:17: note: in expansion of macro ‘mtcp_sys_getpid’
mtcp_sys_getpid(), __FILE__, __LINE__, __FUNCTION__); \
^
mtcp_util.ic:306:5: note: in expansion of macro ‘MTCP_PRINTF’
MTCP_PRINTF("mtcp_sys_mmap() failed with error: %d", mtcp_sys_errno);
^
...........
please help me to find the issue
version of arm-linux-gnueabihf-gcc is 4.8.2
--
Regards,
Shyamjith K V
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Dmtcp-forum mailing list
Dmtcp-forum@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum