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

Error 127? - problem compiling model #160

Closed
JasonW000 opened this issue Nov 5, 2016 · 16 comments
Closed

Error 127? - problem compiling model #160

JasonW000 opened this issue Nov 5, 2016 · 16 comments

Comments

@JasonW000
Copy link

JasonW000 commented Nov 5, 2016

Does anyone know what Error 127 means? Suddenly none of my models are compiling anymore. The only thing I have done differently is running NONMEM locally on my machine this last week. Does this have something to do with competition between compilers - an issue discussed recently on NMusers? I desperately need a fix by Tuesday even if it means removing NONMEM. Thanks

See below error message

`Compiling pkpd ... C:/Users/WILLJ107/DOCUME1/R/R-321.2/etc/x64/Makeconf:204: warning: overriding commands for target .m.o
C:/Users/WILLJ107/DOCUME1/R/R-321.2/etc/x64/Makeconf:197: warning: ignoring old commands for target .m.o
g++ -m64 -shared -s -static-libgcc -o pkpd-mread-source.dll pkpd-mread-source-win.def pkpd-mread-source.o -Ld:/RCompile/r-compiling/local/local320/lib/x64 -Ld:/RCompile/r-compiling/local/local320/lib -LC:/Users/WILLJ107/DOCUME1/R/R-321.2/bin/x64 -lR
g++ -m64: not found
make: *** [pkpd-mread-source.dll] Error 127
Warning message:
running command 'make -f "C:/Users/WILLJ107/DOCUME1/R/R-321.2/etc/x64/Makeconf" -f "C:/Users/WILLJ107/DOCUME1/R/R-321.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="pkpd-mread-source.dll" WIN=64 TCLBIN=64 OBJECTS="pkpd-mread-source.o"' had status 2

Error: There was a problem when compiling the model.
`

@kylebaron
Copy link
Collaborator

It means R can't find the compiler. I'm on my phone right now. Will post
some suggestions as soon as I can get to computer. But the solution is to
get Rtools stuff to the front of your path.

On Nov 5, 2016 09:51, "JasonW000" notifications@github.com wrote:

Does anyone know what Error 127 means? Suddenly none of my models are
compiling anymore. The only thing I have done differently is running NONMEM
locally on my machine this last week. Does this have something to do with
competition between compilers - an issue discussed recently on NMusers? I
desperately need a fix by Tuesday even if it means removing NONMEM. Thanks

See below error message

Compiling pkpd ... C:/Users/WILLJ107/DOCUME1/R/R-321.2/etc/x64/Makeconf:204:
warning: overriding commands for target.m.o'
C:/Users/WILLJ107/DOCUME1/R/R-321.2/etc/x64/Makeconf:197: warning:
ignoring old commands for target `.m.o'
g++ -m64 -shared -s -static-libgcc -o pkpd-mread-source.dll
pkpd-mread-source-win.def pkpd-mread-source.o -Ld:/RCompile/r-compiling/local/local320/lib/x64
-Ld:/RCompile/r-compiling/local/local320/lib -LC:/Users/WILLJ107/DOCUME
1/R/R-321.2/bin/x64 -lR
g++ -m64: not found
make: *** [pkpd-mread-source.dll] Error 127
Warning message:
running command 'make -f "C:/Users/WILLJ107/DOCUME1/R/R-321.2/etc/x64/Makeconf"
-f "C:/Users/WILLJ107/DOCUME1/R/R-321.2/share/make/winshlib.mk"
SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)'
SHLIB="pkpd-mread-source.dll" WIN=64 TCLBIN=64
OBJECTS="pkpd-mread-source.o"' had status 2

Error: There was a problem when compiling the model.

`


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#160, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AQIADQUEW4Fx36EpXipbG-9wNwSv0vGTks5q7Jf_gaJpZM4KqR_Z
.

@kylebaron
Copy link
Collaborator

Start R and check your PATH

Sys.getenv("PATH")

Find out where your Rtools is located; for me it is c:\RBuildToools\3.3

Force that onto the front of your path:

path <- Sys.getenv("PATH")
path <- c("C:\\RBuildTools\\3.3\\bin", "C:\\RBuildTools\\3.3\\gcc-4.6.3\\bin", path)
path <- paste(path,collapse=";")
Sys.setenv(PATH=path)

Note there are two directories that you need at the front of the path. And obviously enter paths that are appropriate for your Rtools install. You can put this in a file called .Rprofile in your Sys.getenv("HOME") directory and it will automatically configure your R environment variable without touching your Windows system environment variables. I would prefer doing all of this through an .Renviron file (see ?Startup) but it's a little harder to setup. It seems like there is a battle between NONMEM and R for rights to the path and it will always be a little tricky to keep everyone happy. The process here let's your have control over the R environment. There is some coding to do, but at least you know exactly what is happening and what gets priority in the PATH.

Check:

Sys.getenv("PATH")

You should see Rtools stuff at the front.

@JasonW000
Copy link
Author

This code worked perfectly - the two directories moved up to the front of the list in PATH and all my models are compiling again. I haven't tried the second approach but will try it when I have some more time. Thank you very much!

@kylebaron
Copy link
Collaborator

Thanks for reporting back and glad it got straightened out. I know this is an ongoing battle for people running multiple compilers on a single machine.

I have a Windows box now that I'm reserving for testing mrgsolve and I hope to get some best practices tested and documented to help in situations like this.

@kenujen
Copy link

kenujen commented Dec 1, 2018

Hi Kyle,
I have the same issue, and tried your recommendation above, but it still fails to compile model. Any help is greatly appreciated.

-Ken

mod <- mread("irm1", modlib())
Compiling irm1 ... c:/RBuildTools/3.4/mingw_64/bin/g++ -I"C:/PROGRA1/R/R-351.1/include" -DNDEBUG -I"C:/Users/kenuj/Documents/R/win-library/3.5/mrgsolve/base" -I"C:/Users/kenuj/Documents/R/win-library/3.5/mrgsolve/models" -O2 -Wall -mtune=generic -c irm1-mread-source.cpp -o irm1-mread-source.o
sh: c:/RBuildTools/3.4/mingw_64/bin/g++: No such file or directory
make: *** [C:/PROGRA1/R/R-351.1/etc/x64/Makeconf:215: irm1-mread-source.o] Error 127


Error: there was a problem building the model.

sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] bindrcpp_0.2.2 forcats_0.3.0 stringr_1.3.1 dplyr_0.7.8
[5] purrr_0.2.5 readr_1.2.1 tidyr_0.8.2 tibble_1.4.2
[9] ggplot2_3.1.0 tidyverse_1.2.1 mrgsolve_0.8.12.9000

loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 cellranger_1.1.0 pillar_1.3.0
[4] compiler_3.5.1 plyr_1.8.4 bindr_0.1.1
[7] tools_3.5.1 jsonlite_1.5 lubridate_1.7.4
[10] nlme_3.1-137 gtable_0.2.0 lattice_0.20-35
[13] pkgconfig_2.0.2 rlang_0.3.0.1 cli_1.0.1
[16] rstudioapi_0.8 yaml_2.2.0 haven_2.0.0
[19] RcppArmadillo_0.9.200.5.0 withr_2.1.2 xml2_1.2.0
[22] httr_1.3.1 hms_0.4.2 grid_3.5.1
[25] tidyselect_0.2.5 glue_1.3.0 R6_2.3.0
[28] readxl_1.1.0 modelr_0.1.2 magrittr_1.5
[31] backports_1.1.2 scales_1.0.0 rvest_0.3.2
[34] assertthat_0.2.0 colorspace_1.3-2 stringi_1.2.4
[37] lazyeval_0.2.1 munsell_0.5.0 broom_0.5.0
[40] crayon_1.3.4


Error: there was a problem building the model.

