Problem compiling petsc

Asked by Andrew McRae

Using Ubuntu 12.04 + dorsal trunk. Fails almost instantly, with:

<snip>
Unpacking petsc-3.3-p6
Building petsc-3.3-p6
  File "./config/configure.py", line 307, in petsc_configure
    framework = config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=PETSc.compilerOptions']+sys.argv[1:], loadArgDB = 0)
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/config/framework.py", line 110, in __init__
    self.createChildren()
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/config/framework.py", line 319, in createChildren
    self.getChild(moduleName)
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/config/framework.py", line 304, in getChild
    config.setupDependencies(self)
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/PETSc/Configure.py", line 61, in setupDependencies
    utilityObj = self.framework.require('PETSc.'+d+'.'+utilityName, self)
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/config/framework.py", line 324, in require
    config = self.getChild(moduleName, keywordArgs)
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/config/framework.py", line 302, in getChild
    config.setup()
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/script.py", line 82, in setup
    logger.Logger.setup(self)
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/logger.py", line 83, in setup
    args.ArgumentProcessor.setup(self)
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/args.py", line 75, in setup
    self.setupArguments(self.argDB)
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/script.py", line 67, in setupArguments
    self.setupHelp(self.help)
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/config/package.py", line 89, in setupHelp
    help.addArgument(self.PACKAGE,'-with-'+self.package+'-include=<dirs>',nargs.ArgDirList(None,None,'Indicate the directory of the '+self.name+' include files'))
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/help.py", line 104, in addArgument
    self.argDB.setType(self.getArgName(name), argType, forceLocal = 1)
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/RDict.py", line 209, in setType
    value.setValue(v.getValue())
  File "/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/config/BuildSystem/nargs.py", line 375, in setValue
    raise ValueError('Invalid directory: '+str(dir)+' for key '+str(self.key))
===============================================================================
             Configuring PETSc to compile on your system
===============================================================================
*******************************************************************************
                ERROR in COMMAND LINE ARGUMENT to ./configure
-------------------------------------------------------------------------------
Invalid directory: $/home/atm112/local/fenics-dependencies/include/trilinos for key with-ml-include
*******************************************************************************

makefile:15: linux-gnu-cxx-opt/conf/petscvariables: No such file or directory
/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/conf/variables:95: /home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/linux-gnu-cxx-opt/conf/petscvariables: No such file or directory
/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/conf/rules:1011: /home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/linux-gnu-cxx-opt/conf/petscrules: No such file or directory
make: *** No rule to make target `/home/atm112/local/fenics-dependencies/src/petsc-3.3-p6/linux-gnu-cxx-opt/conf/petscrules'. Stop.
Failure with exit status: 2
Exit message: There was a problem building petsc-3.3-p6.

Question information

Language:
English Edit question
Status:
Solved
For:
Dorsal Edit question
Assignee:
No assignee Edit question
Solved by:
Andrew McRae
Solved:
Last query:
Last reply:
Revision history for this message
Andrew McRae (andymc) said :
#1

I'm an idiot - had a spurious $ in my 'install directory'.