BNLNPPS / esi-shell

Apache License 2.0
0 stars 0 forks source link

Build fails for esi-opticks on MacOS using esi-shell #24

Open plexoos opened 3 months ago

plexoos commented 3 months ago
=== opticks-setup-geant4- : sourcing /opt/spack/opt/spack/linux-ubuntu22.04-sapphirerapids/gcc-11.4.0/geant4-11.1.2-z4zrvgbct5pf2uhyrxf7xlo5mjalfiwf/./bin/geant4.sh
=== om-check : top level bdir /usr/local/opticks/build/ does not exist : creating it
=== om-visit-one : okconf          /esi-opticks/opticks/okconf                                  /usr/local/opticks/build/okconf                              
=== om-one-or-all install : okconf          /esi-opticks/opticks/okconf                                  /usr/local/opticks/build/okconf                              
Illegal instruction
=== om-make-one : okconf          /esi-opticks/opticks/okconf                                  /usr/local/opticks/build/okconf                              
=== om-make-one : ERROR bdir /usr/local/opticks/build/okconf exists but does not contain a Makefile : you need to om-install OR om-conf once before using om-make or the om-- shortcut
=== om-one-or-all install : non-zero rc 2
=== om-all om-install : ERROR bdir /usr/local/opticks/build/okconf : non-zero rc 2
=== om-one-or-all install : non-zero rc 2
=== opticks-full : ERR from opticks-full-make
plexoos commented 3 months ago

Looks like the cmake executable is not functional:

[root@d51633653776:/esi-opticks/opticks] 
$ cmake --help
Illegal instruction
plexoos commented 3 months ago

Interestingly, this happens with images built on npps0

buddhasystem commented 3 months ago

But the actual cmake on the host itself works, right? I just checked.

plexoos commented 3 months ago

That is correct. Moreover, the cmake built in the container with Spack works on npps0 as well. But it does not work in the same image when moved to a different machine (I tested with my i9 MacBook and your onyx). However, if the image is built on my i9 and then moved to npps0 the cmake works fine.