After rebuilding PATH to bring RTools stuff to the from, but it looks like I have two gcc. I tried gcc-4.6.3 first, and that didn't work, so I tried gcc-4.9.3... still didn't work.

str_split(Sys.getenv("PATH"), ";")
[[1]]
[1] "C:\RBuildTools\3.4\bin"
[2] "C:\RBuildTools\3.3\gcc-4.6.3\bin"
[3] "C:\RBuildTools\3.4\bin"
[4] "C:\RBuildTools\3.3\gcc-4.9.3\bin"
[5] "C:\RBuildTools\3.4\bin"
[6] "C:\RBuildTools\3.3\gcc-4.9.3\bin"

[7] "C:\Program Files\R\R-3.5.1\bin\x64"
[8] "C:\Program Files (x86)\Intel\iCLS Client\"
[9] "c:\Rtools\bin"
[10] "C:\RBuildTools\3.4\bin"
[11] "C:\RBuildTools\3.4\mingw_32\bin"
[12] "C:\ProgramData\Oracle\Java\javapath"
[13] "C:\Program Files\Intel\iCLS Client\"
[14] "C:\Windows\system32"
[15] "C:\Windows"
[16] "C:\Windows\System32\Wbem"
[17] "C:\Windows\System32\WindowsPowerShell\v1.0\"
[18] "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common"
[19] "C:\Program Files (x86)\HID Global\ActivClient\"
[20] "C:\Program Files\HID Global\ActivClient\"
[21] "C:\WINDOWS\system32"
[22] "C:\WINDOWS"
[23] "C:\WINDOWS\System32\Wbem"
[24] "C:\WINDOWS\System32\WindowsPowerShell\v1.0\"
[25] "C:\WINDOWS\System32\OpenSSH\"
[26] "C:\Program Files\Intel\WiFi\bin\"
[27] "C:\Program Files\Common Files\Intel\WirelessCommon\"
[28] "C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL"
[29] "C:\Program Files\Intel\Intel(R) Management Engine Components\DAL"
[30] "C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT"
[31] "C:\Program Files\Intel\Intel(R) Management Engine Components\IPT"
[32] "C:\Program Files\MiKTeX 2.9\miktex\bin\x64\"
[33] "C:\Program Files\Python\Python37\Scripts\"
[34] "C:\Program Files\Python\Python37\"
[35] "C:\Program Files\Scripts\"
[36] "C:\Program Files\"
[37] "C:\Users\kenuj\AppData\Local\Microsoft\WindowsApps"
[38] ""

@kylebaron
Copy link
Collaborator

Hi @kenujen -

Does this path exist?
c:/RBuildTools/3.4/mingw_64/bin/g++

You might just start over and re-install. That should get the compilers in the right place and get the path set. Remember, you might have to opt in to get the path set right by the installer.

Kyle

@kenujen
Copy link

kenujen commented Dec 1, 2018

Hi Kyle,

This is weird. It was working fine all day, but all of a sudden it stopped and gave me the error.

I uninstalled and reinstalled with RTools 3.5. I think RTools 3.5 no longer added to path. When I run:

str_split(Sys.getenv("PATH"), ";")

It still shows version 3.4 in path as followed:
[1] "C:\Program Files\R\R-3.5.1\bin\x64"
[2] "C:\Program Files (x86)\Intel\iCLS Client\"
[3] "c:\Rtools\bin"
[4] "C:\RBuildTools\3.4\bin"
[5] "C:\RBuildTools\3.4\mingw_32\bin"
[6] "C:\ProgramData\Oracle\Java\javapath"
[7] "C:\Program Files\Intel\iCLS Client\"
[8] "C:\Windows\system32"
[9] "C:\Windows"
...
Should I reinstall RTools 3.4?

@kylebaron
Copy link
Collaborator

It's worth a try.

@kenujen
Copy link

kenujen commented Dec 1, 2018

That didn't work.
Not sure where the problem is.

-Ken

@kylebaron
Copy link
Collaborator

