Skip to content

Examples and all user code no longer compiles with 2.1.0 using mxm #3232

@lancewilson-monash

Description

@lancewilson-monash

When trying to compile the examples after configuring, compiling and installing 2.1.0 no code will compile and returns errors similar to the following.

mpicc -g -I/usr/local/openmpi/2.1.0-gcc4/include -I/usr/local/gcc/4.9.3/include/c++/4.9.3/x86_64-unknown-linux-gnu/ -I/usr/local/gcc/4.9.3/include -L/usr/local/openmpi/2.1.0-gcc4/lib -L/usr/local/gcc/4.9.3/lib64  hello_c.c   -o hello_c
gcc: error: 25517_LDFLAGS: No such file or directory
gcc: error: 25517_LDFLAGS: No such file or directory
make: *** [hello_c] Error 1 

If I recompile openmpi with the same parameters the error message changes with a new random number.

< #define WRAPPER_EXTRA_LDFLAGS "-L/opt/slurm-16.05.4/lib -L/usr/lib64 25517_LDFLAGS -L/opt/mellanox/mxm/lib 25517_LDFLAGS    -Wl,-rpath -Wl,/opt/slurm-16.05.4/lib -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/opt/mellanox/mxm/lib -Wl,-rpath -Wl,@{libdir} -Wl,--enable-new-dtags"
---
> #define WRAPPER_EXTRA_LDFLAGS "-L/opt/slurm-16.05.4/lib -L/usr/lib64 5362_LDFLAGS -L/opt/mellanox/mxm/lib 5362_LDFLAGS    -Wl,-rpath -Wl,/opt/slurm-16.05.4/lib -Wl,-rpath -Wl,/usr/lib64 -Wl,-rpath -Wl,/opt/mellanox/mxm/lib -Wl,-rpath -Wl,@{libdir} -Wl,--enable-new-dtags"

It looks like there is a bug in the configure script that is collecting the number from somewhere and putting it into the LDFLAGS

mtl_mxm_LDFLAGS="$$_LDFLAGS $ompi_check_mxm_LDFLAGS"

Changing the configure script to remove the number causes software to fail on run even though it compiles.

Device name: mlx5_0 with OFED 3.2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions