Re: problems compiling charm++ for clustermatic 4

From: Mike Grommet (mgrommet_at_yahoo.com)
Date: Tue Dec 16 2003 - 08:47:52 CST

I pulled the latest source, but it still fails to
compile:

In file included from ccs-client.c:53:
sockRoutines.c: In function `skt_innode_lookup_ip':
sockRoutines.c:244: warning: passing arg 2 of
`bproc_nodeaddr' from incompatible pointer type
../bin/charmc -build-shared -o ../lib/libccs-client.a
ccs-client.o
Warning: creating ../lib_so/libccs-client.so
../bin/charmc: line 1: f90: command not found
Fatal Error by charmc in directory
/root/charm/net-linux-clustermatic/tmp
Command f90 -p../bin/../include -D__CHARMC__=1
-I../bin/../include -c fmain.f90 -o fmain.o returned
error code 127
charmc exiting...
make[2]: [fmain-ok] Error 1 (ignored)
cp: cannot stat `fmain.o': No such file or directory
make[2]: [fmain-ok] Error 1 (ignored)
../bin/charmc -seq -o sockRoutines-seq.o
sockRoutines.c
if [ -d charmrun ] ; then ( cd charmrun ; make
OPTS='-build-shared' ) ; fi
make[3]: Entering directory
`/root/charm/net-linux-clustermatic/tmp/charmrun'
../../bin/charmc -build-shared -c -seq -DSILENT
charmrun.c
In file included from charmrun.c:11:
../sockRoutines.c: In function `skt_innode_lookup_ip':
../sockRoutines.c:244: warning: passing arg 2 of
`bproc_nodeaddr' from incompatible pointer type
charmrun.c: In function `bproc_nodeisup':
charmrun.c:1865: conflicting types for `status'
charmrun.c:1859: previous declaration of `status'
charmrun.c:1869: incompatible types in assignment
charmrun.c:1872: warning: return makes integer from
pointer without a cast
charmrun.c:1872: warning: function returns address of
local variable
Fatal Error by charmc in directory
/root/charm/net-linux-clustermatic/tmp/charmrun
Command gcc -DCMK_SEQUENTIAL=1 -D__CHARMC__=1 -DSILENT
-I../../bin/../include -c charmrun.c -o charmrun.o
returned error code 1
charmc exiting...
make[3]: *** [charmrun-notify] Error 1
make[3]: Leaving directory
`/root/charm/net-linux-clustermatic/tmp/charmrun'
make[2]: *** [charmrun-target] Error 2
make[2]: Leaving directory
`/root/charm/net-linux-clustermatic/tmp'
make[1]: *** [converse] Error 2
make[1]: Leaving directory
`/root/charm/net-linux-clustermatic/tmp'
make: *** [charm++] Error 2
-------------------------------------------------
Charm++ NOT BUILT. Either cd into
net-linux-clustermatic/tmp and try
to resolve the problems yourself, visit
    http://charm.cs.uiuc.edu/