What exactly did you do?
Where are your tools installed?
Did you opt in to the path update when you installed?
What is your path currently saying?
Can you undo everything and just start over?

I just did a windows install from scratch using 3.5 and it worked fine ... first try. I'm not sure what is going on with your system either. Happy to look with you. But can't help with out more information about what you are doing and what the status is.

@kenujen
Copy link

kenujen commented Dec 2, 2018

Hi Kyle,

What exactly did you do?

  • mrgsolve worked fine for some times, until all of a sudden it couldn't build model. It start to work on and off. Meaning sometimes I opened up Rstudio, running mrgsolve, it worked fine, other times not. Weird. Then I thought the path might have been messed up. I reset the path as suggested above. Nothing worked since.

Where are your tools installed?

  • I uninstalled RTools, then reinstalled it. Tried both version 3.4 and 3.5, neither one worked.

Did you opt in to the path update when you installed?

  • Yes. I keep on having this problem since last year. I can remember every single step to check the path box during installation. Here's the output from CMD prompt:

C:\Users\kenuj>path
**PATH=C:\Rtools\bin;**C:\Program Files (x86)\Intel\iCLS Client;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\HID Global\ActivClient;C:\Program Files\HID Global\ActivClient;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\MiKTeX 2.9\miktex\bin\x64;C:\Program Files\Python\Python37\Scripts;C:\Program Files\Python\Python37;C:\Program Files\Scripts;C:\Program Files;C:\Users\kenuj\AppData\Local\Microsoft\WindowsApps;

What is your path currently saying?

  • from R, using str_split(Sys.getenv("PATH"), ";")
  • RTools is not at the front.

[1] "C:\Program Files\R\R-3.5.1\bin\x64"
[2] "C:\Rtools\bin"
[3] "C:\Program Files (x86)\Intel\iCLS Client\"
[4] "C:\ProgramData\Oracle\Java\javapath"
[5] "C:\Program Files\Intel\iCLS Client\"
[6] "C:\Windows\system32"
[7] "C:\Windows"
[8] "C:\Windows\System32\Wbem"
[9] "C:\Windows\System32\WindowsPowerShell\v1.0\"
[10] "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common"
[11] "C:\Program Files (x86)\HID Global\ActivClient\"
[12] "C:\Program Files\HID Global\ActivClient\"
[13] "C:\WINDOWS\system32"
[14] "C:\WINDOWS"
[15] "C:\WINDOWS\System32\Wbem"
[16] "C:\WINDOWS\System32\WindowsPowerShell\v1.0\"
[17] "C:\WINDOWS\System32\OpenSSH\"
[18] "C:\Program Files\Intel\WiFi\bin\"
[19] "C:\Program Files\Common Files\Intel\WirelessCommon\"
[20] "C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL"
[21] "C:\Program Files\Intel\Intel(R) Management Engine Components\DAL"
[22] "C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT"
[23] "C:\Program Files\Intel\Intel(R) Management Engine Components\IPT"
[24] "C:\Program Files\MiKTeX 2.9\miktex\bin\x64\"
[25] "C:\Program Files\Python\Python37\Scripts\"
[26] "C:\Program Files\Python\Python37\"
[27] "C:\Program Files\Scripts\"
[28] "C:\Program Files\"
[29] "C:\Users\kenuj\AppData\Local\Microsoft\WindowsApps"
[30] ""

Can you undo everything and just start over?

  • Yes, I did everything over like 5 times. Uninstalled everything, R and R studio, and RTools....
  • Reinstalled everything according to your website.
  • I checked Windows environment variables, RTools is at the top as well. But not from R.

sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] forcats_0.3.0 stringr_1.3.1 dplyr_0.7.8 purrr_0.2.5 readr_1.2.1 tidyr_0.8.2 tibble_1.4.2
[8] ggplot2_3.1.0 tidyverse_1.2.1

loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 cellranger_1.1.0 pillar_1.3.0 compiler_3.5.1 plyr_1.8.4 bindr_0.1.1 tools_3.5.1
[8] jsonlite_1.5 lubridate_1.7.4 nlme_3.1-137 gtable_0.2.0 lattice_0.20-35 pkgconfig_2.0.2 rlang_0.3.0.1
[15] cli_1.0.1 rstudioapi_0.8 yaml_2.2.0 haven_2.0.0 bindrcpp_0.2.2 withr_2.1.2 xml2_1.2.0
[22] httr_1.3.1 hms_0.4.2 grid_3.5.1 tidyselect_0.2.5 glue_1.3.0 R6_2.3.0 readxl_1.1.0
[29] modelr_0.1.2 magrittr_1.5 backports_1.1.2 scales_1.0.0 rvest_0.3.2 assertthat_0.2.0 colorspace_1.3-2
[36] stringi_1.2.4 lazyeval_0.2.1 munsell_0.5.0 broom_0.5.0 crayon_1.3.4

@kenujen
Copy link

kenujen commented Dec 2, 2018

I then did this... based on your suggestion above... to put RTools in the front of PATH:

path <- Sys.getenv("PATH")
path <- c("C:\RBuildTools\3.5\bin", "C:\RBuildTools\3.5\gcc-4.9.3\bin", path)
path <- paste(path,collapse=";")
Sys.setenv(PATH=path)
str_split(Sys.getenv("PATH"), ";")

[[1]]
[1] "C:\RBuildTools\3.5\bin"
[2] "C:\RBuildTools\3.5\gcc-4.9.3\bin"
[3] "C:\Program Files\R\R-3.5.1\bin\x64"
[4] "C:\Rtools\bin"
[5] "C:\Program Files (x86)\Intel\iCLS Client\"
[6] "C:\ProgramData\Oracle\Java\javapath"
[7] "C:\Program Files\Intel\iCLS Client\"
[8] "C:\Windows\system32"
[9] "C:\Windows"
[10] "C:\Windows\System32\Wbem"
[11] "C:\Windows\System32\WindowsPowerShell\v1.0\"
[12] "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common"
[13] "C:\Program Files (x86)\HID Global\ActivClient\"
[14] "C:\Program Files\HID Global\ActivClient\"
[15] "C:\WINDOWS\system32"
[16] "C:\WINDOWS"
[17] "C:\WINDOWS\System32\Wbem"
[18] "C:\WINDOWS\System32\WindowsPowerShell\v1.0\"
[19] "C:\WINDOWS\System32\OpenSSH\"
[20] "C:\Program Files\Intel\WiFi\bin\"
[21] "C:\Program Files\Common Files\Intel\WirelessCommon\"
[22] "C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL"
[23] "C:\Program Files\Intel\Intel(R) Management Engine Components\DAL"
[24] "C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT"
[25] "C:\Program Files\Intel\Intel(R) Management Engine Components\IPT"
[26] "C:\Program Files\MiKTeX 2.9\miktex\bin\x64\"
[27] "C:\Program Files\Python\Python37\Scripts\"
[28] "C:\Program Files\Python\Python37\"
[29] "C:\Program Files\Scripts\"
[30] "C:\Program Files\"
[31] "C:\Users\kenuj\AppData\Local\Microsoft\WindowsApps"
[32] ""

@ellivromvvn
Copy link

Please help me.. I have R 4.0.0 and rtools40..

Sys.getenv("PATH")
[1] "C:\Program Files\R\R-4.0.0\bin\x64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Rtools\bin;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Pandoc\;C:\Program Files\CMake\bin;C:\Rtools\mingw_64\bin;C:\Program Files\R\R-3.6.1\bin;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Git\cmd;C:\rtools40\usr\bin\;C:\Program Files\R\R-4.0.0\bin\;C:\rtools40\;C:\Program Files\R\R-4.0.0\library\;C:\rtools40\mingw32\bin\;C:\Users\O\AppData\Local\Microsoft\WindowsApps;C:\Users\O\AppData\Roaming\TinyTeX\bin\win32"

