Debugging makefiles.

View: New views
4 Messages — Rating Filter:   Alert me  

Debugging makefiles.

by rkevinburton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have sucessfully built and run R from source and I have begun to change some of the source files to help with my learning process. All of a sudden I recieved the following error on build:

building package 'stats'
all.R is unchanged
building package 'datasets'
all.R is unchanged
../../../library/datasets/R/datasets is unchanged
building package 'methods'
all.R is unchanged
make[3]: Nothing to be done for `RfilesLazy'.
building package 'grid'
all.R is unchanged
building package 'splines'
all.R is unchanged
building package 'stats4'
all.R is unchanged
make[3]: Nothing to be done for `Rfiles'.
building package 'tcltk'
all.R is unchanged
../../bin/R: not found
make[1]: *** [R] Error 127
make: *** [all] Error 2

I have just changed MkRules and some of the Fortran source files. I have not changed any of the Makefiles so I am not sure where this error is coming from or how best to trace the root of the problem. Maybe someone with a little more knowledge on the 'R' source structure and build process could help me out with a little advice here. If have tried the '-d' option but that is entirely too much debug information for me to digest. I just need to know where '../../bin/R' is needed and why it is not found.

Thank you.

Kevin

______________________________________________
R-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: Debugging makefiles.

by rkevinburton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I did a 'make clean' followed by a rebuild and got the same error. I recopied the source (overwritting the existing files) followed by a 'make clean' and 'make all recommended' and received the same error. I am really lost. It must be something in my environment but I don't know how to track it down.

Kevin

---- rkevinburton@... wrote:

> I have sucessfully built and run R from source and I have begun to change some of the source files to help with my learning process. All of a sudden I recieved the following error on build:
>
> building package 'stats'
> all.R is unchanged
> building package 'datasets'
> all.R is unchanged
> ../../../library/datasets/R/datasets is unchanged
> building package 'methods'
> all.R is unchanged
> make[3]: Nothing to be done for `RfilesLazy'.
> building package 'grid'
> all.R is unchanged
> building package 'splines'
> all.R is unchanged
> building package 'stats4'
> all.R is unchanged
> make[3]: Nothing to be done for `Rfiles'.
> building package 'tcltk'
> all.R is unchanged
> ../../bin/R: not found
> make[1]: *** [R] Error 127
> make: *** [all] Error 2
>
> I have just changed MkRules and some of the Fortran source files. I have not changed any of the Makefiles so I am not sure where this error is coming from or how best to trace the root of the problem. Maybe someone with a little more knowledge on the 'R' source structure and build process could help me out with a little advice here. If have tried the '-d' option but that is entirely too much debug information for me to digest. I just need to know where '../../bin/R' is needed and why it is not found.
>
> Thank you.
>
> Kevin
>
> ______________________________________________
> R-help@... mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: Debugging makefiles.

by rkevinburton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you.

I found the problem. For some reason there was a zero-length file with the name of 'r' in the bin directory. When I removed this the build worked fine. I still don't know why this file caused a problem but I am happy with the solution.

Kevin

---- rkevinburton@... wrote:

> I did a 'make clean' followed by a rebuild and got the same error. I recopied the source (overwritting the existing files) followed by a 'make clean' and 'make all recommended' and received the same error. I am really lost. It must be something in my environment but I don't know how to track it down.
>
> Kevin
>
> ---- rkevinburton@... wrote:
> > I have sucessfully built and run R from source and I have begun to change some of the source files to help with my learning process. All of a sudden I recieved the following error on build:
> >
> > building package 'stats'
> > all.R is unchanged
> > building package 'datasets'
> > all.R is unchanged
> > ../../../library/datasets/R/datasets is unchanged
> > building package 'methods'
> > all.R is unchanged
> > make[3]: Nothing to be done for `RfilesLazy'.
> > building package 'grid'
> > all.R is unchanged
> > building package 'splines'
> > all.R is unchanged
> > building package 'stats4'
> > all.R is unchanged
> > make[3]: Nothing to be done for `Rfiles'.
> > building package 'tcltk'
> > all.R is unchanged
> > ../../bin/R: not found
> > make[1]: *** [R] Error 127
> > make: *** [all] Error 2
> >
> > I have just changed MkRules and some of the Fortran source files. I have not changed any of the Makefiles so I am not sure where this error is coming from or how best to trace the root of the problem. Maybe someone with a little more knowledge on the 'R' source structure and build process could help me out with a little advice here. If have tried the '-d' option but that is entirely too much debug information for me to digest. I just need to know where '../../bin/R' is needed and why it is not found.
> >
> > Thank you.
> >
> > Kevin
> >
> > ______________________________________________
> > R-help@... mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
R-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Parent Message unknown Re: Debugging makefiles.

by rkevinburton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you.

I found the problem. For some reason there was a zero-length file with the name of 'r' in the bin directory. When I removed this the build worked fine. I still don't know why this file caused a problem but I am happy with the solution.

Kevin

---- rkevinburton@... wrote:

> I did a 'make clean' followed by a rebuild and got the same error. I recopied the source (overwritting the existing files) followed by a 'make clean' and 'make all recommended' and received the same error. I am really lost. It must be something in my environment but I don't know how to track it down.
>
> Kevin
>
> ---- rkevinburton@... wrote:
> > I have sucessfully built and run R from source and I have begun to change some of the source files to help with my learning process. All of a sudden I recieved the following error on build:
> >
> > building package 'stats'
> > all.R is unchanged
> > building package 'datasets'
> > all.R is unchanged
> > ../../../library/datasets/R/datasets is unchanged
> > building package 'methods'
> > all.R is unchanged
> > make[3]: Nothing to be done for `RfilesLazy'.
> > building package 'grid'
> > all.R is unchanged
> > building package 'splines'
> > all.R is unchanged
> > building package 'stats4'
> > all.R is unchanged
> > make[3]: Nothing to be done for `Rfiles'.
> > building package 'tcltk'
> > all.R is unchanged
> > ../../bin/R: not found
> > make[1]: *** [R] Error 127
> > make: *** [all] Error 2
> >
> > I have just changed MkRules and some of the Fortran source files. I have not changed any of the Makefiles so I am not sure where this error is coming from or how best to trace the root of the problem. Maybe someone with a little more knowledge on the 'R' source structure and build process could help me out with a little advice here. If have tried the '-d' option but that is entirely too much debug information for me to digest. I just need to know where '../../bin/R' is needed and why it is not found.
> >
> > Thank you.
> >
> > Kevin
> >
> > ______________________________________________
> > R-help@... mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
R-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.