From owner-nwchem-users@emsl.pnl.gov Fri Jun 23 12:34:59 2006 Received: from odyssey.emsl.pnl.gov (localhost [127.0.0.1]) by odyssey.emsl.pnl.gov (8.13.6/8.13.6) with ESMTP id k5NJYxUq018993 for ; Fri, 23 Jun 2006 12:34:59 -0700 (PDT) Received: (from majordom@localhost) by odyssey.emsl.pnl.gov (8.13.6/8.13.6/Submit) id k5NJYxqG018992 for nwchem-users-outgoing-0915; Fri, 23 Jun 2006 12:34:59 -0700 (PDT) Date: Fri, 23 Jun 2006 12:33:17 -0700 From: Dunyou Wang Subject: Re: [NWCHEM] f__argc problem with NWChem and IFC/ICC 9.0 In-reply-to: <449C1684.5080604@northwestern.edu> To: Josh Vura-Weis Cc: nwchem-users@emsl.pnl.gov Message-id: <449C41FD.9010303@pnl.gov> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit User-Agent: Thunderbird 1.5.0.4 (X11/20060516) References: <449C1684.5080604@northwestern.edu> X-OriginalArrivalTime: 23 Jun 2006 19:33:18.0634 (UTC) FILETIME=[E13B10A0:01C696FB] Sender: owner-nwchem-users@emsl.pnl.gov Precedence: bulk Hi Josh, The "-fno-second-underscore -fno-globals -Wno-globals" options in your make log are for GNU compiler not for Intel compiler. It might that your Intel compiler environment is not set up right. So would you please source the ifortvars.csh and iccvars.csh script files in these two dirs you mentioned here: /opt/local/intel/fc/9.0/bin/ifort /opt/local/intel/fc/9.0/bin/icc This will set up your compiler environment. Then use the ifort and icc commands directly: make FC=ifort CC=icc Please give it a try, and let us know the result. Cheers Dunyou Josh Vura-Weis wrote: > Hi all, > When I compile NWChem 4.7 with ifort/icc 9.0, at the very end I > get problems with f__argc and f__argv (see below). Google and the > file src/tools/tcgmsg/ipcv4.0/farg.h suggest making a fortran 'Hello > World' program to see what it wants to use for ARGC and ARGV, and if I > do that I get this: > > $ nm hello.o | grep argc > 0809af34 B for__l_argc > $ nm hello.o | grep _argv > 0809af38 B for__a_argv > > but those don't look like any of the options in farg.h. > > Has anyone solved this problem? > > To compile I run > > setenv NWCHEM_TARGET LINUX > setenv NWCHEM_MODULES qm > > make realclean > make FC=/opt/local/intel/fc/9.0/bin/ifort > CC=/opt/local/intel/cc/9.0/bin/icc nwchem_config > make FC=/opt/local/intel/fc/9.0/bin/ifort > CC=/opt/local/intel/cc/9.0/bin/icc >& make.log > > and the end of make.log is this: > > > /opt/local/intel/fc/9.0/bin/ifort -fno-f90 -ffixed-line-length-72 > -ffixed-form -malign-double -fno-globals > -Wno-g-fno-second-underscore lobals -Wunused > -fno-silent -Xlinker --export-dynamic > -L/h2/jvw/NWChem/nwchem-4.7-build/nwchem-4.7-ifc-new/lib/LINUX > -L/h2/jvw/NWChem/nwchem-4.7-build/nwchem-4.7-ifc-new/src > /tools/lib/LINUX -o > /h2/jvw/NWChem/nwchem-4.7-build/nwchem-4.7-ifc-new/bin/LINUX/nwchem > nwchem.o stubs.o -lnwctask -lccsd -lmcscf -lselci -lmp2 -lmoints -lst > epper -ldriver -ldftgrad -lnwdft -lgradients -lcphf -lesp -lddscf > -lguess -lhessian -lvib -lnwcutil -lrimp2 -lproperty -lnwints -ldplot > -letrans -ltddft -ltce > -lcons -lnwcutil -lpario -lglobal -lma -lpeigs -lperfm -lcons > -lnwcutil -llapack -lblas -larmci -ltcgmsg -lm > ifort: Command line warning: ignoring unknown option > '-fno-second-underscore' > ifort: Command line warning: ignoring unknown option '-fno-f90' > ifort: Command line warning: ignoring unknown option > '-ffixed-line-length-72' > ifort: Command line warning: ignoring unknown option '-ffixed-form' > ifort: Command line warning: ignoring unknown option '-malign-double' > ifort: Command line warning: ignoring unknown option '-fno-globals' > ifort: Command line warning: ignoring option '-W'; no argument required > ifort: Command line warning: ignoring option '-W'; no argument required > ifort: Command line warning: ignoring unknown option '-fno-silent' > IPO Error: unresolved : f__xargc > Referenced in libtcgmsg.a(pbeginf.o) > IPO Error: unresolved : f__xargv > Referenced in libtcgmsg.a(pbeginf.o) > /h2/jvw/NWChem/nwchem-4.7-build/nwchem-4.7-ifc-new/src/tools/lib/LINUX/libtcgmsg.a(pbeginf.o)(.text+0x8): > In function `pbeginf_': > : undefined reference to `f__xargv' > /h2/jvw/NWChem/nwchem-4.7-build/nwchem-4.7-ifc-new/src/tools/lib/LINUX/libtcgmsg.a(pbeginf.o)(.text+0xe): > In function `pbeginf_': > : undefined reference to `f__xargc' > make: *** [all] Error 1 > > > Thanks all, > Josh > >