Unable to compile in MacBook Pro using Homebrew

  • skundu
  • skundu's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 11 months ago #606 by skundu
Hi, I am trying to compile Cassandra in my Macbook Pro. I have installed homebrew and I am using gfortran compiler for compiling .f90 files. Although it work fine to compile 5-6 preliminart .f90 file. But it cannot compile random_generators.f90 and following dependencies. Following are the errors that I have encountered. Please advise me.

Subrata

512 skundu:Src$ make -f Makefile.gfortran
Makefile.gfortran:139: dep.mk: No such file or directory
./get_deps
gfortran -c -ffree-line-length-none -O3 type_definitions.f90
gfortran -c -ffree-line-length-none -O3 global_variables.f90
gfortran -c -ffree-line-length-none -O3 file_names.f90
gfortran -c -ffree-line-length-none -O3 io_utilities.f90
gfortran -c -ffree-line-length-none -O3 pair_nrg_routines.f90
gfortran -c -ffree-line-length-none -O3 random_generators.f90
random_generators.f90:79:23:

79 | s1 = IEOR( ISHFT( IAND(s1,-2), 10), b)
| 1
Error: Arguments of 'iand' have different kind type parameters at (1)
random_generators.f90:81:23:

81 | s2 = IEOR( ISHFT( IAND(s2,-512), 5), b)
| 1
Error: Arguments of 'iand' have different kind type parameters at (1)
random_generators.f90:83:23:

83 | s3 = IEOR( ISHFT( IAND(s3,-4096), 29), b)
| 1
Error: Arguments of 'iand' have different kind type parameters at (1)
random_generators.f90:85:23:

85 | s4 = IEOR( ISHFT( IAND(s4,-131072), 23), b)
| 1
Error: Arguments of 'iand' have different kind type parameters at (1)
random_generators.f90:87:23:

87 | s5 = IEOR( ISHFT( IAND(s5,-8388608), 8), b)
| 1
Error: Arguments of 'iand' have different kind type parameters at (1)
random_generators.f90:59:9:

59 | IF (IAND(s1, -2) == 0) s1 = i1 - 8388607
| 1
Error: Arguments of 'iand' have different kind type parameters at (1)
random_generators.f90:60:9:

60 | IF (IAND(s3, -4096) == 0) s3 = i3 - 8388607
| 1
Error: Arguments of 'iand' have different kind type parameters at (1)
make: *** [random_generators.o] Error 1

Please Log in to join the conversation.

More
4 years 10 months ago #609 by emarin
Hello Subrata!

What version of the compiler are you using?

Please Log in to join the conversation.

Time to create page: 0.099 seconds