charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: "ion.mironescu" <ion.mironescu AT ulbsibiu.ro>
- To: charm AT cs.uiuc.edu
- Subject: Re: [charm] problems with compiling charm++ programs on Cell
- Date: Wed, 23 Jun 2010 19:18:26 +0300
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
Hello Phil,
Thank you very much for your replay! Issue 2 is solved with your solution.
> Which build target of Charm did you download or compile? It should
> look something like "net-linux-x86_64".
actualy it is net-linux-cell
>> 2) when i try to compile anyting from the test or examples directories i
>> received this error messages
>>
>> ./../../bin/charmc -language charm++ -o hello hello.o -lm
>> main__funcLookup__.genSPECode.o: In function `__vsqrtf':
>> main__funcLookup__.genSPECode.c:(.text+0x1bf4): undefined reference to
>> `sqrt'
>> main__funcLookup__.genSPECode.c:(.text+0x1c20): undefined reference to
>> `sqrt'
>> main__funcLookup__.genSPECode.c:(.text+0x1c4c): undefined reference to
>> `sqrt'
>> main__funcLookup__.genSPECode.c:(.text+0x1c78): undefined reference to
>> `sqrt'
>> main__funcLookup__.genSPECode.o: In function `__vsqrtlf':
>> main__funcLookup__.genSPECode.c:(.text+0x1cc8): undefined reference to
>> `sqrt'
>>
main__funcLookup__.genSPECode.o:main__funcLookup__.genSPECode.c:(.text+0x1cec):
>> more undefined references to `sqrt' follow
>> collect2: ld returned 1 exit status
>> Fatal Error by charmc in directory
>>
/export/home/ncit-cluster/ncit/trainingintel/mironescu/charm-6.2.0/tests/charm++/simplearrayhello
>> Command spu-gcc -Wl,-N -L../../../bin/../lib -o
>> main__funcLookup__.genSPECode main__funcLookup__.genSPECode.o -lcellspu
>> returned error code 1
>> charmc exiting...
>>
>> Normaly sqrt should be defined in math.h wich is not anymore included
>> for
>> Cell in the same simd.h ( where the offending function _vsqrt is
also
>> defined)
>>
>> I tried to include math.h and to link with the math library (-lm)
but
>> nothing works.
>>
>> It seems to be more a link as an include probleme but i don't have a
>> clue.
>
> This is purely a library linking error, not a header inclusion error.
> I don't know if this is a good solution, but in the file conv-mach.sh,
> you might try adding -lm to the line defining CMK_SPERT_LIBS, so that
> the SPE linker knows to pull that in.
It worked! Thanks a lot!
With my best regards
Ion
Acest mesaj a fost trimis prin ULBS WebMail (www.ulbsibiu.ro) si scanat
contra virusilor cu BitDefender Enterprise for Linux (www.bitdefender.ro).
- [charm] problems with compiling charm++ programs on Cell, ion.mironescu, 06/23/2010
- Re: [charm] problems with compiling charm++ programs on Cell, Phil Miller, 06/23/2010
- Re: [charm] problems with compiling charm++ programs on Cell, ion.mironescu, 06/23/2010
- Re: [charm] problems with compiling charm++ programs on Cell, Phil Miller, 06/23/2010
Archive powered by MHonArc 2.6.16.