Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm new to linux and I tried to compile OTIS (OSU Tidal Inversion Software) on Ubuntu. I got following error. How could I solve this?
deallocate(zeq0%z,zeq0%mz,zeq0%cid%idc,zeq0%cid%cons,&
1
zeq0%cid%group,zeq0%cid,zeq0,P)
2
Error: Allocate-object at (1) is subobject of object at (2)
ZEQset_NPG.f90:123:24:
Fortran? That's a weird one. Are you sure the compiler is installed? To check, run
Code:
ls /usr/bin/gcc*
and look for gcc-fortran unless you're using some other compiler. Have you a link to that software?
Your output makes no sense to me. It looks more like a crash, or a rubbish in --> rubbish out scenario.
Next the package: you did follow the instructions for compiling? (usually ./configure {lots of options}; make; sudo make install). If they're using cmake or any other build system, let us know
Run 'make clean', and follow the instructions. If it pukes again, in the terminal, hit up-arrow and return, and post the entire output.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,801
Rep:
Quote:
Originally Posted by dulap
I'm new to linux and I tried to compile OTIS (OSU Tidal Inversion Software) on Ubuntu. I got following error. How could I solve this?
deallocate(zeq0%z,zeq0%mz,zeq0%cid%idc,zeq0%cid%cons,&
1
zeq0%cid%group,zeq0%cid,zeq0,P)
2
Error: Allocate-object at (1) is subobject of object at (2)
ZEQset_NPG.f90:123:24:
I haven't used the Fortran allocate/deallocate statements before but from I have read about it, it seems to be a way of doing dynamic memory allocation (similar to malloc/free in C). My guess is that what is being deallocated would break some other allocated bit of memory that depends on it.
I may be wrong (and often am; just ask the missus) but my guess is that this is a little too "niche" for a helpful response from LQ users. My gut tells me that without knowing the internals of what you're trying to compile you're probably going to have to find a user group that knows about this software package in detail and pick their collective brains. I was thinking of downloading the source tar archive but, frankly, I'm balking at downloading 664MB of compressed sources from the site in hopes of finding a 'README.1st' file to look for clues to your problem. (I'm a bit surprised someone is still using 'compress'; kind of old-school.) There are email addresses on the project site at Oregon State---you might consider shooting a note to one of them an email asking for a name/email address of someone you can contact with questions about compiling the sources.
Using gfortran version 9.2.0 fails.
The error output is very different from your errors.
Reason :
Might be caused by the special Debian patching used by Ubuntu (the 100? gcc patches.)
I.e. an original gcc/g++/gfortran happens to work better with old programs.
-
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
OTIS fails with the default gfortran in Ubuntu 12.04, 14.04, 16.04, 18.04 .
OTIS compiles the 20 executable with gfortran-4.4 in the tested Ubuntu versions :
Edit `makefile´ line 23 to gfortran-4.4
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.