Skip to content
Back to formatted view

Raw Message

Message-ID: <23175.16430.235663.229445@rob.eddelbuettel.com>
Date: 2018-02-16T20:33:50Z
From: Dirk Eddelbuettel
Subject: [R-pkg-devel] configuration failed on win-builder
In-Reply-To: <fc4413de-2562-0603-fdb9-70ce84fe3f3d@ifom.eu>

Hi Carmen,

On 15 February 2018 at 19:45, Carmen M. Livi wrote:
| when submiting my R-package to CRAN I get the following error from the 
| windows machine:
| 
| * installing *source* package 'spp' ...
| ./configure.win: 2: Syntax error: word unexpected (expecting ")")
| ERROR: configuration failed for package 'spp'
| * removing 'd:/RCompile/CRANguest/R-devel/lib/spp'
| In R CMD INSTALL
| 
| The package I am submitting is using a configure file.
| I have a "configure" script generated with autoconf that reads 
| configure.ac (for linux) and configure.win (for windows).

"That reads" ?  Normaly, the autoconf tools _create_ configure from
configure.ac.  For Windows, configure.win is usually completely different and
hand-written.

The are literally hundreds of examples at CRAN which you could study.

| It works fine on linux.
| 
| Looking at the error it seems (to me) that win-builder tries to execute 
| configure.win instead of configure.

Yes. As documented.  See "Writing R Extensions"

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org