[FLASH-USERS] glibc compilation error
Reyes, Adam
adam.reyes at rochester.edu
Thu Jul 11 07:07:01 EDT 2024
Hi Ryan,
I think your “FFLAGS_OPT” are missing a “-c”, which is why it’s complaining about the missing “main”.
The link flags can be set with the corresponding “LFLAGS_[OPT/DEBUG/TEST]” variables in your Makefile.h.
*********************************************
Adam Reyes

Code Group Leader, Flash Center for Computational Science
Research Scientist, Dept. of Physics and Astronomy
University of Rochester
River Campus: Bausch and Lomb Hall, 369
500 Wilson Blvd. PO Box 270171, Rochester, NY 14627
Email adam.reyes at rochester.edu
Web https://flash.rochester.edu
(he / him / his)

*********************************************
> On Jul 11, 2024, at 7:25 AM, Ryan Farber <rjfarber at umich.edu> wrote:
>
> 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
> _______________________________________________
> flash-users mailing list
> flash-users at flash.rochester.edu
>
> For list info, including unsubscribe:
> https://flash.rochester.edu/mailman/listinfo/flash-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240711/8ea5923d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH.jpg
Type: image/jpeg
Size: 23876 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240711/8ea5923d/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH-pride-sml.png
Type: image/png
Size: 12732 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240711/8ea5923d/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1391 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240711/8ea5923d/attachment-0001.p7s>
More information about the flash-users
mailing list