Hi Bibek --

I'm not much of a perl expert but, at a glance, I'd guess that these warnings 
you're getting would happen for any perl script you'd run on that machine (at 
least, any one written in the Chapel style?).  That said, I think those are 
just annoying warnings and not a real concern -- following their instructions 
would probably silence them (google might help as well, if nobody else on this 
alias has suggestions?).

The real problem is the following line:


sh: 1: bc: not found


We rely on 'bc' (the command-line calculator) to determine what the equivalent 
Chapel types are for C's standard types during the build process.  I'm a little 
surprised that the build continues on without generating an error here -- I 
will look into that.  So the easiest way to get a working system would be to 
install 'bc' and re-make.

Alternatively, you could hand-generate the SysCTypes.chpl file that it's 
looking for.  It should end up in 
$CHPL_HOME/modules/standard/gen/$CHPL_TARGET_PLATFORM-$CHPL_TARGET_COMPILER/SysCTypes.chpl
 (you can get those $CHPL_* values by running $CHPL_HOME/util/printchplenv, but 
you'll get a ton more perl warnings probably.

Here's the definition on my system, for example.  The goal is to define all the 
c_* types in terms of the equivalent Chapel types that match in size:

extern type c_int = int(32);
extern type c_uint = uint(32);
extern type c_long = int(64);
extern type c_ulong = uint(64);
extern type c_longlong = int(64);
extern type c_ulonglong = uint(64);
extern type c_char = int(8);
extern type c_schar = int(8);
extern type c_uchar = uint(8);
extern type c_short = int(16);
extern type c_ushort = uint(16);
extern type ssize_t = int(64);
extern type size_t = uint(64);
extern type c_void_ptr; // opaque; no ptr arithmetic in Chapel code!

{
  pragma "no prototype"
  extern proc sizeof(type t): size_t;

  assert(sizeof(c_int) == sizeof(int(32)));
  assert(sizeof(c_uint) == sizeof(uint(32)));
  assert(sizeof(c_long) == sizeof(int(64)));
  assert(sizeof(c_ulong) == sizeof(uint(64)));
  assert(sizeof(c_longlong) == sizeof(int(64)));
  assert(sizeof(c_ulonglong) == sizeof(uint(64)));
  assert(sizeof(c_char) == sizeof(int(8)));
  assert(sizeof(c_schar) == sizeof(int(8)));
  assert(sizeof(c_uchar) == sizeof(uint(8)));
  assert(sizeof(c_short) == sizeof(int(16)));
  assert(sizeof(c_ushort) == sizeof(uint(16)));
  assert(sizeof(ssize_t) == sizeof(int(64)));
  assert(sizeof(size_t) == sizeof(uint(64)));
}

Hope this helps,
-Brad


________________________________
From: Bibek Ghimire [[email protected]]
Sent: Wednesday, March 26, 2014 7:49 PM
To: [email protected]; Bibek Ghimire
Subject: compiling chapel

Hey everyone,
          I have been trying to install chapel in my university(LSU)  machine ( 
debian linux) which has multi nodes in it. I keep on getting


perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LC_CTYPE = "UTF-8",

LANG = "en_US.UTF-8"

    are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:


every time and end up getting error when I try to compile simple hello world.

Full error below :


http://paste.ofcode.org/Q6QthwY3dUfzZCWaSepawY



------------------------------------------------------------------------------
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users

Reply via email to