Skip to Content.
Sympa Menu

charm - [charm] building AMPI

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

[charm] building AMPI


Chronological Thread 
  • From: "Alberto" <alberto.ortiz09 AT gmail.com>
  • To: charm AT lists.cs.illinois.edu
  • Subject: [charm] building AMPI
  • Date: Thu, 16 Mar 2017 11:41:56 -0500

Hello,
I am trying to build AMPI in a dual-core ARM processor running ArchLinux OS.
I have tried the net-linux-arm7 version but I get errors on migration and
haven't been able to solve them. This has encouraged me to try and build other
versions, which all gave errors probably due to using ArchLinux. The dual-core
ARMs are 32-bit, so I have tried building with:
'./build AMPI netlrts-linux syncft gcc -g -O0 -DCMK_USE_MEMPOOL_ISOMALLOC=1'
I used the compiler option 'gcc' as it gave me erros trying the option g++ -
m32, which didn't work probably because ArchLinux doesn't use g++. Even
though, I have a file linking g++ to gcc, but '-m32' seems to not be
recognized by gcc.
Using this type of build seemed to go correctly, but later on it gave the
following error:

ar: creating ../lib/libmemory-hooks-charmdebug.a
cp threads.c libthreads-default.c
( make -C QuickThreads clean )
make[1]: Entering directory '/home/artico1/charm/netlrts-linux-syncft-gcc/tmp/
QuickThreads'
rm -f qtmd.h libqt.a libstp.a meas.o stp.o qt.o
rm -f qtmdb.s qtmds.s qtmdc.o qtmdb.o qtmds.o run
rm -f Makefile
make[1]: Leaving directory '/home/artico1/charm/netlrts-linux-syncft-gcc/tmp/
QuickThreads'
( cd QuickThreads;./configure )
Running configure on i386-gcc
( make -C QuickThreads qt OPTS='-g -O0 -DCMK_USE_MEMPOOL_ISOMALLOC=1 -Wno-
error' ) || ( echo "Did you try to build net-linux on a 64-bit system? Try
net-linux-x86_64" && false )
make[1]: Entering directory '/home/artico1/charm/netlrts-linux-syncft-gcc/tmp/
QuickThreads'
rm -f qtmd.h
ln -s md/i386.h qtmd.h
../../bin/charmc -seq -I. -o qt.o qt.c
In file included from qt.c:2:0:
qt.h:149:8: warning: type defaults to 'int' in declaration of 'qt_abort' [-
Wimplicit-int]
extern qt_abort (qt_helper_t *h, void *a0, void *a1, qt_t *newthread);
^~~~~~~~
as --32 -o qtmds.o md/i386.s
as: unrecognized option '--32'
make[1]: *** [Makefile:11: qt] Error 1
make[1]: Leaving directory '/home/artico1/charm/netlrts-linux-syncft-gcc/tmp/
QuickThreads'
Did you try to build net-linux on a 64-bit system? Try net-linux-x86_64

Suggesting to try a 64-bit version. The ARMs, as I mentioned before, are 32-
bit, so this shouldn't be the problem. Even though, and just to be sure, I
tried building with:
'./build AMPI netlrts-linux-x86_64 syncft gcc -g -O0 -
DCMK_USE_MEMPOOL_ISOMALLOC=1'
And, as expected, some errors came out as the binaries made were not 64-bit:

../bin/../include/conv-config.h:57:2: error: #error "Compiler not generating
64 bit binary, please check compiler flags."
#error "Compiler not generating 64 bit binary, please check compiler flags."
^~~~~
Fatal Error by charmc in directory /home/artico1/charm/netlrts-linux-x86_64-
syncft-gcc/tmp
Command g++ -fPIC -Wno-deprecated -I../bin/../include -D__CHARMC__=1 -
I../../src/xlat-i/ -I../../src/xlat-i/sdag/ -I. -c ../../src/xlat-i/xi-main.C
-o xi-main.o returned error code 1
charmc exiting...
make[1]: *** [<builtin>: xi-main.o] Error 1
make[1]: Leaving directory '/home/artico1/charm/netlrts-linux-x86_64-syncft-
gcc/tmp'
make: *** [Makefile:281: headers] Error 2



Archive powered by MHonArc 2.6.19.

Top of Page