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

Something went wrong bootstrapping makefile fragments #793

Closed
wangvsa opened this issue Aug 31, 2023 · 0 comments
Closed

Something went wrong bootstrapping makefile fragments #793

wangvsa opened this issue Aug 31, 2023 · 0 comments

Comments

@wangvsa
Copy link
Collaborator

wangvsa commented Aug 31, 2023

Error

Got this error at configuring time. This is on Summit with gcc/12.1.0 and hdf5/1.14.0.

./bootstrap.sh
./autogen.sh
./configure ....

config.status:1700: error: in `/ccs/home/wangvsa/sources/UnifyFS-dev-summit':
    config.status:1702: error: Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  Try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).

Cause

After some investigations, I found that the Makefiles generated by config.status contain invalid lines:

HDF5_CC = /autofs/nccs-svm1_sw/summit/spack-envs/base/opt/linux-rhel8-ppc64le/gcc-12.1.0/hdf5-1.14.0-dgpxmsc7fahgr3e7zhbiiqmtztz5zr7y/h5cc
dir   // should not have this line
gcc  // should not have this line

The root cause is configure uses $H5CC -show | awk {print $1} to determine the HDF5 C compiler. It assumes $H5CC -show only returns a single line. But on Summit with hdf5/1.14.0, h5cc -show prints the following:

/autofs/nccs-svm1_sw/summit/spack-envs/base/opt/linux-rhel8-ppc64le/gcc-12.1.0/hdf5-1.14.0-dgpxmsc7fahgr3e7zhbiiqmtztz5zr7y/h5cc
dir is /autofs/nccs-svm1_sw/summit/spack-envs/base/opt/linux-rhel8-ppc64le/gcc-12.1.0/hdf5-1.14.0-dgpxmsc7fahgr3e7zhbiiqmtztz5zr7y
gcc -I/autofs/nccs-svm1_sw/summit/spack-envs/base/opt/linux-rhel8-ppc64le/gcc-12.1.0/hdf5-1.14.0-dgpxmsc7fahgr3e7zhbiiqmtztz5zr7y/include -L/autofs/nccs-svm1_sw/summit/spack-envs/base/opt/linux-rhel8-ppc64le/gcc-12.1.0/hdf5-1.14.0-dgpxmsc7fahgr3e7zhbiiqmtztz5zr7y/lib -lhdf5

Fix

/m4/ax_lib_hdf5.m4:

-        HDF5_CC=$(eval $H5CC -show | $AWK '{print $[]1}')
+        HDF5_CC=$(eval $H5CC -show | $AWK 'NR==1{print $[]1}')
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