From: Yamauchi H. <hi...@mp...> - 2004-06-11 00:39:31
|
Hi, (currently I send this mail to both mailing list.) Let's discuss a bit about 32/64 coexistence system with tmk. Recently, I use AMD optaron system (64bit SuSE Linux). I can compile and run both 32bit and 64 bit executables on this system. This is also the same on SunOS, I can compile both kind of executables (IRIX nobelium is still down from almost two weeks ago, then I have not tried this on IRIX yet.) In the case of gcc, the difference of compiling for 64 bit is just adding option -m64 -fPIC -Wl,rpath,/64bit/lib/path. However, the problem is that: 1. It looks like no consistent way to find a 64 bit version library for packages, ex. the library directory changed under /usr/lib64, library name is libsomething64.a, /usr/lib/sparcv9 (on Sun) and so forth. 2. tmk may not know how many bit system now it is in, or user want to compile which executables. Then I tweaked .tmk/cache/config* file. But once you fix the config file, you can only compile 64 bit (or 32 bit). Can this handle by just put another module, or modified cxx module? I found some fragment called METAOPT which somehow think about 64 bit also. However, I do not know this can handle the situation. Because 32/64bit switching changes most of the (sometimes unpredictable) library path of packages, then I think tmk should know in what kind of mode, and one ./tmk/cache/config* file is selected according to the mode. And also the object file directory name is changed like, Debian64_3.0, seems nice. Martin suggests me this can be treated as a kind of cross compiling method. And selecting 32/64bit mode is subjective, a way to tell this to tmk is necessary. So, I suggest to introduce next feature to tmk. A mode : this could not be only 32bit/64bit environment, but any other something. (Although in meantime 32bit/64bit is enough for me) A .tmk/cache/config* file is selected according to the mode, Any suggestions? If there is a easy and good solution, I might implement it. Regards, --------------------------------------------------------------------- Yamauchi, Hitoshi : Max-Planck-Institut fuer Informatik AG4 --E-mail-- yam...@mp... /_________/ http://www.mpi-sb.mpg.de/~hitoshi/ |