[FLASH-USERS] glibc compilation error

Ryan Farber rjfarber at umich.edu
Thu Jul 11 01:25:44 EDT 2024


Hi FLASH folks,

I am working on a completely local build of hdf5 etc for testing purposes.
That went fine on my laptop, but on the cluster I actually need to debug
on* I'm running into a compilation error for FLASH.**

I'm wondering if the issue is that FLASH requires multilib(?), whereas I
built gcc without multilib support (although I *think* the cluster I am one
just uses 64-bit and a single architecture...).

I am considering doing a local install of glibc-2.39 and then rebuilding
everything (gmp, mpfr, mpc, gcc, hwloc, libevent, pmix, prrte, openmpi, and
hdf5). I do have build scripts for all of those, but I'd be a bit painful,
since it takes a while to build some of those packages (particularly HDF5
but I think that's mostly in make check).

So before I do so, I'm writing to ask how I can set the LINK flags? I tried
adding to LINK=.../mpif90 -nostartupfiles in Makefile.h but that didn't
seem to do anything different :(

*since the issue I'm facing apparently only occurs for >1e5 core jobs (not
necessarily exactly 1e5 but circa).

**/dss/dsshome1/0B/di75nuc/ToSMUC/built-openmpi-5.0.3/bin/mpif90
-fdefault-real-8 -fdefault-double-8 -O3  -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8
-DNZB=1 -DN_DIM=2 Burn_interface.F90
/usr/bin/ld: /usr/lib/../lib64/crt1.o: in function `_start':
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/start.S:104:
undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [Makefile:116: Burn_interface.o] Error 1

Best wishes,
--------
Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240710/8288300a/attachment.htm>


More information about the flash-users mailing list