--- Zheng Gengbin <gzheng_at_students.uiuc.edu> wrote:
>
> Hi,
>
> I have wrote some code based on the <bproc.h> header
> file I downloaded
> from the bproc 4 rpm. Hopefully it should get
> Charm++ working on
> clustermatic 4 with the new bproc.
>
> Since I have no access to clustermatic 4, so I can't
> test it.
> Please download the charm from CVS (not from the web
> in tar.gz format)
> and compile it to see if the compilation has been
> fixed.
> Also you can try a simple charm++ program at
> charm/net-linux-scyld/pgms/charm++/simplearrayhello
>
> Please let me know if it works, thanks,
>
> Gengbin
>
> On Tue, 16 Dec 2003, Zheng Gengbin wrote:
>
> >
> > Hi,
> >
> > The BPROC library comes with clustermatic 4 is not
> compatible with the old
> > version. That is why it is failing.
> > I am working on a fix now and will let you know
> when it is available,
> > thanks,
> >
> > Gengbin
> >
> > On Mon, 15 Dec 2003, Mike Grommet wrote:
> >
> > > My mistake -- I pointed out the wrong location
> where
> > > compilation fails...
> > >
> > > if I cd to net-linux-clustermatic/tmp, and run
> make:
> > >
> > > In file included from charmrun.c:11:
> > > ../sockRoutines.c: In function
> `skt_innode_lookup_ip':
> > > ../sockRoutines.c:244: warning: passing arg 2 of
> > > `bproc_nodeaddr' from incompatible pointer type
> > > charmrun.c: In function
> `nodetab_init_for_scyld':
> > > charmrun.c:1894: too few arguments to function
> > > `bproc_nodestatus'
> > > charmrun.c:1894: `bproc_node_up' undeclared
> (first use
> > > in this function)
> > > charmrun.c:1894: (Each undeclared identifier is
> > > reported only once
> > > charmrun.c:1894: for each function it appears
> in.)
> > >
> > >
> > >
> > > --- Mike Grommet <mgrommet_at_yahoo.com> wrote:
> > > > Hi guys. I'm trying to build namd for
> clustermatic
> > > > 4
> > > > and are running into fun and interesting
> issues...
> > > > Any
> > > > ideas? A long email, but I really wanted to
> give
> > > > you
> > > > guys accurate and useful info.
> > > >
> > > > OS: Redhat 9
> > > > Clustermatic V. 4
> > > > Building from NAMD v 2.5 source distribution.
> > > >
> > > > I'm using the charm tarball that is included
> in the
> > > > NAMD source distribution... and executing:
> > > >
> > > > ./build charm++ net-linux clustermatic
> > > >
> > > > I've followed the instructions for compiling
> namd
> > > > from
> > > > source and have run into this. Sorry about
> the
> > > > length
> > > > of the log, but I thought you might need all
> output.
> > > >
> > > > The build process can't find f90. Not sure
> how
> > > > fatal
> > > > this is... A few lines further, the build
> process
> > > > grips that it couldn't find pup_f.f90
> > > >
> > > > I'm hoping i don't need this... from what I
> can
> > > > tell,
> > > > this is a commercial product...
> > > >
> > > > The error where the build process dies is:
> > > >
> > > > sockRoutines.c: In function
> `skt_innode_lookup_ip':
> > > > sockRoutines.c:244: warning: passing arg 2 of
> > > > `bproc_nodeaddr' from incompatible pointer
> type
> > > >
> > > >
> > > > I also grabbed the source distro of charm++
> off of
> > > > the
> > > > website (2.5.2) -- but clustermatic isn't an
> > > > available
> > > > option in the build script.
> > > >
> > > > I then pulled the cvs source and built using
> the
> > > > command above and had the same results as with
> the
> > > > pre-packaged charm.tar.
> > > >
> > > > Any help would be most appreciated!
> > > >
> > > >
> > > >
> > > > =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2003.12.15
> > > > 23:51:36
> > > > =~=~=~=~=~=~=~=~=~=~=~=
> > > >
> > > > Selected Compiler:
> > > > Selected Options: clustermatic
> > > > Creating dir: net-linux-clustermatic
> > > > Creating dir: net-linux-clustermatic/tmp
> > > > Copying src/scripts/Makefile to
> > > > net-linux-clustermatic/tmp
> > > > Soft-linking over bin
> > > > Soft-linking over lib
> > > > Soft-linking over lib_so
> > > > Soft-linking over include
> > > > Soft-linking over tmp
> > > > Generating
> > > > net-linux-clustermatic/tmp/conv-mach-pre.sh
> > > > Generating
> > > > net-linux-clustermatic/tmp/conv-mach-opt.h,
> > > > conv-mach-opt.sh
> > > > Performing 'make charm++ OPTS=' in
> > > > net-linux-clustermatic/tmp
> > > > rm -f .gdir
> > > > (cd .. ; basename "`pwd`" | sed -e 's_at_-.*@@')
> >
> > > > .gdir
> > > > pwd
> > > >
> > >
>
/home/mgrommet/namdsrc/NAMD_2.5_Source/charm/net-linux-clustermatic/tmp
> > > > find . -type l -exec rm {} \;
> > > > rm -rf QuickThreads
> > > > rm -rf libs
> > > > rm -rf ../bin ; mkdir ../bin
> > > > rm -rf ../lib ; mkdir ../lib
> > > > rm -rf ../lib_so ; mkdir ../lib_so
> > > > rm -rf ../pgms
> > > > rm -rf ../doc ; ln -s ../doc ../doc
> > > > ../../src/scripts/gatherflat ../../src/scripts
> .
> > > > ./gatherflat ../../src/conv-core .
> > > > ./gatherflat ../../src/conv-ldb .
> > > > ./gatherflat ../../src/conv-ccs .
> > > > ./gatherflat ../../src/conv-perf .
> > > > ./gatherflat ../../src/ck-core .
> > > > ./gatherflat ../../src/util .
> > > > ./gatherflat ../../src/ck-perf .
> > > > ./gatherflat ../../src/ck-ldb .
> > > > ./gatherflat ../../src/langs/simplemsg .
> > > > ./gatherflat ../../src/langs/pvmc .
> > > > ./gatherflat ../../src/langs/bluegene .
> > > > ./gatherflat ../../src/langs/f90charm .
> > > > ./gatherflat ../../src/xlat-i .
> > > > ./gatherflat ../../src/xlatcpm .
> > > > ./gathertree ../../src/QuickThreads
> QuickThreads
> > > > ./gathertree ../../src/libs libs
> > > > ./gathertree ../../src/arch/util .
> > > > ./gathertree ../../src/langs langs
> > > > ./gathertree ../../src/arch/common .
> > > > ./gathertree ../../src/arch/`cat .gdir` .
> > > > ./gatherflat ../../src/arch/`cat .vdir` .
> > > > ./gathertree ../../pgms ../pgms
> > > > rm -f ../bin/charmc ; cp charmc ../bin/
> > > > chmod +x ../bin/charmc
> > > > rm -f .gdir
> > > > rm -rf ../include ; mkdir ../include
> > > > ./system_ln ../tmp/conv-*.*h ../include
>
=== message truncated ===

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:37:14 CST