[R-pkg-devel] Using BLAS on Windows

2016-11-10 Thread Vilhelm von Ehrenheim
Hi!
I've tried to submit a package to CRAN that fails to build on windows as it
cannot find BLAS.

Here is the error:
```
#> lognet.o:lognet.c:(.text+0x8c): undefined reference to `dgemv_'
#> lognet.o:lognet.c:(.text+0x3d7): undefined reference to `dgemv_'
```

It works fine to build on linux machines and I'm currently using rhub to
try and build it on windows. I got a pointer from the denied CRAN
submission that I need to set my Makevars.win properly but I can't find how
to do this is a way that makes it work on Windows. Im no windows user so i
really dont understand what im doing.

My package is located here on github:
https://github.com/while/FTRLProximal

Any help would be greatly apprechiated.

Regards,
Vilhelm von Ehrenheim

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Using BLAS on Windows

2016-11-10 Thread William Dunlap
The MGGM package has the following in src/Makevars.win to tell the linker
to link with the Lapack, BLAS, and Fortran libraries.

PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

Its Makevars file is identical - is that Makevars.win really needed?  I
don't see Makevars or Makevars.win in your github site.


Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Thu, Nov 10, 2016 at 8:38 AM, Vilhelm von Ehrenheim <
vonehrenh...@gmail.com> wrote:

> Hi!
> I've tried to submit a package to CRAN that fails to build on windows as it
> cannot find BLAS.
>
> Here is the error:
> ```
> #> lognet.o:lognet.c:(.text+0x8c): undefined reference to `dgemv_'
> #> lognet.o:lognet.c:(.text+0x3d7): undefined reference to `dgemv_'
> ```
>
> It works fine to build on linux machines and I'm currently using rhub to
> try and build it on windows. I got a pointer from the denied CRAN
> submission that I need to set my Makevars.win properly but I can't find how
> to do this is a way that makes it work on Windows. Im no windows user so i
> really dont understand what im doing.
>
> My package is located here on github:
> https://github.com/while/FTRLProximal
>
> Any help would be greatly apprechiated.
>
> Regards,
> Vilhelm von Ehrenheim
>
> [[alternative HTML version deleted]]
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Using BLAS on Windows

2016-11-10 Thread Vilhelm von Ehrenheim
No I didn't have any Makevars at all to begin with. I was just trying to
add it locallynow and using r-hub to build on windows.

However, your reply made me realize I put the file in the package root and
not in `src/`. Moving the file solved the problem and yes, it seems to be
sufficient to add only a `src/Makevars` and no Makevars.win.

Feel a bit stupid. Thank you so much for your help!


On Thu, Nov 10, 2016 at 6:34 PM, William Dunlap  wrote:

> The MGGM package has the following in src/Makevars.win to tell the linker
> to link with the Lapack, BLAS, and Fortran libraries.
>
> PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
>
> Its Makevars file is identical - is that Makevars.win really needed?  I
> don't see Makevars or Makevars.win in your github site.
>
>
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.com
>
> On Thu, Nov 10, 2016 at 8:38 AM, Vilhelm von Ehrenheim <
> vonehrenh...@gmail.com> wrote:
>
>> Hi!
>> I've tried to submit a package to CRAN that fails to build on windows as
>> it
>> cannot find BLAS.
>>
>> Here is the error:
>> ```
>> #> lognet.o:lognet.c:(.text+0x8c): undefined reference to `dgemv_'
>> #> lognet.o:lognet.c:(.text+0x3d7): undefined reference to `dgemv_'
>> ```
>>
>> It works fine to build on linux machines and I'm currently using rhub to
>> try and build it on windows. I got a pointer from the denied CRAN
>> submission that I need to set my Makevars.win properly but I can't find
>> how
>> to do this is a way that makes it work on Windows. Im no windows user so i
>> really dont understand what im doing.
>>
>> My package is located here on github:
>> https://github.com/while/FTRLProximal
>>
>> Any help would be greatly apprechiated.
>>
>> Regards,
>> Vilhelm von Ehrenheim
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-package-devel@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>>
>
>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Using BLAS on Windows

2016-11-10 Thread Duncan Murdoch

On 10/11/2016 11:38 AM, Vilhelm von Ehrenheim wrote:

Hi!
I've tried to submit a package to CRAN that fails to build on windows as it
cannot find BLAS.

Here is the error:
```
#> lognet.o:lognet.c:(.text+0x8c): undefined reference to `dgemv_'
#> lognet.o:lognet.c:(.text+0x3d7): undefined reference to `dgemv_'
```

It works fine to build on linux machines and I'm currently using rhub to
try and build it on windows. I got a pointer from the denied CRAN
submission that I need to set my Makevars.win properly but I can't find how
to do this is a way that makes it work on Windows. Im no windows user so i
really dont understand what im doing.

My package is located here on github:
https://github.com/while/FTRLProximal

Any help would be greatly apprechiated.


Pretty commonly packages have a Makevars.win file containing a single 
line like:


PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

I don't know if you need LAPACK and Fortran libs; try it without those 
if you want.  R will set the macros appropriately when it is built.


Duncan Murdoch

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel