Thanks Patrick for your work on this. I have now tried again with r418 (still with CC="g++" make install). The build step works, but not the linking, unfortunately. Here is the output :
SED include/libadjoint/adj_constants_f.h
SED include/libadjoint/adj_error_handling_f.h
FC src/adj_fortran.F90
C++ src/revolve.cpp
C++ src/revolve_c.cpp
AR lib/libadjoint.a
LD lib/libadjoint.dylib
Undefined symbols:
"_Z9EPSCreateiPP6_p_EPS", referenced from:
_Z15adj_compute_gstP13adj_adjointer12adj_variableP10adj_matrixS1_S3_iP7adj_gstPi in adj_predictability.o
"_adj_variable_equal", referenced from:
___libadjoint_MOD_adj_variable_equal in adj_fortran.o
(maybe you meant: ___libadjoint_MOD_adj_variable_equal)
"_adj_variable_get_ndepending_timesteps", referenced from:
___libadjoint_MOD_adj_variable_get_ndepending_timesteps in adj_fortran.o
(maybe you meant: ___libadjoint_MOD_adj_variable_get_ndepending_timesteps)
"_adj_adjointer_to_html", referenced from:
___libadjoint_MOD_adj_adjointer_to_html in adj_fortran.o
(maybe you meant: ___libadjoint_MOD_adj_adjointer_to_html)
"_Z7MatAXPYP6_p_MatdS0_12MatStructure", referenced from:
_Z19petsc_mat_axpy_procP10adj_matrixdS_ in adj_petsc_data_structures.o
"_Z14MatAssemblyEndP6_p_Mat15MatAssemblyType", referenced from:
_Z16petsc_solve_proc12adj_variable10adj_matrix10adj_vectorPS1_ in adj_petsc_data_structures.o
"_adj_create_term", referenced from:
___libadjoint_MOD_adj_create_term in adj_fortran.o
(maybe you meant: ___libadjoint_MOD_adj_create_term)
... a whole lot of other undefined symbols...
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make: *** [lib/libadjoint.dylib] Error 1
For reference, here is the output of 'g++ --version':
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
And of 'uname -a':
10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
If you think you can do something easily to finish the build, then ok, but given your findings about python bindings in #1135519, I'm not sure it's worth the effort...
Thanks Patrick for your work on this. I have now tried again with r418 (still with CC="g++" make install). The build step works, but not the linking, unfortunately. Here is the output :
CC src/adj_ adjointer_ routines. c tlecomte/ FEniCS- Dorsal- stable/ include -I/Users/ tlecomte/ FEniCS- Dorsal- stable/ /include -DHAVE_SLEPC -I/Users/ tlecomte/ FEniCS- Dorsal- stable/ include -I/Users/ tlecomte/ FEniCS- Dorsal- stable/ include -I/usr/ local/include -I/usr/ local/Cellar/ mpich2/ 1.5/include -DHAVE_PETSC -Iinclude/ -Wall -Wextra -Wunused-parameter -Wunsafe- loop-optimizati ons -Wno-write-strings -Wpointer-arith -ggdb3 -fstack- protector- all -fno-leading- underscore -c -o obj/adj_ adjointer_ routines. o src/adj_ adjointer_ routines. c
g++ -g -O0 -fPIC -I/Users/
...a bunch of other successful CC...
SED include/ libadjoint/ adj_constants_ f.h libadjoint/ adj_error_ handling_ f.h dylib iPP6_p_ EPS", referenced from: Z15adj_ compute_ gstP13adj_ adjointer12adj_ variableP10adj_ matrixS1_ S3_iP7adj_ gstPi in adj_predictabil ity.o variable_ equal", referenced from: __libadjoint_ MOD_adj_ variable_ equal in adj_fortran.o MOD_adj_ variable_ equal) variable_ get_ndepending_ timesteps" , referenced from: __libadjoint_ MOD_adj_ variable_ get_ndepending_ timesteps in adj_fortran.o MOD_adj_ variable_ get_ndepending_ timesteps) adjointer_ to_html" , referenced from: __libadjoint_ MOD_adj_ adjointer_ to_html in adj_fortran.o MOD_adj_ adjointer_ to_html) _p_MatdS0_ 12MatStructure" , referenced from: Z19petsc_ mat_axpy_ procP10adj_ matrixdS_ in adj_petsc_ data_structures .o blyEndP6_ p_Mat15MatAssem blyType" , referenced from: Z16petsc_ solve_proc12adj _variable10adj_ matrix10adj_ vectorPS1_ in adj_petsc_ data_structures .o create_ term", referenced from: __libadjoint_ MOD_adj_ create_ term in adj_fortran.o MOD_adj_ create_ term)
SED include/
FC src/adj_fortran.F90
C++ src/revolve.cpp
C++ src/revolve_c.cpp
AR lib/libadjoint.a
LD lib/libadjoint.
Undefined symbols:
"_Z9EPSCreate
_
"_adj_
_
(maybe you meant: ___libadjoint_
"_adj_
_
(maybe you meant: ___libadjoint_
"_adj_
_
(maybe you meant: ___libadjoint_
"_Z7MatAXPYP6
_
"_Z14MatAssem
_
"_adj_
_
(maybe you meant: ___libadjoint_
... a whole lot of other undefined symbols...
ld: symbol(s) not found .dylib] Error 1
collect2: error: ld returned 1 exit status
make: *** [lib/libadjoint
For reference, here is the output of 'g++ --version': darwin10- g++-4.2. 1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
i686-apple-
And of 'uname -a': 1504.15. 3~1/RELEASE_ X86_64 x86_64
10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-
If you think you can do something easily to finish the build, then ok, but given your findings about python bindings in #1135519, I'm not sure it's worth the effort...