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

Allow files to be compiled in parallel #3

Open
schloerke opened this issue May 11, 2020 · 0 comments
Open

Allow files to be compiled in parallel #3

schloerke opened this issue May 11, 2020 · 0 comments

Comments

@schloerke
Copy link

I ran across an error while checking reverse dependencies for shiny.

If I have MAKE=make -j10 set (allow 10 items to compile at once), I run into an error:

Install Log
* installing *source* package ‘frailtypack’ ...
** package ‘frailtypack’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  Adonnees.f90 -o Adonnees.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  AparamMultive.f90 -o AparamMultive.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  Aparameters.f90 -o Aparameters.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  aGhermite.f90 -o aGhermite.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  ahrmsym.f90 -o ahrmsym.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  funcpajsplinesIndiv.f90 -o funcpajsplinesIndiv.o
clang -mmacosx-version-min=10.13 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include   -fPIC  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -c init.c -o init.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  risque.f90 -o risque.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  somme.f90 -o somme.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  test.f90 -o test.o
somme.f90:7:47:

     integer:: i,num_thread,num_proc,nb_thread,d
                                               1
Warning: Unused variable ‘d’ declared at (1) [-Wunused-variable]
somme.f90:7:45:

     integer:: i,num_thread,num_proc,nb_thread,d
                                             1
Warning: Unused variable ‘nb_thread’ declared at (1) [-Wunused-variable]
somme.f90:1:31:

 subroutine somme(ab,s,nboot,nbr,vOut)
                               1
Warning: Unused dummy argument ‘nbr’ at (1) [-Wunused-dummy-argument]
somme.f90:7:35:

     integer:: i,num_thread,num_proc,nb_thread,d
                                   1
Warning: Unused variable ‘num_proc’ declared at (1) [-Wunused-variable]
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  aaOptim_New_scl2.f90 -o aaOptim_New_scl2.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  aaOptim_New_scl.f90 -o aaOptim_New_scl.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  aaOptim.f90 -o aaOptim.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  aaOptim_SCL_0.f90 -o aaOptim_SCL_0.o
aaOptim_New_scl2.f90:126:8:

     use residusM,only:indg
        1
Warning: Unused module variable ‘indg’ which has been explicitly imported at (1) [-Wunused-variable]
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  aaOptimres.f90 -o aaOptimres.o
gfortran -mmacosx-version-min=10.13 -fno-optimize-sibling-calls   -fPIC  -Wall -g -O2  -c  prediction.f90 -o prediction.o
prediction.f90:708:8:

     use donnees,only:w,x,w1,x1
        1
Fatal Error: Can't open module file ‘donnees.mod’ for reading at (1): No such file or directory
compilation terminated.
make: *** [prediction.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘frailtypack’
* removing ‘/shiny/revdep/checks.noindex.nosync/frailtypack/new/frailtypack.Rcheck/frailtypack’

If I unset the MAKE value in ~/.Renviron, the package compiles as expected.

It would be great if failtypack would also work with a larger j make value.

Thank you!

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

1 participant