charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Fernando Stump <fstump2 AT illinois.edu>
- To: Pritish Jetley <pjetley2 AT illinois.edu>
- Cc: charm AT cs.uiuc.edu
- Subject: Re: [charm] [ppl] Compiling with automake
- Date: Mon, 7 Mar 2011 11:59:46 -0600
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
It seems to create the object without any warning, look the result
ae-dhcp184:test_charmc fstump2$ g++ -fPIC -Wno-deprecated -DCMK_GFORTRAN
-I/Users/fstump2/myLibs/charm-6.2/net-darwin-x86-gfortran-gcc/bin/../include
-D__CHARMC__=1 -I/opt/local/include -I/Users/fstump2/lib/include
-I/usr/lib/include -g -c conftest.cpp -o conftest.o
ae-dhcp184:test_charmc fstump2$
Attached are the cpp and obj created.
Attachment:
conftest.cpp
Description: Binary data
Attachment:
conftest.o
Description: Binary data
I've also tried:
ae-dhcp184:test_charmc fstump2$
/Users/fstump2/myLibs/charm-6.2/net-darwin-x86-gfortran-gcc/bin/charmc
-verbose -g -I/opt/local/include -I/Users/fstump2/lib/include
-I/usr/lib/include -L/opt/local/lib -L/Users/fstump2/lib/lib conftest.cpp -o
conftest.o -lloki
Verbose mode set
Adding file conftest.cpp...
charmc> ----------- Module dependency search complete ------------
Compiling conftest.cpp
charmc: Executing rm -f conftest.o conftest.f.o
charmc: Executing g++ -fPIC -Wno-deprecated -DCMK_GFORTRAN
-I/Users/fstump2/myLibs/charm-6.2/net-darwin-x86-gfortran-gcc/bin/../include
-D__CHARMC__=1 -I/opt/local/include -I/Users/fstump2/lib/include
-I/usr/lib/include -g -c conftest.cpp -o conftest.o
charmc> Converting conftest.cpp to conftest.o
ae-dhcp184:test_charmc fstump2$ ls
conftest.bkp conftest.cpp conftest.o
which is a little different from what automake writes. And it works.
There may be a way to inform automake to write '-o conftest.o' and match
charmc syntax.
Thanks
On Mar 7, 2011, at 11:36 AM, Pritish Jetley wrote:
> Could you send us the output of
>
> g++ -fPIC -Wno-deprecated -DCMK_GFORTRAN
> -I/Users/fstump2/myLibs/charm-6.2/net-darwin-x86-gfortran-gcc/bin/../include
> -D__CHARMC__=1 -I/opt/local/include -I/Users/fstump2/lib/include
> -I/usr/lib/include -g -c conftest.cpp -o conftest.o
>
> where conftest.cpp contains the code that autoconf identifies as the
> "failed program":
>
> /* confdefs.h */
> #define PACKAGE_NAME "yafeq"
> #define PACKAGE_TARNAME "yafeq"
> #define PACKAGE_VERSION "0.0.1"
> #define PACKAGE_STRING "yafeq 0.0.1"
> #define PACKAGE_BUGREPORT "Alejandro Aragon
> <alejandro.aragon AT gmail.com>"
> #define PACKAGE_URL ""
> #define PACKAGE "yafeq"
> #define VERSION "0.0.1"
> /* end confdefs.h. */
>
> int
> main ()
> {
>
> ;
> return 0;
> }
>
> Thanks,
> Pritish
>
> On Mon, Mar 7, 2011 at 10:57 AM, Fernando Stump
> <fstump2 AT illinois.edu>
> wrote:
>> Hi,
>>
>> I'm trying to parallelize a finite element (FE) code with ParFum. The FE
>> code uses automake to create the makefiles. I'm using g++ (gcc) to compile
>> it.
>>
>> If I try to substitute CXX=g++ to CXX=charmc, when I call ./configure I
>> get ab error because charmc cannot create a executable. Below is the error
>> log.
>>
>> Is thee any manual/tutorial about using automake (or cmake) with charm++
>> or ParFum
>>
>> Thanks
>> Fernando
>>
>>
>> configure:5192:
>> /Users/fstump2/myLibs/charm-6.2/net-darwin-x86-gfortran-gcc/bin/charmc
>> -verbose -g -I/opt/local/include -I/Users/fstump2/lib/include
>> -I/usr/lib/include -L/opt/local/lib -L/Users/fstump2/lib/lib conftest.cpp
>> -lloki >&5
>> Verbose mode set
>> Adding file conftest.cpp...
>> charmc> ----------- Module dependency search complete ------------
>> Compiling conftest.cpp
>> charmc: Executing rm -f conftest.o conftest.f.o
>> charmc: Executing g++ -fPIC -Wno-deprecated -DCMK_GFORTRAN
>> -I/Users/fstump2/myLibs/charm-6.2/net-darwin-x86-gfortran-gcc/bin/../include
>> -D__CHARMC__=1 -I/opt/local/include -I/Users/fstump2/lib/include
>> -I/usr/lib/include -g -c conftest.cpp -o conftest.o
>> charmc> No target object-- finished
>> configure:5196: $? = 0
>> configure:5234: result: no
>> configure: failed program was:
>> | /* confdefs.h */
>> | #define PACKAGE_NAME "yafeq"
>> | #define PACKAGE_TARNAME "yafeq"
>> | #define PACKAGE_VERSION "0.0.1"
>> | #define PACKAGE_STRING "yafeq 0.0.1"
>> | #define PACKAGE_BUGREPORT "Alejandro Aragon
>> <alejandro.aragon AT gmail.com>"
>> | #define PACKAGE_URL ""
>> | #define PACKAGE "yafeq"
>> | #define VERSION "0.0.1"
>> | /* end confdefs.h. */
>> |
>> | int
>> | main ()
>> | {
>> |
>> | ;
>> | return 0;
>> | }
>> configure:5239: error: in
>> `/Users/fstump2/Documents/workspace/LibFEM/ssmlib/yafeq_non_linear':
>> configure:5241: error: C++ compiler cannot create executables
>>
>>
>> _______________________________________________
>> charm mailing list
>> charm AT cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/charm
>> _______________________________________________
>> ppl mailing list
>> ppl AT cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/ppl
>>
>
>
>
> --
> Pritish Jetley
> Doctoral Candidate, Computer Science
> University of Illinois at Urbana-Champaign
- [charm] Compiling with automake, Fernando Stump, 03/07/2011
- Re: [charm] [ppl] Compiling with automake, Pritish Jetley, 03/07/2011
- Re: [charm] [ppl] Compiling with automake, Fernando Stump, 03/07/2011
- Re: [charm] [ppl] Compiling with automake, Gengbin Zheng, 03/07/2011
- Re: [charm] [ppl] Compiling with automake, Fernando Stump, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Fernando Stump, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Gengbin Zheng, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Fernando Stump, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Gengbin Zheng, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Phil Miller, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Fernando Stump, 03/08/2011
- Message not available
- Message not available
- Re: [charm] [ppl] Compiling with automake, Fernando Stump, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Gengbin Zheng, 03/08/2011
- Message not available
- Message not available
- Re: [charm] [ppl] Compiling with automake, Fernando Stump, 03/09/2011
- Re: [charm] [ppl] Compiling with automake, Fernando Stump, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Gengbin Zheng, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Fernando Stump, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Fernando Stump, 03/08/2011
- Re: [charm] [ppl] Compiling with automake, Pritish Jetley, 03/07/2011
Archive powered by MHonArc 2.6.16.