Skip to content
Prev 4955 / 12125 Next

[R-pkg-devel] CRAN cannot find libraries on Windows

Thanks everyone for your help. It's still giving me the same error on the
development win-builder and on AppVeyor. Truncated install logs for both
are below. I'm not sure that Rhtslib 1.91.1 (the one with the new changes)
is being used on win-builder, which is why I've included the AppVeyor
results?hopefully they're useful for what might happen on CRAN.


## APPVEYOR

* installing *source* package 'jackalope' ...
** using staged installation
** libs

*** arch - i386
C:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/RLibrary/zlibbioc/include"
-I"c:/R/include" -DNDEBUG -I../inst/include/ -D_FILE_OFFSET_BITS=64
-I'C:/RLibrary/Rcpp/include' -I'C:/RLibrary/RcppArmadillo/include'
-I'C:/RLibrary/RcppProgress/include' -I'C:/RLibrary/Rhtslib/include'
-I'C:/RLibrary/zlibbioc/include'
-I"C:/projects/BUILD/R-source-win32/extsoft/include"     -O2 -Wall
 -mfpmath=sse -msse2 -c RcppExports.cpp -o RcppExports.o
C:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/RLibrary/zlibbioc/include"
-I"c:/R/include" -DNDEBUG -I../inst/include/ -D_FILE_OFFSET_BITS=64
-I'C:/RLibrary/Rcpp/include' -I'C:/RLibrary/RcppArmadillo/include'
-I'C:/RLibrary/RcppProgress/include' -I'C:/RLibrary/Rhtslib/include'
-I'C:/RLibrary/zlibbioc/include'
-I"C:/projects/BUILD/R-source-win32/extsoft/include"     -O2 -Wall
 -mfpmath=sse -msse2 -c alter_reference.cpp -o alter_reference.o

[...]

C:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o jackalope.dll
tmp.def RcppExports.o alter_reference.o create_sequences.o hts_illumina.o
hts_pacbio.o io_fasta.o io_ms.o io_vcf.o mutator.o mutator_indels.o
mutator_subs.o phylogenomics.o ref_var_access.o sub_models.o util.o
var_classes.o vars_ssites.o -lws2_32 -Lc:/R/bin/i386 -lRlapack
-Lc:/R/bin/i386 -lRblas -lgfortran -lm -lquadmath
C:/RLibrary/Rhtslib/usrlib/i386/libhts.a
-LC:/projects/BUILD/R-source-win32/extsoft/lib/i386 -lcurl -lrtmp -lssl
-lssh2 -lcrypto -lgdi32 -lz -lws2_32 -lwldap32 -lwinmm -lidn
-LC:/RLibrary/zlibbioc/libs/i386 -lzlib1bioc
-LC:/projects/BUILD/R-source-win32/extsoft/lib/i386
-LC:/projects/BUILD/R-source-win32/extsoft/lib -Lc:/R/bin/i386 -lR
C:/Rtools/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lcurl
C:/Rtools/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lrtmp
C:/Rtools/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lssl
C:/Rtools/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lssh2
C:/Rtools/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lcrypto
C:/Rtools/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lidn
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'jackalope'
* removing 'C:/projects/jackalope/jackalope.Rcheck/jackalope'


## WIN-BUILDER
* installing *source* package 'jackalope' ...
** using staged installation
** libs

*** arch - i386
d:/Compiler/gcc-4.9.3/mingw_32/bin/g++  -std=gnu++11
-I"D:/RCompile/CRANpkg/lib/4.0/zlibbioc/include"
-I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/
-D_FILE_OFFSET_BITS=64 -I'D:/RCompile/CRANpkg/lib/4.0/Rcpp/include'
-I'D:/RCompile/CRANpkg/lib/4.0/RcppArmadillo/include'
-I'D:/RCompile/CRANpkg/lib/4.0/RcppProgress/include'
-I'D:/RCompile/CRANpkg/lib/4.0/Rhtslib/include'
-I'D:/RCompile/CRANpkg/lib/4.0/zlibbioc/include'
-I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c
RcppExports.cpp -o RcppExports.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/g++  -std=gnu++11
-I"D:/RCompile/CRANpkg/lib/4.0/zlibbioc/include"
-I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/
-D_FILE_OFFSET_BITS=64 -I'D:/RCompile/CRANpkg/lib/4.0/Rcpp/include'
-I'D:/RCompile/CRANpkg/lib/4.0/RcppArmadillo/include'
-I'D:/RCompile/CRANpkg/lib/4.0/RcppProgress/include'
-I'D:/RCompile/CRANpkg/lib/4.0/Rhtslib/include'
-I'D:/RCompile/CRANpkg/lib/4.0/zlibbioc/include'
-I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c
alter_reference.cpp -o alter_reference.o

[...]

d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -shared -s -static-libgcc -o
jackalope.dll tmp.def RcppExports.o alter_reference.o create_sequences.o
hts_illumina.o hts_pacbio.o io_fasta.o io_ms.o io_vcf.o mutator.o
mutator_indels.o mutator_subs.o phylogenomics.o ref_var_access.o
sub_models.o util.o var_classes.o vars_ssites.o -lws2_32
-LD:/RCompile/recent/R/bin/i386 -lRlapack -LD:/RCompile/recent/R/bin/i386
-lRblas -lgfortran -lm -lquadmath
D:/RCompile/CRANpkg/lib/4.0/Rhtslib/usrlib/i386/libhts.a
-LC:/extsoft/lib/i386 -lcurl -lrtmp -lssl -lssh2 -lcrypto -lgdi32 -lz
-lws2_32 -lwldap32 -lwinmm -lidn
-LD:/RCompile/CRANpkg/lib/4.0/zlibbioc/libs/i386 -lzlib1bioc
-Ld:/Compiler/gcc-4.9.3/local330/lib/i386
-Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/i386 -lR
D:/Compiler/gcc-4.9.3/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lcurl
D:/Compiler/gcc-4.9.3/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lrtmp
D:/Compiler/gcc-4.9.3/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lssl
D:/Compiler/gcc-4.9.3/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lssh2
D:/Compiler/gcc-4.9.3/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lcrypto
D:/Compiler/gcc-4.9.3/mingw_32/bin/../lib/gcc/i686-w64-mingw32/4.9.3/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lidn
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'jackalope'
* removing 'd:/RCompile/CRANguest/R-devel/lib/jackalope'
On Mon, Jan 27, 2020 at 5:45 PM Pages, Herve <hpages at fredhutch.org> wrote:

            

  
  
Message-ID: <CAKekK4vqURBuPhMSbRPFsjwXEvLpJdqXZ0pXtD2kZaM8SUvncw@mail.gmail.com>
In-Reply-To: <b196164c-ae75-ed40-c561-b9b8023c122d@fredhutch.org>