Closed GoogleCodeExporter closed 8 years ago
Can you post the output of running 'scons build VERBOSE=y' and 'scons test'
after first running 'scons clean'? I have a guess as to what's happening, but
this would help confirm it.
Original comment by yarmond
on 12 Jan 2015 at 8:41
Thank you for the response. I am attaching the outputs from 'scons build
VERBOSE=y' and 'scons test'. Now there is another test that fails 'negA-cti'.
Thanks
Original comment by fercamac...@gmail.com
on 14 Jan 2015 at 4:28
Attachments:
Strange. It appears to be linking to the Sundials libraries, at least. What's
the output of 'ldd test_problems/cxx_ex/cxx_examples'? There should be paths to
libsundials_cvodes.something and libsundials_nvecserial.something.
What is the output of 'readelf -Ws /path/to/libsundials_cvodes.something' and
'readelf -Ws /path/to/libsundials_nvecserial.something'? Do those files contain
definitions for the symbols that it's trying to access?
Original comment by yarmond
on 14 Jan 2015 at 11:07
Here are the outputs, the readelf command couldn't find the files:
~/Documents/cantera-2.1.2$ ldd test_problems/cxx_ex/cxx_examples
linux-vdso.so.1 => (0x00007fffcd4a9000)
libsundials_cvodes.so.2 => /usr/local/lib/libsundials_cvodes.so.2 (0x00007f7daf08e000)
libsundials_nvecserial.so.0 => /usr/local/lib/libsundials_nvecserial.so.0 (0x00007f7daee8c000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7daeb87000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7dae881000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7dae66b000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7dae44c000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7dae086000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7daf2bc000)
~/Documents/cantera-2.1.2$ readelf -Ws /path/to/libsundials_cvodes.something
readelf: Error: '/path/to/libsundials_cvodes.something': No such file
~/Documents/cantera-2.1.2$ readelf -Ws /path/to/libsundials_nvecserial.something
readelf: Error: '/path/to/libsundials_nvecserial.something': No such file
Original comment by fercamac...@gmail.com
on 15 Jan 2015 at 3:03
Of course those files don't exist. I didn't mean that you should use that
literal path, which obviously does not exist, but substitute the full path
that's returned by the "ldd" command.
Original comment by yarmond
on 15 Jan 2015 at 3:51
Here are the outputs:
~/Documents/cantera-2.1.2$ readelf -Ws /usr/local/lib/libsundials_cvodes.so.2
Symbol table '.dynsym' contains 12 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000000004f8 0 SECTION LOCAL DEFAULT 9
2: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable
3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
5: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
6: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.2.5 (2)
7: 0000000000201030 0 NOTYPE GLOBAL DEFAULT 20 _edata
8: 0000000000201038 0 NOTYPE GLOBAL DEFAULT 21 _end
9: 0000000000201030 0 NOTYPE GLOBAL DEFAULT 21 __bss_start
10: 00000000000004f8 0 FUNC GLOBAL DEFAULT 9 _init
11: 0000000000000638 0 FUNC GLOBAL DEFAULT 12 _fini
Symbol table '.symtab' contains 50 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000190 0 SECTION LOCAL DEFAULT 1
2: 00000000000001b8 0 SECTION LOCAL DEFAULT 2
3: 00000000000001f0 0 SECTION LOCAL DEFAULT 3
4: 0000000000000310 0 SECTION LOCAL DEFAULT 4
5: 00000000000003cc 0 SECTION LOCAL DEFAULT 5
6: 00000000000003e8 0 SECTION LOCAL DEFAULT 6
7: 0000000000000408 0 SECTION LOCAL DEFAULT 7
8: 00000000000004c8 0 SECTION LOCAL DEFAULT 8
9: 00000000000004f8 0 SECTION LOCAL DEFAULT 9
10: 0000000000000520 0 SECTION LOCAL DEFAULT 10
11: 0000000000000550 0 SECTION LOCAL DEFAULT 11
12: 0000000000000638 0 SECTION LOCAL DEFAULT 12
13: 0000000000000648 0 SECTION LOCAL DEFAULT 13
14: 0000000000200df0 0 SECTION LOCAL DEFAULT 14
15: 0000000000200df8 0 SECTION LOCAL DEFAULT 15
16: 0000000000200e00 0 SECTION LOCAL DEFAULT 16
17: 0000000000200e08 0 SECTION LOCAL DEFAULT 17
18: 0000000000200fd8 0 SECTION LOCAL DEFAULT 18
19: 0000000000201000 0 SECTION LOCAL DEFAULT 19
20: 0000000000201028 0 SECTION LOCAL DEFAULT 20
21: 0000000000201030 0 SECTION LOCAL DEFAULT 21
22: 0000000000000000 0 SECTION LOCAL DEFAULT 22
23: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
24: 0000000000200e00 0 OBJECT LOCAL DEFAULT 16 __JCR_LIST__
25: 0000000000000550 0 FUNC LOCAL DEFAULT 11 deregister_tm_clones
26: 0000000000000580 0 FUNC LOCAL DEFAULT 11 register_tm_clones
27: 00000000000005c0 0 FUNC LOCAL DEFAULT 11 __do_global_dtors_aux
28: 0000000000201030 1 OBJECT LOCAL DEFAULT 21 completed.6972
29: 0000000000200df8 0 OBJECT LOCAL DEFAULT 15 __do_global_dtors_aux_fini_array_entry
30: 0000000000000600 0 FUNC LOCAL DEFAULT 11 frame_dummy
31: 0000000000200df0 0 OBJECT LOCAL DEFAULT 14 __frame_dummy_init_array_entry
32: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
33: 0000000000000648 0 OBJECT LOCAL DEFAULT 13 __FRAME_END__
34: 0000000000200e00 0 OBJECT LOCAL DEFAULT 16 __JCR_END__
35: 0000000000000000 0 FILE LOCAL DEFAULT ABS
36: 0000000000201028 0 OBJECT LOCAL DEFAULT 20 __dso_handle
37: 0000000000200e08 0 OBJECT LOCAL DEFAULT 17 _DYNAMIC
38: 0000000000201030 0 OBJECT LOCAL DEFAULT 20 __TMC_END__
39: 0000000000201000 0 OBJECT LOCAL DEFAULT 19 _GLOBAL_OFFSET_TABLE_
40: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable
41: 0000000000201030 0 NOTYPE GLOBAL DEFAULT 20 _edata
42: 0000000000000638 0 FUNC GLOBAL DEFAULT 12 _fini
43: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
44: 0000000000201038 0 NOTYPE GLOBAL DEFAULT 21 _end
45: 0000000000201030 0 NOTYPE GLOBAL DEFAULT 21 __bss_start
46: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
47: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
48: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.2.5
49: 00000000000004f8 0 FUNC GLOBAL DEFAULT 9 _init
~/Documents/cantera-2.1.2$ readelf -Ws
/usr/local/lib/libsundials_nvecserial.so.0
Symbol table '.dynsym' contains 12 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000000004f8 0 SECTION LOCAL DEFAULT 9
2: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable
3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
5: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
6: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.2.5 (2)
7: 0000000000201030 0 NOTYPE GLOBAL DEFAULT 20 _edata
8: 0000000000201038 0 NOTYPE GLOBAL DEFAULT 21 _end
9: 0000000000201030 0 NOTYPE GLOBAL DEFAULT 21 __bss_start
10: 00000000000004f8 0 FUNC GLOBAL DEFAULT 9 _init
11: 0000000000000638 0 FUNC GLOBAL DEFAULT 12 _fini
Symbol table '.symtab' contains 50 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000190 0 SECTION LOCAL DEFAULT 1
2: 00000000000001b8 0 SECTION LOCAL DEFAULT 2
3: 00000000000001f0 0 SECTION LOCAL DEFAULT 3
4: 0000000000000310 0 SECTION LOCAL DEFAULT 4
5: 00000000000003d0 0 SECTION LOCAL DEFAULT 5
6: 00000000000003e8 0 SECTION LOCAL DEFAULT 6
7: 0000000000000408 0 SECTION LOCAL DEFAULT 7
8: 00000000000004c8 0 SECTION LOCAL DEFAULT 8
9: 00000000000004f8 0 SECTION LOCAL DEFAULT 9
10: 0000000000000520 0 SECTION LOCAL DEFAULT 10
11: 0000000000000550 0 SECTION LOCAL DEFAULT 11
12: 0000000000000638 0 SECTION LOCAL DEFAULT 12
13: 0000000000000648 0 SECTION LOCAL DEFAULT 13
14: 0000000000200df0 0 SECTION LOCAL DEFAULT 14
15: 0000000000200df8 0 SECTION LOCAL DEFAULT 15
16: 0000000000200e00 0 SECTION LOCAL DEFAULT 16
17: 0000000000200e08 0 SECTION LOCAL DEFAULT 17
18: 0000000000200fd8 0 SECTION LOCAL DEFAULT 18
19: 0000000000201000 0 SECTION LOCAL DEFAULT 19
20: 0000000000201028 0 SECTION LOCAL DEFAULT 20
21: 0000000000201030 0 SECTION LOCAL DEFAULT 21
22: 0000000000000000 0 SECTION LOCAL DEFAULT 22
23: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
24: 0000000000200e00 0 OBJECT LOCAL DEFAULT 16 __JCR_LIST__
25: 0000000000000550 0 FUNC LOCAL DEFAULT 11 deregister_tm_clones
26: 0000000000000580 0 FUNC LOCAL DEFAULT 11 register_tm_clones
27: 00000000000005c0 0 FUNC LOCAL DEFAULT 11 __do_global_dtors_aux
28: 0000000000201030 1 OBJECT LOCAL DEFAULT 21 completed.6972
29: 0000000000200df8 0 OBJECT LOCAL DEFAULT 15 __do_global_dtors_aux_fini_array_entry
30: 0000000000000600 0 FUNC LOCAL DEFAULT 11 frame_dummy
31: 0000000000200df0 0 OBJECT LOCAL DEFAULT 14 __frame_dummy_init_array_entry
32: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
33: 0000000000000648 0 OBJECT LOCAL DEFAULT 13 __FRAME_END__
34: 0000000000200e00 0 OBJECT LOCAL DEFAULT 16 __JCR_END__
35: 0000000000000000 0 FILE LOCAL DEFAULT ABS
36: 0000000000201028 0 OBJECT LOCAL DEFAULT 20 __dso_handle
37: 0000000000200e08 0 OBJECT LOCAL DEFAULT 17 _DYNAMIC
38: 0000000000201030 0 OBJECT LOCAL DEFAULT 20 __TMC_END__
39: 0000000000201000 0 OBJECT LOCAL DEFAULT 19 _GLOBAL_OFFSET_TABLE_
40: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable
41: 0000000000201030 0 NOTYPE GLOBAL DEFAULT 20 _edata
42: 0000000000000638 0 FUNC GLOBAL DEFAULT 12 _fini
43: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
44: 0000000000201038 0 NOTYPE GLOBAL DEFAULT 21 _end
45: 0000000000201030 0 NOTYPE GLOBAL DEFAULT 21 __bss_start
46: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
47: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
48: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.2.5
49: 00000000000004f8 0 FUNC GLOBAL DEFAULT 9 _init
Original comment by fercamac...@gmail.com
on 15 Jan 2015 at 10:49
Something is wrong with the Sundials libraries you compiled. They don't seem to
contain any of the Sundials symbols. This is not a problem with Cantera. For
comparison, here is the symbol table I get for the libsundials_nvecserial.so.0
file in the Ubuntu packaged copy of Sundials:
Symbol table '.dynsym' contains 56 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000e80 0 SECTION LOCAL DEFAULT 9
2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND free@GLIBC_2.2.5 (2)
3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND putchar@GLIBC_2.2.5 (2)
4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable
5: 0000000000000000 0 FUNC GLOBAL DEFAULT UND exp@GLIBC_2.2.5 (3)
6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND pow@GLIBC_2.2.5 (3)
7: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
8: 0000000000000000 0 FUNC GLOBAL DEFAULT UND malloc@GLIBC_2.2.5 (2)
9: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.3.4 (4)
10: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
11: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable
12: 0000000000000000 0 FUNC GLOBAL DEFAULT UND sqrt@GLIBC_2.2.5 (3)
13: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.2.5 (2)
14: 00000000000010e0 58 FUNC GLOBAL DEFAULT 11 N_VDiv_Serial
15: 0000000000001c90 256 FUNC GLOBAL DEFAULT 11 N_VScale_Serial
16: 0000000000001fa0 52 FUNC GLOBAL DEFAULT 11 N_VMake_Serial
17: 0000000000001640 78 FUNC GLOBAL DEFAULT 11 N_VAbs_Serial
18: 0000000000002238 0 FUNC GLOBAL DEFAULT 12 _fini
19: 00000000000019a0 740 FUNC GLOBAL DEFAULT 11 N_VLinearSum_Serial
20: 00000000000013a0 111 FUNC GLOBAL DEFAULT 11 N_VMinQuotient_Serial
21: 00000000000015a0 78 FUNC GLOBAL DEFAULT 11 N_VDestroy_Serial
22: 0000000000001840 100 FUNC GLOBAL DEFAULT 11 N_VWrmsNormMask_Serial
23: 0000000000002220 13 FUNC GLOBAL DEFAULT 11 RAbs
24: 00000000000011e0 55 FUNC GLOBAL DEFAULT 11 N_VMin_Serial
25: 0000000000001770 125 FUNC GLOBAL DEFAULT 11 N_VCompare_Serial
26: 0000000000001030 17 FUNC GLOBAL DEFAULT 11 N_VSpace_Serial
27: 00000000000018b0 64 FUNC GLOBAL DEFAULT 11 N_VWL2Norm_Serial
28: 00000000000015f0 80 FUNC GLOBAL DEFAULT 11 N_VClone_Serial
29: 00000000000011a0 59 FUNC GLOBAL DEFAULT 11 N_VDotProd_Serial
30: 00000000000021f0 33 FUNC GLOBAL DEFAULT 11 RSqrt
31: 0000000000001160 57 FUNC GLOBAL DEFAULT 11 N_VAddConst_Serial
32: 0000000000001220 130 FUNC GLOBAL DEFAULT 11 N_VInvTest_Serial
33: 0000000000002020 118 FUNC GLOBAL DEFAULT 11 N_VCloneVectorArray_Serial
34: 0000000000001710 81 FUNC GLOBAL DEFAULT 11 N_VL1Norm_Serial
35: 0000000000001fe0 61 FUNC GLOBAL DEFAULT 11 N_VDestroyVectorArray_Serial
36: 00000000000017f0 73 FUNC GLOBAL DEFAULT 11 N_VWrmsNorm_Serial
37: 00000000000020a0 118 FUNC GLOBAL DEFAULT 11 N_VCloneVectorArrayEmpty_Serial
38: 0000000000002230 5 FUNC GLOBAL DEFAULT 11 RExp
39: 0000000000001120 57 FUNC GLOBAL DEFAULT 11 N_VInv_Serial
40: 0000000000002170 82 FUNC GLOBAL DEFAULT 11 RPowerI
41: 0000000000001690 121 FUNC GLOBAL DEFAULT 11 N_VMaxNorm_Serial
42: 0000000000203068 0 NOTYPE GLOBAL DEFAULT 23 __bss_start
43: 0000000000001f40 96 FUNC GLOBAL DEFAULT 11 N_VNew_Serial
44: 0000000000203070 0 NOTYPE GLOBAL DEFAULT 23 _end
45: 0000000000002120 75 FUNC GLOBAL DEFAULT 11 N_VPrint_Serial
46: 0000000000001070 39 FUNC GLOBAL DEFAULT 11 N_VConst_Serial
47: 00000000000010a0 58 FUNC GLOBAL DEFAULT 11 N_VProd_Serial
48: 0000000000001050 8 FUNC GLOBAL DEFAULT 11 N_VGetArrayPointer_Serial
49: 0000000000203068 0 NOTYPE GLOBAL DEFAULT 22 _edata
50: 00000000000021d0 21 FUNC GLOBAL DEFAULT 11 RPowerR
51: 0000000000001060 15 FUNC GLOBAL DEFAULT 11 N_VSetArrayPointer_Serial
52: 0000000000001d90 432 FUNC GLOBAL DEFAULT 11 N_VNewEmpty_Serial
53: 0000000000001410 399 FUNC GLOBAL DEFAULT 11 N_VCloneEmpty_Serial
54: 0000000000000e80 0 FUNC GLOBAL DEFAULT 9 _init
55: 00000000000012b0 240 FUNC GLOBAL DEFAULT 11 N_VConstrMask_Serial
Original comment by yarmond
on 16 Jan 2015 at 12:54
That is odd, which version of sundials are you using I got mine from
https://computation.llnl.gov/casc/sundials/main.html, and downloaded the
v.2.5.0 version.
Could it be some of the configuration options? I did
./configure --enable-shared
make
sudo make install
Original comment by fercamac...@gmail.com
on 16 Jan 2015 at 3:19
I'm using Ubuntu package for Sundials (e.g. "aptitude install
libsundials-serial-dev"). When I've compiled Sundials manually in the past, I
think I usually just build the static libraries, but I think it ought to work
either way. Are you able to compile and run the Sundials examples?
Original comment by yarmond
on 18 Jan 2015 at 4:50
Original issue reported on code.google.com by
fercamac...@gmail.com
on 10 Jan 2015 at 4:23Attachments: