McStas installation and questions

emmanuel farhi farhi at ill.fr
Tue Jan 19 17:25:47 CET 1999


Hello,

As I already mentioned in a previous mail, I'm deseperatly trying to install 
McStas program on my account. I'm not root on our machines, and it doesn't seems 
to be so easy as written in the manual !

1a- First, I tryied to install the program on HP two HP stations. The first one 
is a 
hp9000s800 bi-processor machine. In that case, an error appears in 
pre-processing when compiling ('make', after 'configure 
--prefix=/home/tas/farhi'), as reported in the previous mail :

biceps~farhi 26> make
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 instrument.tab.c
as: "/var/tmp/cca11970.s", line 2786: error 1052: Directive name not recognized 
- PARAM
as: "/var/tmp/cca11970.s", line 2816: error 1052: Directive name not recognized 
- PARAM
as: "/var/tmp/cca11970.s", line 2850: error 1052: Directive name not recognized 
- PARAM
as: "/var/tmp/cca11970.s", line 2918: error 1052: Directive name not recognized 
- PARAM
as: "/var/tmp/cca11970.s", line 2979: error 1052: Directive name not recognized 
- PARAM
*** Error exit code 1

Stop.

1b- Then I passed on an other HP machine, a mono-processor hp9000s800. An error 
also occurs, but different :

elvira2~farhi 26> make
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 instrument.tab.c
In file included from 
/usr/local/lib/gcc-lib/hppa1.1-hp-hpux9.03/2.6.3/include/stdlib.h:231,
                 from mcstas.h:59,
                 from instrument.y:70:
/usr/include/pwd.h:29: parse error before `int32_t'
/usr/include/pwd.h:29: warning: no semicolon at end of struct or union
/usr/include/pwd.h:31: parse error before `}'
/usr/include/pwd.h:67: parse error before `int32_t'
/usr/include/pwd.h:67: warning: no semicolon at end of struct or union
/usr/include/pwd.h:69: parse error before `}'
/usr/include/pwd.h:80: warning: parameter names (without types) in function 
declaration
*** Error exit code 1

Stop.

Note : gcc, bison and perl are installed on both machines.

2- After those two uneffective trials, I turned to a SGI machine iris4d. 
Compiling is nearly ok : configure+make, with warnings as follows :

        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 instrument.tab.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 lex.yy.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 debug.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 memory.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 list.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 symtab.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 coords.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 rotation.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 cexp.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 position.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 file.c
        gcc -I. -I. -c -O2 -DMC_SYS_DIR='"'/home/tas/farhi/lib/mcstas'"' 
-DCC_HAS_PROTOS=1  -DDEBUG=0 cogen.c
        gcc -o mcstas -O2  instrument.tab.o lex.yy.o debug.o  memory.o list.o 
symtab.o coords.o rotation.o cexp.o position.o  file.o cogen.o -lm
ld: WARNING 84: /usr/public/lib/gcc-lib/mips-sgi-irix5.3/2.7.2.1/libgcc.a is not 
used for resolving any symbol.
ld: WARNING 84: /usr/public/lib/gcc-lib/mips-sgi-irix5.3/2.7.2.1/libgcc.a is not 
used for resolving any symbol.

but final step fails (make install) as follows :

mica~farhi 27% make install
        ./mkinstalldirs /home/tas/farhi/bin /home/tas/farhi/lib 
/home/tas/farhi/lib/mcstas
        /opt/imake/bin/install -c mcstas /home/tas/farhi/bin/mcstas
cannot load /opt/imake/bin/install (bu24):No such file or directory
*** Error code 1 (bu21)

So I'm now praying for help. Can't I just simply install those programs, without 
beeing root or needing some 'hieroglyphic' commands ? Are there some already 
compiled versions for HP or SGI ?

Ian Anderson is now discussing your coming in Marsh, but I'd like to play with 
your toy before. I'd like also to indicate than a deeply improved version of 
MFit/Mview is now available on ILL/TAS group Web page (which becomes an official 
archive site for those Matlab stuff: http://www.ill.fr/tas).

I now began to think about a graphic user interface between MFit/Mview and 
McStas (if I can ever make this latter work !), that would enable to build 
instruments easely, to pre-process mcstas, and compile gcc Monte Carlo program, 
simulate scans and finally display results, all mouse-driven, if possible.

Bye. EF.

*************************************************************************
Emmanuel FARHI, http://www.ldv.univ-montp2.fr:7082/~manuf    \|/ ____ \|/
Institut Laue Langevin (ILL) Grenoble                        ~@-/ oO \-@~
Avenue des Martyrs, BP 156, 38042 Grenoble Cedex 9,France    /_( \__/ )_\
Tel (33) 04 76 20 71 83.                                        \__U_/




More information about the mcstas-users mailing list