here is the error..

install.packages(c("logspline", "rlang"))
Installing packages into ‘C:/Users/O/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)

There are binary versions available but the source versions are later:
binary source needs_compilation
logspline 2.1.15 2.1.16 TRUE
rlang 0.4.5 0.4.6 TRUE

installing the source packages ‘logspline’, ‘rlang’

trying URL 'https://cran.rstudio.com/src/contrib/logspline_2.1.16.tar.gz'
Content type 'application/x-gzip' length 68581 bytes (66 KB)
downloaded 66 KB

trying URL 'https://cran.rstudio.com/src/contrib/rlang_0.4.6.tar.gz'
Content type 'application/x-gzip' length 835198 bytes (815 KB)
downloaded 815 KB

  • installing source package 'logspline' ...
    ** package 'logspline' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
"C:/rtools40;C:/rtools40/usr/bin;C:/Program Files/R/R-4.0.0/library;/mingw32/bin/"gfortran -fno-optimize-sibling-calls -O2 -mfpmath=sse -msse2 -mstackrealign -c allpack.f -o allpack.o
sh: C:/rtools40;C:/rtools40/usr/bin;C:/Program Files/R/R-4.0.0/library;/mingw32/bin/gfortran: No such file or directory
make: *** [C:/PROGRA1/R/R-401.0/etc/i386/Makeconf:246: allpack.o] Error 127
ERROR: compilation failed for package 'logspline'

  • removing 'C:/Users/O/Documents/R/win-library/4.0/logspline'
  • restoring previous 'C:/Users/O/Documents/R/win-library/4.0/logspline'
    Warning in install.packages :
    installation of package ‘logspline’ had non-zero exit status
  • installing source package 'rlang' ...
    ** package 'rlang' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
"C:/rtools40;C:/rtools40/usr/bin;C:/Program Files/R/R-4.0.0/library;/mingw32/bin/"gcc -I"C:/PROGRA1/R/R-401.0/include" -DNDEBUG -I./lib/ -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c capture.c -o capture.o
sh: C:/rtools40;C:/rtools40/usr/bin;C:/Program Files/R/R-4.0.0/library;/mingw32/bin/gcc: No such file or directory
make: *** [C:/PROGRA1/R/R-401.0/etc/i386/Makeconf:222: capture.o] Error 127
ERROR: compilation failed for package 'rlang'

  • removing 'C:/Users/O/Documents/R/win-library/4.0/rlang'
  • restoring previous 'C:/Users/O/Documents/R/win-library/4.0/rlang'
    Warning in install.packages :
    installation of package ‘rlang’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\O\AppData\Local\Temp\RtmpaERI7L\downloaded_packages’

thanks in advance

@miaodapang
Copy link

I have the same issue:
C:/Rtools40/mingw_32/bin/gcc -I"/include" -DNDEBUG -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c calcPosAvgCost.c -o calcPosAvgCost.o
sh: C:/Rtools40/mingw_32/bin/gcc: No such file or directory
make: *** [C:/PROGRA1/R/R-401.2/etc/i386/Makeconf:222: calcPosAvgCost.o] Error 127
ERROR: compilation failed for package 'blotter'

  • removing 'C:/Users/hm/Documents/R/win-library/4.0/blotter'
    Error: Failed to install 'blotter' from GitHub:
    (converted from warning) installation of package ‘C:/users/hm/usertemp/RtmpS2rxYD/file5c8c1e5a66d0/blotter_0.15.0.tar.gz’ had non-zero exit status

@dpastoor
Copy link
Contributor

dpastoor commented Jul 1, 2020

@miaodapang I think you likely stumbled upon this issue from googling the generic error - but unfortunately we cannot help as this issue tracker is for the mrgsolve package. I would suggest reaching out to the blotter developers if there are continued problems.

@miaodapang
Copy link

Thanks.

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

6 participants