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

vpath (out of tree) build fails to find ncx.c #242

Closed
roblatham00 opened this issue Mar 29, 2016 · 2 comments
Closed

vpath (out of tree) build fails to find ncx.c #242

roblatham00 opened this issue Mar 29, 2016 · 2 comments

Comments

@roblatham00
Copy link
Contributor

Please provide as much of the following information as you can, as applicable to the issue being reported. Naturally, not all information is relevant to every issue, but the more information we have to start, the better!

Environment Information

64 bit Linux (ubuntu 15.10), with autotools build.

Summary of Issue

when bbuilding "out of tree" or VPATH style , make cannot find ncx.c (which was generated from .m4 files)

Steps to reproduce the behavior

  • fetch git master
  • autoreconf -fi
  • mkdir build-dir
  • cd build-dir
  • ~/work/netcdf-c/configure CC=${HOME}/work/soft/mpich/bin/mpicc --prefix=${HOME}/work/soft/netcdf-master CPPFLAGS=-I${HOME}/work/soft/hdf5-1.8.16/include LDFLAGS=-L${HOME}/work/soft/hdf5-1.8.16/lib
  • make

observe this error:

Making all in nc_test
make[2]: Entering directory '/home/robl/work/build/netcdf/nc_test'
cp /home/robl/work/netcdf-c/libsrc/ncx.c .
cp: cannot stat ‘/home/robl/work/netcdf-c/libsrc/ncx.c’: No such file or directory
Makefile:1593: recipe for target 'all' failed

of course it cannot stat libsrc/ncx.c :that file was generated and lives in the build dir.

@WardF
Copy link
Member

WardF commented Mar 29, 2016

Thanks for the report; I'll get this corrected.

@WardF
Copy link
Member

WardF commented Apr 4, 2016

Updated the appropriate Makefile.am and merged into master, so closing out the issue.

@WardF WardF closed this as completed Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants