-
Notifications
You must be signed in to change notification settings - Fork 124
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
Fortran compilation error (Cwell) #133
Comments
Hi. Tell me exactly what you are doing (versions of SU, version of your operating system, C-compiler, all that)
John Stockwell
Visit: https://wiki.Seismic-Unix.org
The new home of Seismic Un*x
… On Jan 18, 2023, at 2:09 PM, kiufta ***@***.***> wrote:
Dear Mr. Stockwell,
I'm currently recompiling my years old seismic unix build. Currently I'm getting a build error in interp of Cwell:
make[2]: Entering directory '[..]/Fortran/Cwell'
gfortran -g -std=legacy -no-pie -ffixed-line-length-none -fallow-argument-mismatch -c -o shoot.o shoot.f
ar rv libcwell.a shoot.o
r - shoot.o
gfortran -g -std=legacy -no-pie -ffixed-line-length-none -fallow-argument-mismatch -c -o interp.o interp.f
ar rv libcwell.a interp.o
ar: libcwell.a: malformed archive
make[2]: *** [<builtin>: libcwell.a(interp.o)] Error 1
I'm using gfortran 12.2.1
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
Try installing gfortran with Homebrew, and use that when you recompile the Fortran codes
John Stockwell
Visit: https://wiki.Seismic-Unix.org
The new home of Seismic Un*x
… On Jan 18, 2023, at 2:09 PM, kiufta ***@***.***> wrote:
Dear Mr. Stockwell,
I'm currently recompiling my years old seismic unix build. Currently I'm getting a build error in interp of Cwell:
make[2]: Entering directory '[..]/Fortran/Cwell'
gfortran -g -std=legacy -no-pie -ffixed-line-length-none -fallow-argument-mismatch -c -o shoot.o shoot.f
ar rv libcwell.a shoot.o
r - shoot.o
gfortran -g -std=legacy -no-pie -ffixed-line-length-none -fallow-argument-mismatch -c -o interp.o interp.f
ar rv libcwell.a interp.o
ar: libcwell.a: malformed archive
make[2]: *** [<builtin>: libcwell.a(interp.o)] Error 1
I'm using gfortran 12.2.1
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
Hello, I've got the same error:
I'm using GCC 12 from ArchLinux on git master of Seismic Un*x. Using GCC 11 by |
Fortran is always the bad boy. If you absolutely need Fortran codes, then try changing the compiler flags or try a different compiler. Otherwise you may ignore the fininstall. These codes are not essential to SU.
John Stockwell
Visit: https://wiki.Seismic-Unix.org
The new home of Seismic Un*x
… On Apr 21, 2023, at 6:10 AM, meerfrau ***@***.***> wrote:
Hello, I've got the same error:
gfortran -g -std=legacy -no-pie -ffixed-line-length-none -fallow-argument-mismatch -c -o interp.o interp.f
ar rv libcwell.a interp.o
ar: libcwell.a: malformed archive
make[2]: *** [<builtin>: libcwell.a(interp.o)] Error 1
I'm using GCC 12 from ArchLinux on git master of Seismic Un*x.
I've failed to use GCC 11 by
export FC=gfortran-11
FC=gfortran-11 make finstall
– may I use another compiler in SU?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Okay, unluckily there are 2 non-Fortran errors:
and
|
If the make install went correctly there should be libpar.a
In $CWPROOT/lib
John Stockwell
Visit: https://wiki.Seismic-Unix.org
The new home of Seismic Un*x
… On Apr 21, 2023, at 2:19 PM, meerfrau ***@***.***> wrote:
Okay, unluckily there are 2 non-Fortran errors:
ar rv ./SeisUnix-master/lib/libsu.a gridxy.o
a - gridxy.o
/usr/bin/ld: cannot find -lpar: No such file or directory
and
make[2]: *** [./SeisUnix-master/src/Rules/suffix.rules:4: ./SeisUnix-master/lib/libsu.a(tabplot.o)] Bus error (core dumped)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Hi Mr Stockwell, I had the same problem at compile time. If I go into the src/Fortran directory and make remake then I can compile Fortran, there should be some undeleted static library containing path parameters for your system. |
Dear Mr. Stockwell,
I'm recompiling my years old seismic unix build. Currently there is a build error in interp of Cwell:
I'm using gfortran 12.2.1
The text was updated successfully, but these errors were encountered: