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

Fortran compilation error (Cwell) #133

Open
kiufta opened this issue Jan 18, 2023 · 7 comments
Open

Fortran compilation error (Cwell) #133

kiufta opened this issue Jan 18, 2023 · 7 comments

Comments

@kiufta
Copy link

kiufta commented Jan 18, 2023

Dear Mr. Stockwell,
I'm recompiling my years old seismic unix build. Currently there is 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

@JohnWStockwellJr
Copy link
Owner

JohnWStockwellJr commented Jan 18, 2023 via email

@JohnWStockwellJr
Copy link
Owner

JohnWStockwellJr commented Jan 20, 2023 via email

@meerfrau
Copy link

meerfrau commented Apr 21, 2023

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.

Using GCC 11 by
export FC=gfortran-11
FC=gfortran-11 make finstall
hasn't worked so far – may I use another compiler in SU?

@JohnWStockwellJr
Copy link
Owner

JohnWStockwellJr commented Apr 21, 2023 via email

@meerfrau
Copy link

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)

@JohnWStockwellJr
Copy link
Owner

JohnWStockwellJr commented Apr 21, 2023 via email

@YingchangLiu
Copy link
Contributor

YingchangLiu commented Nov 9, 2023

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.

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

4 participants