[FLASH-USERS] glibc compilation error
Ryan Farber
rjfarber at umich.edu
Thu Jul 11 12:30:43 EDT 2024
Thanks, Adam!
I was indeed missing "-c" from my FFLAGS. Thank you for also mentioning
LFLAGS is for the linking flags.
Best wishes,
--------
Ryan
On Thu, Jul 11, 2024 at 4:07 AM Reyes, Adam <adam.reyes at rochester.edu>
wrote:
> 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
>
> [image: FLASH.jpg]
> 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)
> [image: FLASH-pride-sml.png]
>
> *********************************************
>
>
>
> 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/d3ad2e2b/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/d3ad2e2b/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/d3ad2e2b/attachment-0001.png>
More information about the flash-users
mailing list