Second Official Candidate Release of NWCHEM6.8 cannot be compiled on Ubuntu17.10


Click here for full thread
Forum Vet
Dear Dr. Edoapra
    The command gfortran-4.8 -v leaves blank.
Since it seems GCC-4.9 is no longer available from the official GCC website, I
reinstalled GCC-4.8 and GFORTRAN-4.8, and gcc-4.8 -v gives
Using built-in specs.
COLLECT_GCC=gcc-4.8
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.5-4ubuntu6' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --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.8.5 (Ubuntu 4.8.5-4ubuntu6)

and gfortran-4.8 -v gives

Using built-in specs.
COLLECT_GCC=gfortran-4.8
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.5-4ubuntu6' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --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.8.5 (Ubuntu 4.8.5-4ubuntu6) .

    The compilation also fails even CC and FC are exported

...
Making libraries in basis
make[1]: Entering directory '/home/hp/computation/nwchem6.6/src/basis'
/bin/sh: 1: [: -gt: unexpected operator
/bin/sh: 1: [: -gt: unexpected operator
/bin/sh: 1: [: -gt: unexpected operator
/bin/sh: 1: [: -gt: unexpected operator
( cd /home/hp/computation/nwchem6.6/src/config; make /home/hp/computation/nwchem6.6/bin/LINUX64/depend.x ; )
make[2]: Entering directory '/home/hp/computation/nwchem6.6/src/config'
/bin/sh: 1: [: -gt: unexpected operator
/bin/sh: 1: [: -gt: unexpected operator
/bin/sh: 1: [: -gt: unexpected operator
/bin/sh: 1: [: -gt: unexpected operator
/usr/bin/gcc -g -o /home/hp/computation/nwchem6.6/bin/LINUX64/depend.x depend.c
make[2]: /usr/bin/gcc??????
GNUmakefile:45: recipe for target '/home/hp/computation/nwchem6.6/bin/LINUX64/depend.x' failed
make[2]: *** [/home/hp/computation/nwchem6.6/bin/LINUX64/depend.x] Error 127
make[2]: Leaving directory '/home/hp/computation/nwchem6.6/src/config'
gfortran -c -m64 -ffast-math -Wuninitialized -fdefault-integer-8 -g -g -O -I. -I/home/hp/computation/nwchem6.6/src/include -I/home/hp/computation/nwchem6.6/src/tools/install/include -DGFORTRAN -DCHKUNDFLW -DGCC4 -DEXT_INT -DLINUX -DLINUX64 -DPARALLEL_DIAG basis.F
make[1]: gfortran??????
../config/makefile.h:2532: recipe for target '/home/hp/computation/nwchem6.6/lib/LINUX64/libnwcutil.a(basis.o)' failed
make[1]: *** [/home/hp/computation/nwchem6.6/lib/LINUX64/libnwcutil.a(basis.o)] Error 127
make[1]: Leaving directory '/home/hp/computation/nwchem6.6/src/basis'
GNUmakefile:103: recipe for target 'libraries' failed
make: *** [libraries] Error 1

Thanks!

Very Best Regards!