Skip to Content.
Sympa Menu

charm - Re: [charm] charm bug report

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] charm bug report


Chronological Thread 
  • From: Gengbin Zheng <gzheng AT illinois.edu>
  • To: Robert Konecny <rok AT ucsd.edu>
  • Cc: Charm ML <charm AT cs.uiuc.edu>
  • Subject: Re: [charm] charm bug report
  • Date: Thu, 30 Apr 2009 01:31:12 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>


Hi,

Thanks for catching this error and letting me know. I have checked in your fix to charm cvs.
In future, you can email any charm-related question/comments to charm mailing list at: charm AT cs.uiuc.edu.

Gengbin

Robert Konecny wrote:
Hi,

didn't know really where to send this - if you are not the right person to report a charm bug please forward it to one -- thanks!

Wanted to let you know that a recent charm version build fails on Linux 2.6.28-11 (Ubuntu 9.04) with Intel compiler 11.0. The offending line is in src/arch/net/charmrun/charmrun.c. The error is (building with './build charm++ net-linux-x86_64 iccstatic -j1 -O2 -DCMK_OPTIMIZE'):

In function ‘open’,
inlined from ‘input_scanf_chars’ at charmrun.c:1325:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
Fatal Error by charmc in directory
/home/rok/namd-cvs/T/namd2/charm/net-linux-x86_64-iccstatic/tmp/charmrun
Command gcc -fPIC -m64 -m64 -fPIC -DCMK_SEQUENTIAL=1
-I../../bin/../include -D__CHARMC__=1 -DCMK_OPTIMIZE -DNOTIFY -O2 -c
charmrun.c -o charmrun.o returned error code 1
charmc exiting...


The attached patch fixes this (although this could be fixed more cleanly, I guess).

Thanks,

Robert



--- charmrun.c.orig 2009-04-23 14:46:33.000000000 -0700
+++ charmrun.c 2009-04-29 22:09:00.000000000 -0700
@@ -1322,7 +1322,7 @@ char *input_scanf_chars(fmt)
char *tmp=tmpnam(NULL);/*This was once /tmp/fnord*/
#endif
unlink(tmp);
- fd = open(tmp,O_RDWR | O_CREAT | O_TRUNC);
+ fd = open(tmp,O_RDWR | O_CREAT | O_TRUNC, 0666 );
if (fd<0) { fprintf(stderr,"cannot open temp file /tmp/fnord");
exit(1);




  • Re: [charm] charm bug report, Gengbin Zheng, 04/30/2009

Archive powered by MHonArc 2.6.16.

Top of Page