GEOS-DEV / GEOS

GEOS Simulation Framework
GNU Lesser General Public License v2.1
222 stars 89 forks source link

uncrustify package is a zip file but cmake build tries to untar it #2626

Open jerwin66 opened 1 year ago

jerwin66 commented 1 year ago

Describe the bug Following quick start instructions for thirdPartyLibs here: https://geosx-geosx.readthedocs-hosted.com/en/latest/docs/sphinx/QuickStart.html#compilation "make" fails because uncrustify was not properly decompressed, it is a zip file but the build process tries to untar it.

To Reproduce follow quick start identified above

python scripts/config-build.py -hc ../GEOS/host-configs/my-config.cmake -bt Release

Expected behavior thirdPartyLib builds correctly

Additional context I was able to work-around the problem by manually unzipping uncrustify and packaging into a .tar.gz file. edited CMakeLists.txt: set(UNCRUSTIFY_URL "${TPL_MIRROR_DIR}/uncrustify-401a409.tar.gz")

cssherman commented 1 year ago

@jerwin66 - Could you let us know your platform details and cmake version? Also, can you try the running the build again in case it was a download issue?

jerwin66 commented 1 year ago

Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz Rocky Linux 8.4 4.18.0-305.19.1.el8_4.x86_64

cmake version cmake-3.27.2-linux-x86_64

Unclear why this broke the first time, but a second attempt in a brand new directory does seem to work.

 src='/bfs1/cnadmin/jperwin/apps/geosx-try2/thirdPartyLibs/tplMirror/uncrustify-401a409.zip'
 dst='/bfs1/cnadmin/jperwin/apps/geosx-try2/thirdPartyLibs/build-icelake-intel-intelmpi-release/uncrustify/src/uncrustify'

-- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done