[Seisunix] problems installing on ubuntu

45 views
Skip to first unread message

Jose Colmenares

unread,
Mar 11, 2012, 7:02:04 PM3/11/12
to seis...@mailman.mines.edu
Hi,

I'm installing SU 43_R1 on a 32 bit laptop using Ubuntu 11.10.

I'm getting the following error when compiling:

In file included from mkheader.c:20:0:
prehdr.h:3:11: warning: ISO C forbids empty initializer braces [-pedantic]
prehdr.h:3:3: error: zero or negative size array ‘hdr’

I'm attaching the Makefile.config and the whole ouput. I've gone through the README's, but cannot find any mistake.

Thanks in advance.
Makefile.config
output

AKI

unread,
Mar 11, 2012, 8:00:13 PM3/11/12
to Jose Colmenares, seis...@mailman.mines.edu
I posted how to install  SU 43 step by step on ubuntu 11.10  few days back......on SU wiki.....may be that can help u out

Thanks

_______________________________________________
seisunix mailing list
seis...@mailman.mines.edu
https://mailman.mines.edu/mailman/listinfo/seisunix
Unsubscribe: seisunix-u...@mailman.mines.edu


Jose Colmenares

unread,
Mar 12, 2012, 4:44:58 PM3/12/12
to John Stockwell, seis...@mailman.mines.edu
Hi,

I think there is an error on the README_DEBIAN or README_UBUNTU files. When I didn't follow them everything went fine. I'm specifically talking about using the line: 

PTC = -O3 -Wall -ansi -pedantic

as recomended. I couldn't compile on two linux boxes using this. It may be related with a newer version of g++. I'm using gcc version 4.6.1. I used this line (the standard Makefile.config) and it worked fine:

OPTC = -g  -std=c99 -Wall -pedantic -Wno-long-long 

Hope this info helps. If anybody wants/needs more info about my system, just ask. 

I have to add that the wiki does not mention the changes that README_DEBIAN or README_UBUNTU recommend in the Portability directory, probably because it's newer. In both readmes I would remove the recommendation the change the OPTC parameter, and recommend having an updated system.

Don't hesitate to ask me for more tests if you think they'd help you somehow. 

Cheers.


2012/3/12 John Stockwell <jo...@dix.mines.edu>
Please try commenting out the line in Makefile.config that refers to
64 bit, and try a "make remake".

-John

Hi,
I'm installing SU 43_R1 on a 32 bit laptop using Ubuntu 11.10.

I'm getting the following error when compiling:

In file included from mkheader.c:20:0:
prehdr.h:3:11: warning: ISO C forbids empty initializer braces [-pedantic]
prehdr.h:3:3: error: zero or negative size array ?hdr?


I'm attaching the Makefile.config and the whole ouput. I've gone through the
README's, but cannot find any mistake.

Thanks in advance.



John Stockwell   | jo...@dix.Mines.EDU
Center for Wave Phenomena (The Home of Seismic Un*x)
Colorado School of Mines
Golden, CO 80401 | http://www.cwp.mines.edu/cwpcodes
voice: (303) 273-3049

Our book:
Norman Bleistein, Jack K. Cohen, John W. Stockwell Jr., [2001],
Mathematics of multidimensional seismic imaging, migration, and inversion,
(Interdisciplinary Applied Mathematics, V. 13.), Springer-Verlag, New York.


John Stockwell

unread,
Mar 12, 2012, 6:20:15 PM3/12/12
to Jose Colmenares, seis...@mailman.mines.edu
Yes. With the new method of installation, many of the Portability README
files are obsolete. If you read README_TO_INSTALL, the instructions
are basically to look for a Makefile.conf that is appropriate for
your system architecture in $CWPROOT/src/configs and move that to
$CWPROOT/src/Makefile.config

-John

Yesid Goyes

unread,
Apr 15, 2015, 5:33:48 PM4/15/15
to osdeve_mirror_ge...@googlegroups.com, seis...@mailman.mines.edu, jbcolm...@gmail.com
Reply all
Reply to author
Forward
0 new messages