From: Gengbin Zheng (gzheng_at_ks.uiuc.edu)
Date: Wed Aug 31 2005 - 14:18:07 CDT
Hi Jason,
I see. mpi-ppc-darwin did not work with xlc compiler until now. I have
fixed that in both cvs versions of charm-5.9 and current development branch.
You can download the latest charm-5.9 source from cvs at (binaries have
not been updated):
http://charm.cs.uiuc.edu/download/downloads.phtml
Gengbin
Jason Lee wrote:
> Hi, Gengbin:
>
> Thank you very much for your reply. However our hardware has changed
> a little bit. So I have to compile NAMD to run on myrinet by using
> MPICH-GM on MacOS X. So I am using the following command.
>
> ./build AMPI mpi-ppc-darwin gm xlc
> --libdir=/Users/j0l6571/bin/mpich-gm-underscore/lib/shared
> --incdir=/Users/j0l6571/bin/mpich-gm-underscore/include -O >&
> build-mine.log &
>
> So I think it will use the ./src/arch/common/cc-xlc.sh, in which the
> xlC_r -qstaticinline will be used as CMK_CXX. So I have the following
> output.
>
> ./configure
> checking machine name... mpi-ppc-darwin-gm-xlc
> set C++ compiler as: xlC_r -qstaticinline
> checking "whether C++ compiler works"... "no"
> Cannot compile C++ programs with xlC_r -qstaticinline
> (check your charm++ version)
> make[1]: *** [conv-autoconfig.h] Error 1
> make: *** [headers] Error 2
> -------------------------------------------------
> Charm++ NOT BUILT. Either cd into mpi-ppc-darwin-gm-xlc/tmp and try
> to resolve the problems yourself, visit
> http://charm.cs.uiuc.edu/
> for more information. Otherwise, email the developers at ppl_at_cs.uiuc.ed
>
>> From your information, I think I have to change cc-xlc.sh file that
>> xlc++_r
>
> -qstaticinline will be CMK_CXX. Is my understanding right?
>
> Appreciate your time and help.
> Jason
>
>
>
>
>> From: Gengbin Zheng <gzheng_at_ks.uiuc.edu>
>> To: Jason Lee <hellocunning_at_hotmail.com>
>> CC: namd-l_at_ks.uiuc.edu, ppl_at_cs.uiuc.edu
>> Subject: Re: namd-l: Re: Charmm++5.9 build on Mac OS X by IB xlc
>> compiler
>> Date: Wed, 31 Aug 2005 12:32:56 -0500
>>
>>
>> Did you actually use
>> xlc++_r -qstaticinline -qnocommon -qpic
>> to compile the hello program?
>> Charm is configured to use xlc++_r instead xlC_r (which is xlc_r for
>> C since Max is case-insensitive)
>>
>> Gengbin
>>
>> Jason Lee wrote:
>>
>>>
>>> Dear Gengbin
>>>
>>> I have checked our xlc compiler. I use xlC_r -qstaticinline to
>>> compile the following program, which works. But it still tells me
>>> that xlC_r -qstaticinline doesn't work. Could you give me any
>>> suggestion?
>>>
>>> Appreciate your help.
>>> Jason
>>>
>>> ./build AMPI mpi-ppc-darwin gm xlc -O
>>>
>>> #include <stdio.h>
>>> main()
>>> {
>>> (void) printf("Hello World\n");
>>> return (0);
>>> }
>>>
>>>
>>>> From: Gengbin Zheng <gzheng_at_ks.uiuc.edu>
>>>> To: Jason Lee <hellocunning_at_hotmail.com>
>>>> CC: namd-l_at_ks.uiuc.edu, ppl_at_cs.uiuc.edu
>>>> Subject: namd-l: Re: Charmm++5.9 build on Mac OS X by IB xlc compiler
>>>> Date: Tue, 09 Aug 2005 11:59:15 -0500
>>>>
>>>>
>>>> Hi Jason,
>>>>
>>>> You may want to check whether your xlc++_r compiler command is in
>>>> your path and make sure the compiler is working by writing a
>>>> simplest hello program:
>>>>
>>>> hello.C:
>>>> <<<<<<<<<<<<<<<<<<<<
>>>> int main()
>>>> {
>>>> }
>>>> >>>>>>>>>>>>>>>>>>>>>
>>>>
>>>> and compile it like:
>>>>
>>>> xlc++_r -qstaticinline -qnocommon -qpic hello.C
>>>>
>>>> Gengbin
>>>>
>>>> Jason Lee wrote:
>>>>
>>>>> Hello, there,
>>>>>
>>>>> I am trying to compile Charm++ on Mac OS X by using xlc compiler.
>>>>> However I encounter a very simple problem, checking "whether C++
>>>>> compiler works"... "no". I have tried a lot of options. Neither of
>>>>> them is successful. I have downloaded the latest version of charm++.
>>>>>
>>>>> Command and output of one option are attached. Appreciate any
>>>>> suggestion.
>>>>>
>>>>> ./build charm++ net-ppc-darwin xlc > charm5.9_build.log &
>>>>> Selected Compiler: xlc
>>>>> Selected Options:
>>>>> Creating dir: net-ppc-darwin-xlc
>>>>> Creating dir: net-ppc-darwin-xlc/tmp
>>>>> Copying src/scripts/Makefile to net-ppc-darwin-xlc/tmp
>>>>> Soft-linking over bin
>>>>> Soft-linking over lib
>>>>> Soft-linking over lib_so
>>>>> Soft-linking over include
>>>>> Soft-linking over tmp
>>>>> Generating net-ppc-darwin-xlc/tmp/conv-mach-pre.sh
>>>>> Generating net-ppc-darwin-xlc/tmp/conv-mach-opt.h, conv-mach-opt.sh
>>>>> Performing 'make charm++ OPTS=' in net-ppc-darwin-xlc/tmp
>>>>> rm -f .gdir
>>>>> (cd .. ; basename "`pwd`" | sed -e 's_at_-.*@@') > .gdir
>>>>> pwd
>>>>> /Volumes/Export/Users/j0l5860/namd/namd2.6b1/NAMD_2.6b1_Source/charm/net-ppc-darwin-xlc/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; touch ../lib_so/.charmso
>>>>> rm -rf ../examples
>>>>> rm -rf ../tests
>>>>> 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/ck-com .
>>>>> ./gatherflat ../../src/conv-com .
>>>>> ./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/langs/jade langs/jade
>>>>> ./gathertree ../../src/arch/common .
>>>>> ./gathertree ../../src/arch/`cat .gdir` .
>>>>> ./gatherflat ../../src/arch/`cat .vdir` .
>>>>> ./gathertree ../../examples ../examples
>>>>> ./gathertree ../../tests ../tests
>>>>> rm -f ../bin/dep.pl ; cp dep.pl ../bin/
>>>>> chmod +x charmc
>>>>> ./system_ln ../tmp/charmc ../bin/
>>>>> ln -s ../../java/bin charmjavabin
>>>>> ln -s ../../java/bin ../bin/charmjavabin
>>>>> ln -s charmjavabin/* ../bin/
>>>>> ln -s ../java ..
>>>>> rm -f .gdir
>>>>> rm -rf ../include ; mkdir ../include
>>>>> ./system_ln ../tmp/conv-*.*h ../include
>>>>> ./system_ln ../tmp/cc-*.*h ../include
>>>>> if [ ! -f conv-common.h ] ; then ( touch conv-common.h ) ; fi
>>>>> touch dirs+sources
>>>>> make headerlinks
>>>>> ./configure
>>>>> checking machine name... net-ppc-darwin-xlc
>>>>> set C++ compiler as: xlc++_r -qstaticinline -qnocommon -qpic
>>>>> checking "whether C++ compiler works"... "no"
>>>>> Cannot compile C++ programs with xlc++_r -qstaticinline -qnocommon
>>>>> -qpic
>>>>> (check your charm++ version)
>>>>>
>>>>> Jason
>>>>>
>>>>> _________________________________________________________________
>>>>> Don’t just search. Find. Check out the new MSN Search!
>>>>> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>>>>
>>>>
>>>>
>>>>
>>>
>>> _________________________________________________________________
>>> Don’t just search. Find. Check out the new MSN Search!
>>> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>>
>>
>>
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today - it's
> FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:41:06 CST