[Clas_offline] libfpack.a, libfputil.a, and libmapmanager.a for 64-bit compilation
Jixie Zhang
jixie at jlab.org
Sun Nov 7 13:10:26 EST 2010
Hi, Krishna,
The answer is in between your questions.
On Mon, Nov 8, 2010 at 1:15 AM, <adhikari at jlab.org> wrote:
> Dear all,
> I tried libbosio.a instead of the the three libraries (libfpack.a,
> libfputil.a, and libmapmanager.a) and it seemed to work in case of one
> package of codes (compilation was really really slow though - took me a
> whole day despite the fact that the same set of codes took just about a
> few minutes in case of 32 bit compilation).
>
I tried to compile bosio in my home dir: /u/home/jixie/work/bosio
It goes very well and quick (finished in 25 seconds).
I did not compile gsim in 64-bit mode link against this bosio. To find out
why the compilation took that long. I would
look into the env setup and check the makefile where and what libs it link
against.
> I also wanted to try making my own fpack, fputils and mapmanager libraries
> in the 64 bit. I did make the libs for the first two, but I couldn't see
> the mapmanager package available for the checkout. Does anyone of you know
> how I could get the mapmanager from the CVS or anywhere?
>
> In case you can not find the latest mapmanager, you can copy the source
code
from here:
~jixie/clas/builds/release-4-15/packages/Map
Type 'make lib' to compile it after seting up your env correctly.
> My last issue is about my attempt to compile gsim (again in 64bit). I
> could easily compile it in the 32 bit but, I got errors while making the
> gsim_bat (haven't tried the gsim_int yet). It seems that I am successful
> in building the libgsim.a in my TOP_DIR, but not quite so with regard to
> the gsim_bat executable. One major problem was the "ld couldn't find
> -lmysqlclient". I checked and found that there was no libmysqlclient.a in
> /group/clas/builds/64bit/STABLE/build/lib/ . I couldn't also build that
> myself because that also doesn't seem to be available for CVS checkout.
>
>
In ifarml6, you can find the 64-bit mysql lib and header files in the
following path:
/usr/lib/mysql
/usr/include/mysql
or you can find the softlink at /apps/mysql
To make the executable, you need to have mysql set up in your env.
Here is an example:
setenv MYSQL_INCLUDE_PATH /apps/mysql/include
setenv MYSQL_LIB_PATH /apps/mysql/lib
I have the whole CLASPACK compiled with 32 bit mode in the 64-bit
computer and it runs well for me. Unfortunately I just compiled
release-4-15, which
might not be the one you are going to use.
In order to do that there are a few source code and makefile need to modify.
You can take a look at them at ~jixie/clas/builds.
Anyone's help will be greatly appreciated.
> Thank you.
> Krishna
>
> > Hi Krishna,
> >
> > I have checked the CVS and the fpack and fputils are available for
> checkout, you can check them out and compile them locally, then link
> your code to it. I tested and they compile on 64 bit just fine.
> >
> > The question is why aren't those libraries in the CLAS_LIB for 64 bit,
> if it breaks code dependencies for some people, wouldn't it make sense
> to have them compiled in CLAS_LIB for 64 bit (even without optimization)
> ?
> >
> > Gagik
> >
> > On 11/2/10 1:40 PM, Franz Klein wrote:
> >> Krishna,
> >> I am using maps on 32 and 64-bit machines (incl. CentOS) - for the
> simple
> >> reason that user_ana sometimes crashes when connected to caldb (not
> enough
> >> ports?).
> >> On the other hand, I removed fputil, bos, fpack already during the
> transition to gfortran because this combination skipped events when
> compiled with any 'optimziation' (i.e. non debug).
> >> Use bosio instead of fputil,bos,fpack - that works also on 64-bit boxes.
> >>
> >> Good luck
> >> Franz
> >>
> >> On Tue, 2 Nov 2010, adhikari at jlab.org wrote:
> >>
> >>
> >>> Does anyone know how or where I can get the 64-bit compatible clas
> libraries libfpack.a, libfputil.a, and libmapmanager.a? Or could you
> tell
> >>> me whether I could build them myself? If yes, please let me know how I
> can
> >>> do that. I urgently need them to compile a set of codes (event
> generator)
> >>> and I
> >>> couldnot find them in
> >>> /u/group/clas/builds/64bit/NIGHTLY/2010-10-13-r1492/build/lib. Thank
> you very much.
> >>> Best Regards,
> >>> Krishna
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Clas_offline mailing list
> >>> Clas_offline at jlab.org
> >>> https://mailman.jlab.org/mailman/listinfo/clas_offline
> >>>
> >>>
> >> ===============================================================
> >> Franz J. Klein, Associate Professor
> >> CUA, Department of Physics
> >> Washington, DC 20064
> >> office: Hannan Hall 206 phone: 202-319-6190
> >> or: Jefferson Lab,CC F-243 phone: 757-269-6672
> >> ---------------------------------------------------------------
> _______________________________________________
> >> Clas_offline mailing list
> >> Clas_offline at jlab.org
> >> https://mailman.jlab.org/mailman/listinfo/clas_offline
> >>
> >
> > _______________________________________________
> > Clas_offline mailing list
> > Clas_offline at jlab.org
> > https://mailman.jlab.org/mailman/listinfo/clas_offline
> >
>
>
>
>
> _______________________________________________
> Clas_offline mailing list
> Clas_offline at jlab.org
> https://mailman.jlab.org/mailman/listinfo/clas_offline
>
--
Best Regards,
Jixie Zhang
Jefferson Lab - Hall A - A112,
757-269-5352
_______________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/clas_offline/attachments/20101108/4239027a/attachment.html
More information about the Clas_offline
mailing list