From owner-nwchem-users@emsl.pnl.gov Mon Apr 30 14:05:00 2007 Received: from odyssey.emsl.pnl.gov (localhost [127.0.0.1]) by odyssey.emsl.pnl.gov (8.13.8/8.13.8) with ESMTP id l3UL4wFf001583 for ; Mon, 30 Apr 2007 14:04:59 -0700 (PDT) Received: (from majordom@localhost) by odyssey.emsl.pnl.gov (8.13.8/8.13.8/Submit) id l3UL4wG7001582 for nwchem-users-outgoing-0915; Mon, 30 Apr 2007 14:04:58 -0700 (PDT) X-Authentication-Warning: odyssey.emsl.pnl.gov: majordom set sender to owner-nwchem-users@emsl.pnl.gov using -f X-Ironport-SG: OK_Domains X-Ironport-SBRS: 4.6 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAFn3NUbAMKsckmdsb2JhbACQKAEBAQEHBggNHYED X-IronPort-AV: i="4.14,472,1170662400"; d="scan'208"; a="30151804:sNHT17971135" Date: Mon, 30 Apr 2007 16:04:52 -0500 (CDT) From: Gerardo Cisneros X-Sender: gerardo@zion.americas.sgi.com To: Matteo Guglielmi cc: nwchem-users@emsl.pnl.gov Subject: Re: [NWCHEM] Nwchem 4.7/5.0 compilation error In-Reply-To: <46365113.10507@epfl.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-nwchem-users@emsl.pnl.gov Precedence: bulk Matteo, You wrote: > Intel Fortran Compiler: 9.1.040 > [...] > > ### ERROR MESSAGE ### > ifort -i8 -align -w -g -vec_report3 -O2 -g -I. > -I/home/guglielm/Software/nwchem-4.7/src/include > -I/home/guglielm/Software/nwchem-4.7/src/tools/include -DEXT_INT -DLINUX > -DLINUX64 -DIFCV8 -DIFCLINUX -DPARALLEL_DIAG > -DCOMPILATION_DATE="'`date`'" -------------------->^^^^^^^^^^^ > [...] > fortcom: Severe: File not found: 'Apr' > [...] > > Does anybody know which file ifort is looking for? > > Actually "Apr" could be... April... (Edoardo) Apra... Aprims... but in > this case it would be a bug. It is a bug, not in NWChem but in recent Intel compiler versions. What happens is that the ifort wrapper is taking away more quotation marks than it should, so the date generated in -DCOMPILATION_DATE="'`date''" ends up as -DCOMPILATION_DATE=Mon Apr 30 14:02:29 PDT 2007 instead of -DCOMPILATION_DATE="Mon Apr 30 14:02:29 PDT 2007" My workaround is to replace the blanks with underscores: % cd $NWCHEM_TOP/src % diff GNUmakefile GNUmakefile.orig 10c10 < LIB_DEFINES = -DCOMPILATION_DATE="'`date|tr \" \" \"_\"`'" \ --- > LIB_DEFINES = -DCOMPILATION_DATE="'`date`'" \ Saludos, Gerardo -- Dr. Gerardo Cisneros |SGI (Silicon Graphics, S.A. de C.V.) Scientist |Av. Vasco de Quiroga 3000, Col. Santa Fe gerardo@sgi.com |01210 Mexico, D.F., MEXICO (+52-55)5563-7958 |http://www.sgi.com/