Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'make SYSTEM=gfortran' fails (undefined reference to 'giza_axis') #74

Open
wolfram-schmidt opened this issue Jan 23, 2024 · 3 comments
Open

Comments

@wolfram-schmidt
Copy link

Hi,

after installing giza commit 72d3703 in /usr/local, I attempted to compile splash commit 7cd8892 from source. However,

make SYSTEM=gfortran

throws the following errors when linking:

/usr/bin/ld: giza-fortran.o: in function '__giza_MOD_giza_intern_tick_f2c':
giza-fortran.F90:(.text+0x3fed): undefined reference to 'giza_tick'
/usr/bin/ld: giza-fortran.o: in function '__giza_MOD_giza_intern_axis_f2c':
giza-fortran.F90:(.text+0x4194): undefined reference to 'giza_axis'

The linker runs with option -L/usr/local/lib -lgiza, which is the correct path:

ls /usr/local/lib/libgiza*
/usr/local/lib/libgiza.a /usr/local/lib/libgiza.la /usr/local/lib/libgiza.so /usr/local/lib/libgiza.so.0 /usr/local/lib/libgiza.so.0.1.1

Any suggestions how to fix this?

Thanks,
Wolfram

@danieljprice
Copy link
Owner

Hi Wolfram, thanks for flagging this. It's due to a version mismatch in the linked version of giza, would suggest to delete the libgiza* files in /usr/local and reinstall giza to the latest version.

alternatively, you can also install a local copy of giza with splash using "make withgiza SYSTEM=gfortran" with a copy of giza checked out as a subdirectory of splash

@wolfram-schmidt
Copy link
Author

Hi Daniel, for my installation I used giza commit 72d3703 (Nov 30, 2023), which is the most recent commit on github. So I don't understand what you mean with "reinstalling giza to the latest version".

@wolfram-schmidt
Copy link
Author

Same problem with fresh clones of splash and giza and using the make withgiza variant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants