From: Arlindo da S. <da...@al...> - 2008-08-22 02:03:38
|
Jennifer, I am having a bit of trouble building "a3" on Ubuntu x86_64, with either our old build or your new one. Here is what I have: - Linux Niteroi 2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008 x86_64 GNU/Linux - gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) - ldd grads linux-vdso.so.1 => (0x00007fff5c3fe000) libX11.so.6 => /usr/lib/libX11.so.6 (0x00002b754e94a000) libm.so.6 => /lib/libm.so.6 (0x00002b754ec4d000) libc.so.6 => /lib/libc.so.6 (0x00002b754eece000) libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0x00002b754f231000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00002b754f432000) libdl.so.2 => /lib/libdl.so.2 (0x00002b754f64d000) /lib64/ld-linux-x86-64.so.2 (0x00002b754e72b000) libXau.so.6 => /usr/lib/libXau.so.6 (0x00002b754f852000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00002b754fa54000) I am getting segfaults when opening a netcdf file, with either "grads" or "gradap": ga-> sdfopen data/model.nc Scanning self-describing file: data/model.nc Program received signal SIGSEGV, Segmentation fault. read_metadata (pfi=0xadf270) at ./gasdf.c:2270 2270 pvar->offset = 0; Usually everything is compiled with "-g -O2", and this gives me the error above. Now, if I set export CFLAGS="-g" ./configure everything compiles with "-g" (no -O2), and now everything works. BTW, your Ubuntu binary works. So, it could be a supplib issue or a gcc optimization problem. (I rebuilt the supplibs to be sure, and it did not make a difference). Which version of Ubuntu/gcc are you using? Arlindo -- Arlindo da Silva da...@al... |