For fix it you can edit /usr/local/Library/Formula/cdo.rb (for example with nano text editor). You need replace string "options 'enable-grib2', 'Compile Fortran bindings'" as a "option 'enable-grib2', 'Compile Fortran bindings'". It was "options", but we need "option".