[mira_talk] Re: make error with MIRA 3.4 on Mac OSX Leopard 10.5.8

Thanks for your answer but I precised that I run on Mac OS X Leopard (10.5.8) You run on Mac OS X Snow Leopard (10.6.8). So I hope that someone managed to run MIRA on Mac OS X Leopard ant that he/she could help me resolve this problem.


Le 19/09/11 23:34, Peter Stockwell a écrit :
Hi

I have succeeded in building mira-3.4.0 under MacOS X, the main differences may
be that I am working under a newer release (10.6.8) and with 64-bit architecture
enabled:

I have boost 1.47 installed and used

./configure --with-tcmalloc=yes

giving:

--------------------------------------------------------------------------------
                       Summary of MIRA configuration
--------------------------------------------------------------------------------

Building version ................................. 
3.4.0_prod_darwin10.8.0_x86_64_dynamic
Production or development version?................ production

We are building on ............................... Darwin
CPU supports 64 bit? ......... ................... yes
Compiler ......................................... gcc
Compiler optimisation flags used ................. -O3 -funroll-loops
Do we compile in 64 bit? ......................... yes
Building completely static? ...................... no
BOOST expected to compile and link?............... yes
Linking with TCmalloc library?.................... yes

Can MIRA be built on this system? ................ yes

Using CFLAGS   : -mmacosx-version-min=10.5   -O3 -funroll-loops 
-I/usr/local/include
Using CXXFLAGS : -DPUBLICQUIET -mmacosx-version-min=10.5 -O3 -funroll-loops -I/usr/local/include -pthread -I/usr/local/include
Using LDFLAGS  :  -L/usr/local/lib -lexpat -L/usr/local/lib -lboost_thread 
-lboost_regex

Looks good, we do not expect compilation problems.
--------------------------------------------------------------------------------

The make completed OK from there.

I lack enough expertise in C++ to identify the source of your error more 
completely.

Regards
Peter Stockwell

On 19/09/2011, at 8:34 PM, Severine Jancek wrote:

Dear MIRA users

I was really glad to learn that MIRA could be used on Mac OSX 10.5 Leopard. I currently work on Mac OS X 10.5.8. and download MIRA 3.4.0.
I installed requisite library boost (1.47.0) and TC malloc (perftools 1.8.3)


_***BOOST***_
cd boost_1_47_0
./bootstrap.sh --with-libraries=thread,regex
./bjam
./bjam install --prefix=/Users/severine

_***TC Malloc***_
cd google-perftools-1.8.3
./configure --enable-minimal
make
sudo make install

_***MIRA***_
cd mira-3.4.0
./configure --with-boost=/Users/severine/ --with-tcmalloc=yes

_Obtained message:_
--------------------------------------------------------------------------------
                       Summary of MIRA configuration
--------------------------------------------------------------------------------

Building version ................................. 
3.4.0_prod_darwin9.8.0_i386_32_dynamic
Production or development version?................ production

We are building on ............................... Darwin
CPU supports 64 bit? ......... ................... no
Compiler ......................................... gcc
Compiler optimisation flags used ................. -O3 -funroll-loops
Building completely static? ...................... no
BOOST expected to compile and link?............... yes
Linking with TCmalloc library?.................... yes

Can MIRA be built on this system? ................ yes

Using CFLAGS   : -mmacosx-version-min=10.5   -arch i386 -O3 -funroll-loops 
-I/usr/include
Using CXXFLAGS : -DPUBLICQUIET -mmacosx-version-min=10.5 -arch i386 -O3 -funroll-loops -I/usr/include -pthread -I/USers/severine//include
Using LDFLAGS  :  -L/usr/lib -lexpat -L/USers/severine//lib -lboost_thread 
-lboost_regex

Looks good, we do not expect compilation problems.
--------------------------------------------------------------------------------


I though it was good but when I launch "make" I obtained the following message.

Making all in src
Making all in lec
make[2]: Nothing to be done for `all'.
Making all in io
g++ -DPACKAGE_NAME=\"mira\" -DPACKAGE_TARNAME=\"mira\" -DPACKAGE_VERSION=\"3.4.0\" -DPACKAGE_STRING=\"mira\ 3.4.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mira\" -DVERSION=\"3.4.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -Drestrict=__restrict -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE_STRFTIME=1 -DHAVE_FLOOR=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SQRT=1 -DHAVE_FSEEKO=1 -DHAVE_ISBLANK=1 -DHAVE_NAMESPACES=/\*\*/ -DHAVE_STD=/\*\*/ -DHAVE_STL=/\*\*/ -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_THREAD=/\*\*/ -DHAVE_BOOST_REGEX=/\*\*/ -DDEVELOPMENTVERSION=0 -DBOUNDTRACKFLAG=1 -DBUGTRACKFLAG=1 -I. -I../../src -DPUBLICQUIET -mmacosx-version-min=10.5 -arch i386 -O3 -funroll-loops -I/usr/include -pthread -I/USers/severine//include -MT exp_flexer.o -MD -MP -MF .deps/exp_flexer.Tpo -c -o exp_flexer.o exp_flexer.cc exp_flexer.cc:325: error: no ‘int EXPFlexLexer::yywrap()’ member function declared in class ‘EXPFlexLexer’
make[2]: *** [exp_flexer.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

I saw that this kind of error message about 'flex', often come back ont the MIRA-talk. So I looked at which flex version I had and there is no mismatch between flex and flex++ as it was suggested in other posts:
flex -V
flex 2.5.33

flex++ -V
flex++ 2.5.33

What is your opinion about the errors detected by the system when executing 
"make"?
Can you help me resolve this problem?
Thanks in advance

Severine
--
Dr Severine Jancek
Institut de Recherche sur la Biologie de l¹Insecte (IRBI)
Universite de Tours - UMR CNRS 6035
Evolution des Virus Entomopathogènes
Parc Grandmont
37200 Tours, FRANCE
E-mail:severine.jancek@xxxxxxxxxxxxx
Tel: +33 247367383
Fax: +33 247366966
http://irbi.univ-tours.fr//


--
Dr Severine Jancek
Institut de Recherche sur la Biologie de l¹Insecte (IRBI)
Universite de Tours - UMR CNRS 6035
Evolution des Virus Entomopathogènes
Parc Grandmont
37200 Tours, FRANCE
E-mail: severine.jancek@xxxxxxxxxxxxx
Tel: +33 247367383
Fax: +33 247366966
http://irbi.univ-tours.fr//

Other related posts: