[daip] AIPS - compiling custom tasks pain

Michael Bietenholz mbieten at yorku.ca
Thu Aug 18 18:47:14 EDT 2011


Thanks for looking into it.  I will try re-compiling with the
additional compiler options you suggested in case that makes the
segfault go away (seems like a long shot - options might make a diff
as to whether your compiled program segfaults, but shouldn't affect
whether the *compiler* itself does so)....

You asked which one it was: gcc & gfortran version 4.5.2 - full output
of gcc -v and gfortran -v below if you want.  As you say, the gcc compilers
have had their share of issues, so this may just be one that has issues.

> I have forwarded this request to the helpdesk to see if they are willing. 
> They should be.  The machine that compiles 64-bit Linux is rishi.  Login and 
> dot /home/AIPS/LOGIN.SH (bash) or source /home/LOGIN.CSH (tcsh) and the 
> environment will be set.

Great - thanks, at this point that would seem the least frustrating
option :-)

>  The former - not reading CCOMOPT I have trouble believing.  I 
> can tell it read it on my personal installation since it refers to 31DEC09 
> for the -I part which matches my old .AIPSRC file.
> It might have trouble with a totally blank value field.

Perhaps its just that if the field is blank in .AIPSRC, it reverts to
the defaults.  I left it blank in install.pl because I wasn't sure
whether install.pl would deal with "$INC" usefully, and it kept dying
with the -axWPT option even though I thought I had removed that.

> My file actually has rather more:
> -c -O3 -fomit-frame-pointer -funroll-loops -I/home/primate/AIPS/31DEC09/INC 
> -D_FILE_OFFSET_BITS=64 -DHAVE_LINUX_GLIBC

>From what I could tell, I don't need the -D_FILE_OFFSET_BITS=64:
"getconf LFS_FLAGS" returns nothing, so that's supposed to mean the
default compilation is good for large files.  I think it shouldn't
hurt though....

        cheers           michael


gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)

gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)




More information about the Daip mailing list