rocm_sdk_builder icon indicating copy to clipboard operation
rocm_sdk_builder copied to clipboard

ucx fails to build with -fPIC passed to configure

Open cb88 opened this issue 9 months ago • 6 comments

cd /home/cb88/rocm_sdk_builder/builddir/015_01_ucx_openmpi ucx, config command 3 /home/cb88/rocm_sdk_builder/src_projects/ucx/configure --prefix=/opt/rocm_sdk_612 --libdir=/opt/rocm_sdk_612/lib64 --with-rocm=/opt/rocm_sdk_612 --enable-mt -fPIC --enable-cma --with-java=no --with-go=no configure: error: unrecognized option: '-fPIC'

Seems this SHOULD be part of its CFLAGS but I appears this is not the correct option to pass to ./configure maybe --enable-pic ?

cb88 avatar Mar 15 '25 01:03 cb88

https://github.com/openucx/ucx/issues/7955

removed -fPIC and build with --without-bfd seems to get it building not sure its correct but it seems building with bfd is not supported on Arch.

cb88 avatar Mar 15 '25 02:03 cb88

@cb88 so curious about your use case - directstorage/networking??

chboishabba avatar Mar 15 '25 02:03 chboishabba

its just part of ROCm I'm not building anything myself that uses it... but its required as a dep.

cb88 avatar Mar 15 '25 02:03 cb88

So you got the ucx working? The reason I have ucc/ucx/slurm/openmpi is that they will enable you to do applications with multiple GPU's on same or different machine communicating with each others for ML purposes.

I will soon propably update the ucc/ucx/slurm/openmpi versions to latest releases.

lamikr avatar Mar 22 '25 19:03 lamikr

I built completely yes, it at least I did not test anything beyond that, its just a build failure I ran into on Arch so..... was looking for how to fix it to continue building the rest of the SDK etc...

cb88 avatar Mar 27 '25 15:03 cb88

I updated to your latest ucx commit and tried building it without my changes but it still failed, I had to add --without-bfd to the configure arguments in the binfo file.

cb88 avatar Mar 27 '25 15:03 cb88