[ET Trac] #2528: ExternalLibraries/libjpeg thorn adds problematic system library path to Cactus

Michael Müller trac-noreply at einsteintoolkit.org
Wed May 12 10:27:06 CDT 2021


#2528: ExternalLibraries/libjpeg thorn adds problematic system library path to Cactus

 Reporter: Michael Müller
   Status: new
Milestone: 
  Version: ET_2020_11
     Type: bug
 Priority: major
Component: EinsteinToolkit thorn

I have been trying to work with the new ET\_2020\_11 version, but while the compilation seems to work, upon submission of a run, MPI immediately generates an error message connected to a failure of the MPI\_INIT routine \(output in "run\_name".err\):

```
*** An error occurred in MPI_Init_thread
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
***    and potentially your MPI job)
[cn076:4193] Local abort before MPI_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed!
*** An error occurred in MPI_Init_thread
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
***    and potentially your MPI job)
[cn076:4192] Local abort before MPI_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed!
--------------------------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[62070,1],1]
  Exit code:    1
--------------------------------------------------------------------------
```

This is indicating some clash with OpenMPI. This turned out to be connected to the ExternalLibraries/libjpeg thorn. The thorn ExternalLibraries/libjpeg finds a jpeg library in the directory "/usr/lib/x86\_64-linux-gnu", and adds this path via the -L option to  
the library search path of Cactus. Unfortunately, this is a system library path. As a consequence, the linker then picks the MPI library in this directory instead of the one specified via MPI\_DIR, which creates the inconsistencies that cause the failure.

Upon exclusion of this thorn and the connected CactusIO/IOJpeg thorn and recompilation this error does not occur anymore and all libraries are imported correctly. I do not use these thorns, so this is not a problem for me, but it would be great, if someone could have a look at this.

\(error encountered by me and source identified by @{557058:56049c54-f8c2-4b6c-9b88-ab697c967495} \)

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2528/externallibraries-libjpeg-thorn-adds
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/trac/attachments/20210512/befa6535/attachment.html 


More information about the Trac mailing list