hkmoffat / cantera

Automatically exported from code.google.com/p/cantera
0 stars 0 forks source link

scons build failing, can't find config.h #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I try to build the current development cantera using "scons build", it 
fails with:

g++ -o build/src/fortran/fct.o -c -ftemplate-depth-128 -Wall 
-Wno-deprecated-declarations -O3 -DNDEBUG -finline-functions -Wno-inline -g 
-I/usr/local/include -Iinclude -Isrc src/fortran/fct.cpp
In file included from include/cantera/equil/MultiPhase.h:12:0,
                 from include/cantera/equil/equil.h:15,
                 from src/fortran/fct.cpp:10:
include/cantera/base/ct_defs.h:17:20: fatal error: config.h: No such file or 
directory

I know that scons should be making the config.h file; I'm not sure why it isn't.

Here is my cantera.conf:
python_package = 'full'
python_cmd = '/usr/local/bin/python'
f90_interface = 'y'
F90 = 'gfortran'
doxygen_docs = True
use_sundials = 'y'
sundials_include = '/usr/local/include/'
sundials_libdir = '/usr/local/lib/'
env_vars = 'all'
debug_linker_flags = '-lgfortran -lf2c'
no_debug_linker_flags = '-lgfortran -lf2c'
build_with_f2c = False

I'm on Mac OS X 10.8, using gcc 4.7.0, scons 2.1.0, python 2.7.3, and sundials 
2.5.0.

Strangely, I was able to build and install successfully earlier today, with the 
same settings! I wanted to go back and rebuild with thread safety, but got this 
error (after running "scons clean" and "scons test clean"). I've since deleted 
and redownloaded the entire source (using git).

Any ideas? Thanks!

Original issue reported on code.google.com by kyle.nie...@gmail.com on 10 Aug 2012 at 6:00

GoogleCodeExporter commented 9 years ago
All your settings look normal, and SCons should recognize that building fct.o 
requires creating config.h first.

First, can you confirm that after the failed build, there is in fact no 
config.h in the 'include/cantera/base' directory?

Then, can you run the commands:

    scons clean
    scons -Q --taskmastertrace=taskmaster.txt build > scons-output.txt 2>&1

And attach the resulting taskmaster.txt and scons-output.txt files? They might 
help identify what's going wrong.

Original comment by yarmond on 10 Aug 2012 at 2:47

GoogleCodeExporter commented 9 years ago
I can confirm that no config.h exists in 'include/cantera/base', although there 
is a 'config.h.in'

Thanks for your help! I attached both files. Again, this is strange, because it 
built yesterday (and I specifically remember 'scons clean' removing 
'config.h'). The only difference now (that I'm aware of) is that cantera is 
installed in '/usr/local/'.

Original comment by kyle.nie...@gmail.com on 10 Aug 2012 at 2:54

Attachments:

GoogleCodeExporter commented 9 years ago
It looks like it's getting confused by the presence of the already-installed 
headers in /usr/local. Can you try making the following modifications and 
recompiling?

In 'src/Fortran/SConscript', change line 6 from:
    localenv.Append(CPPPATH=['#include', '#src'])
to:
    localenv.Prepend(CPPPATH=['#include', '#src'])

And in 'src/SConscript', change line 41 from:
    localenv.Append(CPPPATH=Dir('#include'))
to:
    localenv.Prepend(CPPPATH=Dir('#include'))

Original comment by yarmond on 10 Aug 2012 at 6:09

GoogleCodeExporter commented 9 years ago
That did it! The build was successful, thanks for your help!

There were a couple of other things I ran into but solved myself, that perhaps 
should be changed:
- Initially I set "blas_lapack_libs" in cantera.conf, but ran into linking 
issues. 'SConstruct' picks up the Accelerate framework for Macs, but not if 
"blas_lapack_libs" is set (removing this fixed the problem).  Perhaps it should 
be set to ignore that setting on Macs, or change the configuration instructions?

- I needed to add "-lgfortran" to the "debug_linker_flags" and 
"no_debug_linker_flags", otherwise gcc gave linking errors

- Finally, when using gcc and gfortran (4.7.0 in my case), I needed to install 
the libf2c libraries (and add "-lf2c" to the linker flags as above). Without 
it, my linker gave errors, not able to find "_do_fio" and other subroutines. 
The older g77 had this library 
(http://gcc.gnu.org/onlinedocs/gcc-3.4.6/g77/What-is-GNU-Fortran_003f.html), 
but the newer gfortran does not.

Original comment by kyle.nie...@gmail.com on 10 Aug 2012 at 6:40

GoogleCodeExporter commented 9 years ago
The main issue is fixed in r1777.

I have limited experience with building on OSX, so can you clarify a few things?

(1) What did you set blas_lapack_libs to? Are you saying that it's still 
necessary to specify the Accelerate framework even when you have a separate 
BLAS/LAPACK library? What error do you get when it isn't given?

(2) If you don't add -lgfortran to the linker flags, where do the errors occur 
(just the output from 'scons build' would be sufficient)

(3) Where do you get errors when building without -lf2c specified?

Original comment by yarmond on 10 Aug 2012 at 9:16

GoogleCodeExporter commented 9 years ago
(1) I assumed I needed to manually link to my blas, lapack, and atlas libraries 
in /usr/lib/, so I set "blas_lapack_libs" to something like "blas, cblas, 
lapack, clapack, atlas" and "blas_lapack_dir" to "/usr/lib/". 

However, this led to linker errors about not being able to find various 
subroutines in those libraries. I looked at SConstruct and saw that for Mac 
(line 639: elif env['OS'] == 'Darwin':) if nothing was set, it automatically 
picked up the Accelerate framework. After I removed my "blas_lapack_libs", it 
linked without error.

I'm suggesting that, for OS X, either SConstruct should ignore manually set 
libraries since it can use Accelerate, or just to say on the compilation 
website to not set "blas_lapack_libs".

(2) If I remove -lgfortran from the linker flags, the build stops here:

g++ -o build/lib/libcantera_shared.dylib -dynamiclib 
build/ext/libexecstream/exec-stream.os build/ext/math/mach.os 
build/ext/math/printstring.os build/ext/math/daux.os build/ext/math/ddaspk.os 
build/ext/math/dgbfa.os build/ext/math/dgbsl.os build/ext/math/dgefa.os 
build/ext/math/dgesl.os build/ext/math/dp1vlu.os build/ext/math/dpcoef.os 
build/ext/math/dpolft.os build/ext/math/fdump.os build/ext/math/j4save.os 
build/ext/math/pcoef.os build/ext/math/polfit.os build/ext/math/pvalue.os 
build/ext/math/xercnt.os build/ext/math/xerhlt.os build/ext/math/xermsg.os 
build/ext/math/xerprn.os build/ext/math/xersve.os build/ext/math/xgetua.os 
build/src/base/LogPrintCtrl.os build/src/base/PrintCtrl.os 
build/src/base/application.os build/src/base/checkFinite.os 
build/src/base/clockWC.os build/src/base/ct2ctml.os 
build/src/base/ctexceptions.os build/src/base/ctml.os build/src/base/global.os 
build/src/base/mdp_allo.os build/src/base/plots.os 
build/src/base/stringUtils.os build/src/base/xml.os 
build/src/thermo/ConstCpPoly.os build/src/thermo/ConstDensityThermo.os 
build/src/thermo/DebyeHuckel.os build/src/thermo/Elements.os 
build/src/thermo/FixedChemPotSSTP.os build/src/thermo/GeneralSpeciesThermo.os 
build/src/thermo/GibbsExcessVPSSTP.os build/src/thermo/HMWSoln.os 
build/src/thermo/HMWSoln_input.os build/src/thermo/IdealGasPhase.os 
build/src/thermo/IdealMolalSoln.os build/src/thermo/IdealSolidSolnPhase.os 
build/src/thermo/IdealSolnGasVPSS.os build/src/thermo/IonsFromNeutralVPSSTP.os 
build/src/thermo/LatticePhase.os build/src/thermo/LatticeSolidPhase.os 
build/src/thermo/MargulesVPSSTP.os build/src/thermo/MetalSHEelectrons.os 
build/src/thermo/MineralEQ3.os build/src/thermo/MixedSolventElectrolyte.os 
build/src/thermo/MixtureFugacityTP.os build/src/thermo/MolalityVPSSTP.os 
build/src/thermo/MolarityIonicVPSSTP.os build/src/thermo/Mu0Poly.os 
build/src/thermo/Nasa9Poly1.os build/src/thermo/Nasa9PolyMultiTempRegion.os 
build/src/thermo/PDSS.os build/src/thermo/PDSS_ConstVol.os 
build/src/thermo/PDSS_HKFT.os build/src/thermo/PDSS_IdealGas.os 
build/src/thermo/PDSS_IonsFromNeutral.os build/src/thermo/PDSS_SSVol.os 
build/src/thermo/PDSS_Water.os build/src/thermo/Phase.os 
build/src/thermo/PhaseCombo_Interaction.os 
build/src/thermo/PseudoBinaryVPSSTP.os build/src/thermo/PureFluidPhase.os 
build/src/thermo/RedlichKisterVPSSTP.os build/src/thermo/RedlichKwongMFTP.os 
build/src/thermo/SemiconductorPhase.os build/src/thermo/SingleSpeciesTP.os 
build/src/thermo/SpeciesThermoFactory.os 
build/src/thermo/SpeciesThermoInterpType.os build/src/thermo/StatMech.os 
build/src/thermo/StoichSubstance.os build/src/thermo/StoichSubstanceSSTP.os 
build/src/thermo/SurfPhase.os build/src/thermo/ThermoFactory.os 
build/src/thermo/ThermoPhase.os build/src/thermo/VPSSMgr.os 
build/src/thermo/VPSSMgrFactory.os build/src/thermo/VPSSMgr_ConstVol.os 
build/src/thermo/VPSSMgr_General.os build/src/thermo/VPSSMgr_IdealGas.os 
build/src/thermo/VPSSMgr_Water_ConstVol.os 
build/src/thermo/VPSSMgr_Water_HKFT.os build/src/thermo/VPStandardStateTP.os 
build/src/thermo/WaterProps.os build/src/thermo/WaterPropsIAPWS.os 
build/src/thermo/WaterPropsIAPWSphi.os build/src/thermo/WaterSSTP.os 
build/src/tpx/CarbonDioxide.os build/src/tpx/HFC134a.os 
build/src/tpx/Heptane.os build/src/tpx/Hydrogen.os build/src/tpx/Methane.os 
build/src/tpx/Nitrogen.os build/src/tpx/Oxygen.os build/src/tpx/RedlichKwong.os 
build/src/tpx/Sub.os build/src/tpx/Water.os build/src/tpx/lk.os 
build/src/tpx/utils.os build/src/equil/BasisOptimize.os 
build/src/equil/ChemEquil.os build/src/equil/MultiPhase.os 
build/src/equil/MultiPhaseEquil.os build/src/equil/equilibrate.os 
build/src/equil/vcs_DoubleStarStar.os build/src/equil/vcs_Gibbs.os 
build/src/equil/vcs_IntStarStar.os build/src/equil/vcs_MultiPhaseEquil.os 
build/src/equil/vcs_SpeciesProperties.os build/src/equil/vcs_TP.os 
build/src/equil/vcs_VolPhase.os build/src/equil/vcs_elem.os 
build/src/equil/vcs_elem_rearrange.os build/src/equil/vcs_equilibrate.os 
build/src/equil/vcs_inest.os build/src/equil/vcs_nondim.os 
build/src/equil/vcs_phaseStability.os build/src/equil/vcs_prep.os 
build/src/equil/vcs_prob.os build/src/equil/vcs_rearrange.os 
build/src/equil/vcs_report.os build/src/equil/vcs_root1d.os 
build/src/equil/vcs_rxnadj.os build/src/equil/vcs_setMolesLinProg.os 
build/src/equil/vcs_solve.os build/src/equil/vcs_solve_TP.os 
build/src/equil/vcs_solve_phaseStability.os 
build/src/equil/vcs_species_thermo.os build/src/equil/vcs_util.os 
build/src/equil/vcs_dbocls.os build/src/equil/vcs_dbols.os 
build/src/equil/vcs_dbolsm.os build/src/equil/vcs_dmout.os 
build/src/equil/vcs_dvout.os build/src/equil/vcs_ivout.os 
build/src/equil/vcs_xerror.os build/src/numerics/BEulerInt.os 
build/src/numerics/BandMatrix.os build/src/numerics/CVodesIntegrator.os 
build/src/numerics/DAE_solvers.os build/src/numerics/DenseMatrix.os 
build/src/numerics/Func1.os build/src/numerics/GeneralMatrix.os 
build/src/numerics/IDA_Solver.os build/src/numerics/NonlinearSolver.os 
build/src/numerics/ODE_integrators.os build/src/numerics/ResidJacEval.os 
build/src/numerics/RootFind.os build/src/numerics/SquareMatrix.os 
build/src/numerics/funcs.os build/src/numerics/solveProb.os 
build/src/kinetics/AqueousKinetics.os build/src/kinetics/FalloffFactory.os 
build/src/kinetics/GRI_30_Kinetics.os build/src/kinetics/GasKinetics.os 
build/src/kinetics/Group.os build/src/kinetics/ImplicitSurfChem.os 
build/src/kinetics/InterfaceKinetics.os build/src/kinetics/Kinetics.os 
build/src/kinetics/KineticsFactory.os build/src/kinetics/ReactionPath.os 
build/src/kinetics/ReactionStoichMgr.os build/src/kinetics/importKinetics.os 
build/src/kinetics/solveSP.os build/src/transport/AqueousTransport.os 
build/src/transport/DustyGasTransport.os build/src/transport/GasTransport.os 
build/src/transport/LTPspecies.os build/src/transport/LiquidTranInteraction.os 
build/src/transport/LiquidTransport.os 
build/src/transport/LiquidTransportData.os 
build/src/transport/LiquidTransportParams.os 
build/src/transport/MMCollisionInt.os build/src/transport/MixTransport.os 
build/src/transport/MultiTransport.os build/src/transport/PecosTransport.os 
build/src/transport/SimpleTransport.os build/src/transport/SolidTransport.os 
build/src/transport/TortuosityBase.os 
build/src/transport/TortuosityBruggeman.os 
build/src/transport/TortuosityMaxwell.os 
build/src/transport/TortuosityPercolation.os 
build/src/transport/TransportBase.os build/src/transport/TransportFactory.os 
build/src/transport/TransportParams.os build/src/transport/WaterTransport.os 
build/src/spectra/LineBroadener.os build/src/spectra/rotor.os 
build/src/spectra/spectralUtilities.os build/src/oneD/Domain1D.os 
build/src/oneD/MultiJac.os build/src/oneD/MultiNewton.os 
build/src/oneD/OneDim.os build/src/oneD/Sim1D.os build/src/oneD/StFlow.os 
build/src/oneD/boundaries1D.os build/src/oneD/newton_utils.os 
build/src/oneD/refine.os build/src/zeroD/ConstPressureReactor.os 
build/src/zeroD/FlowDevice.os build/src/zeroD/FlowReactor.os 
build/src/zeroD/Reactor.os build/src/zeroD/ReactorBase.os 
build/src/zeroD/ReactorFactory.os build/src/zeroD/ReactorNet.os 
build/src/zeroD/Wall.os build/src/clib/ct.os build/src/clib/ctbdry.os 
build/src/clib/ctfunc.os build/src/clib/ctmultiphase.os 
build/src/clib/ctonedim.os build/src/clib/ctreactor.os 
build/src/clib/ctrpath.os build/src/clib/ctsurf.os build/src/clib/ctxml.os 
-L/usr/local/lib -Lbuild/lib -L/usr/local/lib -lsundials_cvodes -lsundials_ida 
-lsundials_nvecserial -framework Accelerate
Undefined symbols for architecture x86_64:
  "__gfortran_compare_string", referenced from:
      _xersve_ in xersve.os
  "__gfortran_concat_string", referenced from:
      _dp1vlu_ in dp1vlu.os
      _xermsg_ in xermsg.os
  "__gfortran_st_write", referenced from:
      _xerrwd_ in daux.os
      _ddaspk_ in ddaspk.os
      _dp1vlu_ in dp1vlu.os
      _xerhlt_ in xerhlt.os
      _xermsg_ in xermsg.os
      _xersve_ in xersve.os
  "__gfortran_st_write_done", referenced from:
      _xerrwd_ in daux.os
      _ddaspk_ in ddaspk.os
      _dp1vlu_ in dp1vlu.os
      _xerhlt_ in xerhlt.os
      _xermsg_ in xermsg.os
      _xersve_ in xersve.os
  "__gfortran_stop_string", referenced from:
      _xerrwd_ in daux.os
      _xerhlt_ in xerhlt.os
  "__gfortran_string_index", referenced from:
      _xerprn_ in xerprn.os
  "__gfortran_transfer_character_write", referenced from:
      _xerrwd_ in daux.os
      _ddaspk_ in ddaspk.os
      _xerhlt_ in xerhlt.os
      _xersve_ in xersve.os
  "__gfortran_transfer_integer_write", referenced from:
      _xerrwd_ in daux.os
      _dp1vlu_ in dp1vlu.os
      _xermsg_ in xermsg.os
      _xersve_ in xersve.os
  "__gfortran_transfer_real_write", referenced from:
      _xerrwd_ in daux.os
      _ddaspk_ in ddaspk.os
  "_do_fio", referenced from:
      _dmout_ in vcs_dmout.os
      _dvout_ in vcs_dvout.os
      _ivout_ in vcs_ivout.os
      _xerrwv_ in vcs_xerror.os
  "_e_wsfe", referenced from:
      _dmout_ in vcs_dmout.os
      _dvout_ in vcs_dvout.os
      _ivout_ in vcs_ivout.os
      _xerrwv_ in vcs_xerror.os
  "_s_stop", referenced from:
      _xerrwv_ in vcs_xerror.os
  "_s_wsfe", referenced from:
      _dmout_ in vcs_dmout.os
      _dvout_ in vcs_dvout.os
      _ivout_ in vcs_ivout.os
      _xerrwv_ in vcs_xerror.os
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
scons: *** [build/lib/libcantera_shared.dylib] Error 1
scons: building terminated because of errors.

(3) Without -lf2c (which I had to install myself; gfortran doesn't come with 
it) but with -lgfortran, I get:

g++ -o build/lib/libcantera_shared.dylib -lgfortran -dynamiclib 
build/ext/libexecstream/exec-stream.os build/ext/math/mach.os 
build/ext/math/printstring.os build/ext/math/daux.os build/ext/math/ddaspk.os 
build/ext/math/dgbfa.os build/ext/math/dgbsl.os build/ext/math/dgefa.os 
build/ext/math/dgesl.os build/ext/math/dp1vlu.os build/ext/math/dpcoef.os 
build/ext/math/dpolft.os build/ext/math/fdump.os build/ext/math/j4save.os 
build/ext/math/pcoef.os build/ext/math/polfit.os build/ext/math/pvalue.os 
build/ext/math/xercnt.os build/ext/math/xerhlt.os build/ext/math/xermsg.os 
build/ext/math/xerprn.os build/ext/math/xersve.os build/ext/math/xgetua.os 
build/src/base/LogPrintCtrl.os build/src/base/PrintCtrl.os 
build/src/base/application.os build/src/base/checkFinite.os 
build/src/base/clockWC.os build/src/base/ct2ctml.os 
build/src/base/ctexceptions.os build/src/base/ctml.os build/src/base/global.os 
build/src/base/mdp_allo.os build/src/base/plots.os 
build/src/base/stringUtils.os build/src/base/xml.os 
build/src/thermo/ConstCpPoly.os build/src/thermo/ConstDensityThermo.os 
build/src/thermo/DebyeHuckel.os build/src/thermo/Elements.os 
build/src/thermo/FixedChemPotSSTP.os build/src/thermo/GeneralSpeciesThermo.os 
build/src/thermo/GibbsExcessVPSSTP.os build/src/thermo/HMWSoln.os 
build/src/thermo/HMWSoln_input.os build/src/thermo/IdealGasPhase.os 
build/src/thermo/IdealMolalSoln.os build/src/thermo/IdealSolidSolnPhase.os 
build/src/thermo/IdealSolnGasVPSS.os build/src/thermo/IonsFromNeutralVPSSTP.os 
build/src/thermo/LatticePhase.os build/src/thermo/LatticeSolidPhase.os 
build/src/thermo/MargulesVPSSTP.os build/src/thermo/MetalSHEelectrons.os 
build/src/thermo/MineralEQ3.os build/src/thermo/MixedSolventElectrolyte.os 
build/src/thermo/MixtureFugacityTP.os build/src/thermo/MolalityVPSSTP.os 
build/src/thermo/MolarityIonicVPSSTP.os build/src/thermo/Mu0Poly.os 
build/src/thermo/Nasa9Poly1.os build/src/thermo/Nasa9PolyMultiTempRegion.os 
build/src/thermo/PDSS.os build/src/thermo/PDSS_ConstVol.os 
build/src/thermo/PDSS_HKFT.os build/src/thermo/PDSS_IdealGas.os 
build/src/thermo/PDSS_IonsFromNeutral.os build/src/thermo/PDSS_SSVol.os 
build/src/thermo/PDSS_Water.os build/src/thermo/Phase.os 
build/src/thermo/PhaseCombo_Interaction.os 
build/src/thermo/PseudoBinaryVPSSTP.os build/src/thermo/PureFluidPhase.os 
build/src/thermo/RedlichKisterVPSSTP.os build/src/thermo/RedlichKwongMFTP.os 
build/src/thermo/SemiconductorPhase.os build/src/thermo/SingleSpeciesTP.os 
build/src/thermo/SpeciesThermoFactory.os 
build/src/thermo/SpeciesThermoInterpType.os build/src/thermo/StatMech.os 
build/src/thermo/StoichSubstance.os build/src/thermo/StoichSubstanceSSTP.os 
build/src/thermo/SurfPhase.os build/src/thermo/ThermoFactory.os 
build/src/thermo/ThermoPhase.os build/src/thermo/VPSSMgr.os 
build/src/thermo/VPSSMgrFactory.os build/src/thermo/VPSSMgr_ConstVol.os 
build/src/thermo/VPSSMgr_General.os build/src/thermo/VPSSMgr_IdealGas.os 
build/src/thermo/VPSSMgr_Water_ConstVol.os 
build/src/thermo/VPSSMgr_Water_HKFT.os build/src/thermo/VPStandardStateTP.os 
build/src/thermo/WaterProps.os build/src/thermo/WaterPropsIAPWS.os 
build/src/thermo/WaterPropsIAPWSphi.os build/src/thermo/WaterSSTP.os 
build/src/tpx/CarbonDioxide.os build/src/tpx/HFC134a.os 
build/src/tpx/Heptane.os build/src/tpx/Hydrogen.os build/src/tpx/Methane.os 
build/src/tpx/Nitrogen.os build/src/tpx/Oxygen.os build/src/tpx/RedlichKwong.os 
build/src/tpx/Sub.os build/src/tpx/Water.os build/src/tpx/lk.os 
build/src/tpx/utils.os build/src/equil/BasisOptimize.os 
build/src/equil/ChemEquil.os build/src/equil/MultiPhase.os 
build/src/equil/MultiPhaseEquil.os build/src/equil/equilibrate.os 
build/src/equil/vcs_DoubleStarStar.os build/src/equil/vcs_Gibbs.os 
build/src/equil/vcs_IntStarStar.os build/src/equil/vcs_MultiPhaseEquil.os 
build/src/equil/vcs_SpeciesProperties.os build/src/equil/vcs_TP.os 
build/src/equil/vcs_VolPhase.os build/src/equil/vcs_elem.os 
build/src/equil/vcs_elem_rearrange.os build/src/equil/vcs_equilibrate.os 
build/src/equil/vcs_inest.os build/src/equil/vcs_nondim.os 
build/src/equil/vcs_phaseStability.os build/src/equil/vcs_prep.os 
build/src/equil/vcs_prob.os build/src/equil/vcs_rearrange.os 
build/src/equil/vcs_report.os build/src/equil/vcs_root1d.os 
build/src/equil/vcs_rxnadj.os build/src/equil/vcs_setMolesLinProg.os 
build/src/equil/vcs_solve.os build/src/equil/vcs_solve_TP.os 
build/src/equil/vcs_solve_phaseStability.os 
build/src/equil/vcs_species_thermo.os build/src/equil/vcs_util.os 
build/src/equil/vcs_dbocls.os build/src/equil/vcs_dbols.os 
build/src/equil/vcs_dbolsm.os build/src/equil/vcs_dmout.os 
build/src/equil/vcs_dvout.os build/src/equil/vcs_ivout.os 
build/src/equil/vcs_xerror.os build/src/numerics/BEulerInt.os 
build/src/numerics/BandMatrix.os build/src/numerics/CVodesIntegrator.os 
build/src/numerics/DAE_solvers.os build/src/numerics/DenseMatrix.os 
build/src/numerics/Func1.os build/src/numerics/GeneralMatrix.os 
build/src/numerics/IDA_Solver.os build/src/numerics/NonlinearSolver.os 
build/src/numerics/ODE_integrators.os build/src/numerics/ResidJacEval.os 
build/src/numerics/RootFind.os build/src/numerics/SquareMatrix.os 
build/src/numerics/funcs.os build/src/numerics/solveProb.os 
build/src/kinetics/AqueousKinetics.os build/src/kinetics/FalloffFactory.os 
build/src/kinetics/GRI_30_Kinetics.os build/src/kinetics/GasKinetics.os 
build/src/kinetics/Group.os build/src/kinetics/ImplicitSurfChem.os 
build/src/kinetics/InterfaceKinetics.os build/src/kinetics/Kinetics.os 
build/src/kinetics/KineticsFactory.os build/src/kinetics/ReactionPath.os 
build/src/kinetics/ReactionStoichMgr.os build/src/kinetics/importKinetics.os 
build/src/kinetics/solveSP.os build/src/transport/AqueousTransport.os 
build/src/transport/DustyGasTransport.os build/src/transport/GasTransport.os 
build/src/transport/LTPspecies.os build/src/transport/LiquidTranInteraction.os 
build/src/transport/LiquidTransport.os 
build/src/transport/LiquidTransportData.os 
build/src/transport/LiquidTransportParams.os 
build/src/transport/MMCollisionInt.os build/src/transport/MixTransport.os 
build/src/transport/MultiTransport.os build/src/transport/PecosTransport.os 
build/src/transport/SimpleTransport.os build/src/transport/SolidTransport.os 
build/src/transport/TortuosityBase.os 
build/src/transport/TortuosityBruggeman.os 
build/src/transport/TortuosityMaxwell.os 
build/src/transport/TortuosityPercolation.os 
build/src/transport/TransportBase.os build/src/transport/TransportFactory.os 
build/src/transport/TransportParams.os build/src/transport/WaterTransport.os 
build/src/spectra/LineBroadener.os build/src/spectra/rotor.os 
build/src/spectra/spectralUtilities.os build/src/oneD/Domain1D.os 
build/src/oneD/MultiJac.os build/src/oneD/MultiNewton.os 
build/src/oneD/OneDim.os build/src/oneD/Sim1D.os build/src/oneD/StFlow.os 
build/src/oneD/boundaries1D.os build/src/oneD/newton_utils.os 
build/src/oneD/refine.os build/src/zeroD/ConstPressureReactor.os 
build/src/zeroD/FlowDevice.os build/src/zeroD/FlowReactor.os 
build/src/zeroD/Reactor.os build/src/zeroD/ReactorBase.os 
build/src/zeroD/ReactorFactory.os build/src/zeroD/ReactorNet.os 
build/src/zeroD/Wall.os build/src/clib/ct.os build/src/clib/ctbdry.os 
build/src/clib/ctfunc.os build/src/clib/ctmultiphase.os 
build/src/clib/ctonedim.os build/src/clib/ctreactor.os 
build/src/clib/ctrpath.os build/src/clib/ctsurf.os build/src/clib/ctxml.os 
-L/usr/local/lib -Lbuild/lib -L/usr/local/lib -lsundials_cvodes -lsundials_ida 
-lsundials_nvecserial -framework Accelerate
Undefined symbols for architecture x86_64:
  "_do_fio", referenced from:
      _dmout_ in vcs_dmout.os
      _dvout_ in vcs_dvout.os
      _ivout_ in vcs_ivout.os
      _xerrwv_ in vcs_xerror.os
  "_e_wsfe", referenced from:
      _dmout_ in vcs_dmout.os
      _dvout_ in vcs_dvout.os
      _ivout_ in vcs_ivout.os
      _xerrwv_ in vcs_xerror.os
  "_s_stop", referenced from:
      _xerrwv_ in vcs_xerror.os
  "_s_wsfe", referenced from:
      _dmout_ in vcs_dmout.os
      _dvout_ in vcs_dvout.os
      _ivout_ in vcs_ivout.os
      _xerrwv_ in vcs_xerror.os
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
scons: *** [build/lib/libcantera_shared.dylib] Error 1
scons: building terminated because of errors.

Original comment by kyle.nie...@gmail.com on 10 Aug 2012 at 9:36

GoogleCodeExporter commented 9 years ago
The secondary issues are addressed by the changes in r1782, r1783, and r1784.

Original comment by yarmond on 12 Aug 2012 at 11:05

GoogleCodeExporter commented 9 years ago
Great!

Unfortunately, I ran into a problem when I went to actually use cantera with 
the simple thermodynamic program included in the tutorial. I think the issue is 
in the "Cantera.mak" file that is placed in /usr/local/include/cantera (I've 
attached mine, which was made by the build above).

When I try to make something including that file, I get a linker error about 
not being able to find "-lctmath".

As you can see in the Cantera.mak file, "CANTERA_CORE_LIBS" is set to 
"-L/usr/local/lib -lcantera -lctmath -lexecstream", but the latter two don't 
exist.

Also, it looks like the Cantera.mak file doesn't reflect the fact that blas and 
lapack already exist, since "CANTERA_have_blas_lapack_dir=0"

Original comment by kyle.nie...@gmail.com on 12 Aug 2012 at 11:14

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by yarmond on 13 Aug 2012 at 3:12

GoogleCodeExporter commented 9 years ago
The CANTERA_CORE_LIBS value should be fixed in trunk in r1790.

Having CANTERA_have_blas_lapack_dir=0 is fine. It just implies that no extra 
"-L/some/directory" needs to be added as part of linking BLAS/LAPACK.

Original comment by yarmond on 13 Aug 2012 at 8:18

GoogleCodeExporter commented 9 years ago
Hm. I just checked out the latest revision (r1791), and it seems to be having 
trouble with config.h again.

Here's my cantera.conf now:
python_package = 'full'
python_cmd = '/usr/local/bin/python'
f90_interface = 'y'
F90 = 'gfortran'
use_sundials = 'y'
sundials_include = '/usr/local/include/'
sundials_libdir = '/usr/local/lib/'
env_vars = 'all'
build_with_f2c = False

When I try to build, I get this error:
g++ -o build/src/fortran/fct.o -c -ftemplate-depth-128 -Wall 
-Wno-deprecated-declarations -O3 -DNDEBUG -finline-functions -Wno-inline -g 
-I/usr/local/include -Iinclude -Isrc src/fortran/fct.cpp
In file included from include/cantera/equil/MultiPhase.h:12:0,
                 from include/cantera/equil/equil.h:15,
                 from src/fortran/fct.cpp:10:
include/cantera/base/ct_defs.h:17:20: fatal error: config.h: No such file or 
directory
compilation terminated.
scons: *** [build/src/fortran/fct.o] Error 1
scons: building terminated because of errors.

Original comment by kyle.nie...@gmail.com on 14 Aug 2012 at 2:10

GoogleCodeExporter commented 9 years ago
Sorry, the fix for the include order hadn't been merged back into trunk yet. 
The current trunk revision (r1798) incorporates the relevant fixes.

Original comment by yarmond on 15 Aug 2012 at 5:29

GoogleCodeExporter commented 9 years ago
Everything seems to work now, thanks!

Original comment by kyle.nie...@gmail.com on 16 Aug 2012 at 4:39

GoogleCodeExporter commented 9 years ago

Original comment by yarmond on 16 Aug 2012 at 6:46