[Rd] xerbla called from BLAS routine (PR#8100)

gb@stat.umu.se gb at stat.umu.se
Sun Aug 28 13:58:51 CEST 2005

Full_Name: Göran Broström
Version: R-2.1.1, 2.2.0
OS: Debian unstable
Submission from: (NULL) (

Some BLAS routines call xerbla for error messages, which results in a message
"LAPACK routine DGER gave error code -9".

Suggested solution: In 

void F77_NAME(xerbla)(char *srname, int *info)
   /* srname is not null-terminated.  It should be 6 characters. */
    char buf[7];
    strncpy(buf, srname, 6);
    buf[6] = '\0';
    error(_("LAPACK routine '%6s' gave error code %d"), buf, -(*info));

change 'LAPACK' to 'The' (or 'The BLAS/LAPACK').

More information about the R-devel mailing list