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

Setup CI build using Intel compiler - take 2 #48

Closed
wants to merge 15 commits into from
Closed

Conversation

jwallwork23
Copy link
Collaborator

Closes #20.
Rework of #28.

#38 should be merged first as its commits are included here.

@jwallwork23 jwallwork23 added the testing Related to GISS-GC testing label Oct 28, 2024
@jwallwork23 jwallwork23 self-assigned this Oct 28, 2024
@jwallwork23
Copy link
Collaborator Author

Current CI fail (e.g., https://github.com/fetch4/GISS-GC/actions/runs/11558597634/job/32171338627) is because compiler is not set correctly in the updated docker/spack_{gcc/intel}.yaml files. Perhaps the compiler can't be set at the bottom like that.

@jwallwork23
Copy link
Collaborator Author

jwallwork23 commented Oct 30, 2024

The Action log for the Intel build is not particularly helpful: https://github.com/fetch4/GISS-GC/actions/runs/11595895302/job/32285629975?pr=48. However, I tried building locally. I checked that the Intel compiler does get used, as expected, but isn't able to compile CMake:

311.8   >> 1040    crypto/md5/md5-x86_64.s:684:31: error: expected string
311.8      1041            .section .note.gnu.property, #alloc
311.8      1042                                         ^
311.8   >> 1043    make[1]: *** [Makefile:21050: crypto/md5/liblegacy-lib-md5-x86_64.
311.8              o] Error 1
311.8      1044    make[1]: *** Waiting for unfinished jobs....
311.8      1045    make[1]: Leaving directory '/tmp/root/spack-stage/spack-stage-open
311.8              ssl-3.1.3-ksrafk6dltkq3st22cdiu3bjakztioah/spack-src'
311.8   >> 1046    make: *** [Makefile:3241: build_sw] Error 2
311.8 
311.8 See build log for details:
311.8   /tmp/root/spack-stage/spack-stage-openssl-3.1.3-ksrafk6dltkq3st22cdiu3bjakztioah/spack-build-out.txt
311.8 
311.8 ==> Warning: Skipping build of curl-8.4.0-f5nd4kehm2tvsswf45wenost2gi6ggh7 since openssl-3.1.3-ksrafk6dltkq3st22cdiu3bjakztioah failed
311.8 ==> Warning: Skipping build of cmake-3.27.7-vckppyumepjzpgldb2i4rwrqx3dttnqd since curl-8.4.0-f5nd4kehm2tvsswf45wenost2gi6ggh7 failed
312.0 ==> Updating view at /opt/views/view
312.0 ==> Error: Terminating after first install failure: ProcessError: Command exited with status 2:
312.0     'make' '-j12'
------
Dockerfile.intel:13
--------------------
  12 |     COPY docker/compilers_intel.yaml /root/.spack/linux/compilers.yaml
  13 | >>> RUN cd /opt/spack-environment \
  14 | >>>     && spack env activate . \
  15 | >>>     && spack install --fail-fast \
  16 | >>>     && spack gc -y
  17 |     
--------------------
ERROR: failed to solve: process "docker-shell cd /opt/spack-environment     && spack env activate .     && spack install --fail-fast     && spack gc -y" did not complete successfully: exit code: 1

It seems there is some incorrectly formatted assembly code.

@jwallwork23
Copy link
Collaborator Author

One option might be to build openssl with GCC (see https://spack.readthedocs.io/en/latest/getting_started.html).

@jwallwork23
Copy link
Collaborator Author

Closing this. Lee says GEOS-Chem doesn't currently support IFX so it isn't worth our effort right now.

@jwallwork23 jwallwork23 closed this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Related to GISS-GC testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant