jcaiuwyo / cantera

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

cantera 2.0 f90 demo fails to compile - redhat unix #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. scons samples
2.
3.

What is the expected output? What do you see instead?
Include file for mod files isn't being put on the compile line for some reason.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by hkmo...@gmail.com on 5 Apr 2012 at 5:27

GoogleCodeExporter commented 9 years ago

Original comment by yarmond on 10 Apr 2012 at 12:00

GoogleCodeExporter commented 9 years ago
I can revote for this. Moreover if I try to compile with 
-I/opt/canter/include/cantera, it seems to find cantera.mod, but then complains 
with:

demo.f90:(.text+0x1c5): undefined reference to 
`__cantera_thermo_MOD_ctthermo_temperature'
demo.f90:(.text+0x1fa): undefined reference to 
`__cantera_thermo_MOD_ctthermo_pressure'
demo.f90:(.text+0x22f): undefined reference to 
`__cantera_thermo_MOD_ctthermo_density'
demo.f90:(.text+0x264): undefined reference to 
`__cantera_thermo_MOD_ctthermo_enthalpy_mole'
demo.f90:(.text+0x299): undefined reference to 
`__cantera_thermo_MOD_ctthermo_entropy_mole'
demo.f90:(.text+0x2ce): undefined reference to 
`__cantera_thermo_MOD_ctthermo_cp_mole'
demo.f90:(.text+0x31c): undefined reference to 
`__cantera_thermo_MOD_ctthermo_equilibrate'
demo.f90:(.text+0x3d8): undefined reference to 
`__cantera_thermo_MOD_ctthermo_temperature'
demo.f90:(.text+0x40d): undefined reference to 
`__cantera_thermo_MOD_ctthermo_pressure'
demo.f90:(.text+0x442): undefined reference to 
`__cantera_thermo_MOD_ctthermo_density'
demo.f90:(.text+0x477): undefined reference to 
`__cantera_thermo_MOD_ctthermo_enthalpy_mole'
demo.f90:(.text+0x4ac): undefined reference to 
`__cantera_thermo_MOD_ctthermo_entropy_mole'
demo.f90:(.text+0x4e1): undefined reference to 
`__cantera_thermo_MOD_ctthermo_cp_mole'
demo.f90:(.text+0x525): undefined reference to 
`__cantera_kinetics_MOD_ctkin_nreactions'
demo.f90:(.text+0x53e): undefined reference to 
`__cantera_kinetics_MOD_ctkin_getfwdratesofprogress'
demo.f90:(.text+0x554): undefined reference to 
`__cantera_kinetics_MOD_ctkin_getrevratesofprogress'
demo.f90:(.text+0x56a): undefined reference to 
`__cantera_kinetics_MOD_ctkin_getnetratesofprogress'
demo.f90:(.text+0x5aa): undefined reference to 
`__cantera_kinetics_MOD_ctkin_getreactionstring'
demo.f90:(.text+0x6e2): undefined reference to 
`__cantera_transport_MOD_ctrans_viscosity'
demo.f90:(.text+0x6f6): undefined reference to 
`__cantera_transport_MOD_ctrans_thermalconductivity'
demo.f90:(.text+0x711): undefined reference to 
`__cantera_transport_MOD_ctrans_getmixdiffcoeffs'
demo.f90:(.text+0x812): undefined reference to 
`__cantera_thermo_MOD_ctthermo_nspecies'
demo.f90:(.text+0x855): undefined reference to 
`__cantera_thermo_MOD_ctthermo_getspeciesname'
/tmp/cc77zDau.o: In function `MAIN__':
demo.f90:(.text+0xa4c): undefined reference to 
`__cantera_funcs_MOD_ctfunc_importphase'
demo.f90:(.text+0xab1): undefined reference to 
`__cantera_thermo_MOD_ctstring_setstate_tpx'
demo.f90:(.text+0xabd): undefined reference to 
`__cantera_thermo_MOD_ctthermo_nspecies'
demo.f90:(.text+0xacc): undefined reference to 
`__cantera_kinetics_MOD_ctkin_nreactions'

Original comment by Termope...@gmail.com on 11 Apr 2012 at 1:00

GoogleCodeExporter commented 9 years ago
BTW I'm using latest svn of 1.8.0 on Ubuntu 11.10 64bit

Original comment by Termope...@gmail.com on 11 Apr 2012 at 1:03

GoogleCodeExporter commented 9 years ago
The original issue is fixed in r1467.

I have not seen the secondary issue reported by Termopeten. Can you provide 
more details? Is this with 1.8 or 2.0? What is the compiler command line that 
produces the reported output? What options is Cantera being compiled with?

Original comment by yarmond on 17 May 2012 at 9:53

GoogleCodeExporter commented 9 years ago
I'm sorry I have moved to the standard /cantera/trunk -> 2.0 source now, and 
deleted the old 1.8 svn I had where I saw this issue...

Just did a svn co of the cantera18/trunk, and it's with standard make/preconfig 
and it seems to configure and compile fine on my machine. 

I can not reproduce this bug now it seems, so you can close this bug for me 
fine if you will.

Original comment by Termope...@gmail.com on 21 May 2012 at 8:52

GoogleCodeExporter commented 9 years ago

Original comment by yarmond on 21 May 2012 at 3:05