Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadLibrary failure: %1 is not a valid Win32 application. (eseis.dll) #2

Closed
rozsasarpi opened this issue Jan 25, 2017 · 3 comments
Closed

Comments

@rozsasarpi
Copy link

I am having a problem installing the package.

After issuing this command:
devtools::install_github(repo = "coffeemuggler/eseis", ref = "0.3.1")

The following error is received:

Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  unable to load shared object 'C:/Users/arpada/Documents/R/win-library/3.3/eseis/libs/x64/eseis.dll':
  LoadLibrary failure:  %1 is not a valid Win32 application.

Any suggestion how to resolve the problem? Let me know if you need additional information about the nature of the problem. Thank you in advance.

The full message after calling devtools::install_github(repo = "coffeemuggler/eseis", ref = "0.3.1")

* installing *source* package 'eseis' ...
** libs
c:/Rtools/mingw_64/bin/g++ -m64 -shared -s -static-libgcc -o eseis.dll tmp.def RcppExports.o stalta_event_freeze.o stalta_event_nofreeze.o -LC:/swarm/workspace/External-R-3.3.2/vendor/extsoft/lib/x64 -LC:/swarm/workspace/External-R-3.3.2/vendor/extsoft/lib -LC:/PROGRA~1/MIE74D~1/MRO-33~1.2/bin/x64 -lR
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: RcppExports.o: invalid relocation type 42
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25 assertion fail ../../../src/binutils-2.25/bfd/elf64-x86-64.c:341
RcppExports.o: In function `Rcpp::PreserveStorage<Rcpp::Vector<14, Rcpp::PreserveStorage> >::PreserveStorage()':
/home/mdietze/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include/Rcpp/storage/PreserveStorage.h:10: Cannot get section contents - auto-import exception
collect2.exe: error: ld returned 5 exit status
installing to C:/Users/arpada/Documents/R/win-library/3.3/eseis/libs/x64
** R
** data
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  unable to load shared object 'C:/Users/arpada/Documents/R/win-library/3.3/eseis/libs/x64/eseis.dll':
  LoadLibrary failure:  %1 is not a valid Win32 application.

Error: loading failed
Execution halted
ERROR: loading failed
* removing 'C:/Users/arpada/Documents/R/win-library/3.3/eseis'
Error: Command failed (1)

version information:

platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          3.2                         
year           2016                        
month          10                          
day            31                          
svn rev        71607                       
language       R                           
version.string R version 3.3.2 (2016-10-31)
nickname       Sincere Pumpkin Patch
@coffeemuggler
Copy link
Owner

coffeemuggler commented Jan 25, 2017 via email

@rozsasarpi
Copy link
Author

Dear Micha,

Thank you for the prompt reply. Yes, I am using Windows.
Installing from local solved the problem, thanks. And thank you for the great package!

Arpad

@RLumSK
Copy link
Contributor

RLumSK commented Jun 16, 2017

No problem on Mac OSX with 'eseis' version 0.3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants