Compilation fails with latest version of master

59 views
Skip to first unread message

Lubomír Bureš

unread,
Jan 5, 2025, 7:44:45 AMJan 5
to Nek5000
Hi,

When compiling the latest version of master, I am getting an error (see below). When using the tagged version (v19.0), things work well. Any idea?

Thanks,
Lubomir

/usr/bin/ld: /home/lubomir/projects/nek5000/run/001_laminar_2d/obj/libnek5000.a(subs1.o): in function `crs_strs_':
subs1.f:(.text+0x1976): undefined reference to `crs_solve_'
/usr/bin/ld: subs1.f:(.text+0x1b56): undefined reference to `crs_solve_'
/usr/bin/ld: /home/lubomir/projects/nek5000/run/001_laminar_2d/obj/libnek5000.a(subs1.o): in function `set_up_h1_crs_strs_':
subs1.f:(.text+0x5d1e): undefined reference to `crs_setup_'
/usr/bin/ld: /home/lubomir/projects/nek5000/run/001_laminar_2d/obj/libnek5000.a(hsmg.o): in function `hsmg_coarse_solve_':
hsmg.f:(.text+0xb5d): undefined reference to `crs_solve_'
/usr/bin/ld: /home/lubomir/projects/nek5000/run/001_laminar_2d/obj/libnek5000.a(navier8.o): in function `crs_solve_l2_':
navier8.f:(.text+0x55b8): undefined reference to `crs_solve_'
/usr/bin/ld: /home/lubomir/projects/nek5000/run/001_laminar_2d/obj/libnek5000.a(navier8.o): in function `set_up_h1_crs_':
navier8.f:(.text+0x598a): undefined reference to `crs_setup_'
/usr/bin/ld: /home/lubomir/projects/nek5000/run/001_laminar_2d/obj/libnek5000.a(navier8.o): in function `crs_solve_h1_':
navier8.f:(.text+0x75b7): undefined reference to `crs_solve_'
collect2: error: ld returned 1 exit status
make: *** [makefile:121: nek5000] Error 1

James Vulcanoff

unread,
Jan 7, 2025, 2:25:25 PMJan 7
to Nek5000
Hello Lubomir,

This is an issue with the gslib not pulling properly. I would remove and replace the gslib folder in Nek500/3rd_party/. I would try that.

- Vera

Lubomír Bureš

unread,
Jan 11, 2025, 10:44:39 AMJan 11
to Nek5000
Thanks! What helped was to navigate to the `gslib` directory and run the `install` script there, since it has a `wget` in it.

Ansh Chaube

unread,
Jul 24, 2025, 2:03:00 PMJul 24
to Nek5000
Upgrading to a newer GCC fixed this for me, but the suggestions above did not work.
Reply all
Reply to author
Forward
0 new messages