Julia 0.6- WARNING: HDF5 had build errors

I am unable to install BenchmarkTools. I am currently using Julia 0.6 on Mac OS. Below is the error which i receive when installing

>Pkg.add("BenchmarkTools")

INFO: Installing BenchmarkTools v0.0.8
INFO: Installing JLD v0.6.11
INFO: Installing LegacyStrings v0.2.2
INFO: Building Homebrew
INFO: Building Blosc
INFO: Building HDF5
================================[ ERROR: HDF5 ]=================================

LoadError: KeyError: key "10.13" not found
while loading /Users/Saran/.julia/v0.6/HDF5/deps/build.jl, in expression starting on line 27

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: HDF5 had build errors.

 - packages with build errors remain installed in /Users/Saran/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("HDF5")`
 - build a single package by running its `deps/build.jl` script

================================================================================
INFO: Package database updated

I also tried removing ~./Julia folder and Julia from Applications. Reinstalled Julia 0.6 and tried to install BenchmarkTools. I still run into same issue.
I have also tried the following

julia> using Homebrew
julia> Homebrew.rm("HDF5")
julia> Pkg.add("HDF5")
INFO: Installing Blosc v0.2.1
INFO: Installing HDF5 v0.8.1
INFO: Building Blosc
INFO: Building Homebrew
INFO: Building HDF5
=========================================================[ ERROR: HDF5 ]=========================================================

LoadError: KeyError: key "10.13" not found
while loading /Users/Saran/.julia/v0.6/HDF5/deps/build.jl, in expression starting on line 27

=================================================================================================================================

========================================================[ BUILD ERRORS ]=========================================================

WARNING: HDF5 had build errors.

 - packages with build errors remain installed in /Users/Saran/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("HDF5")`
 - build a single package by running its `deps/build.jl` script

=================================================================================================================================
INFO: Package database updated

Kindly help me out in fixing this issue.

Thank You

In case anyone else runs into this issue. This is how i resolved it

;brew install hdf5
Pkg.build("HDF5")
1 Like

It worked for me too in the following error
INFO: Building HDF5
==> Installing gcc from staticfloat/juliatranslated
==> Downloading https://homebrew.bintray.com/bottles/gcc-8.1.0.high_sierra.bottl
Already downloaded: /Users/dariosarra/Library/Caches/Homebrew.jl/gcc-8.1.0.high_sierra.bottle.1.tar.gz
==> Pouring gcc-8.1.0.high_sierra.bottle.1.tar.gz
Error: Failed changing install name in /Users/username/.julia/v0.6/Homebrew/deps/usr/Cellar/gcc/8.1.0/lib/gcc/8/i386/libubsan.1.dylib
from @@HOMEBREW_CELLAR@@/gcc/8.1.0/lib/gcc/8/i386/libstdc++.6.dylib
to /Users/username/.julia/v0.6/Homebrew/deps/usr/Cellar/gcc/8.1.0/lib/gcc/8/i386/libstdc++.6.dylib
Error: Updated load commands do not fit in the header of /Users/username/.julia/v0.6/Homebrew/deps/usr/Cellar/gcc/8.1.0/lib/gcc/8/i386/libubsan.1.dylib. /Users/username/.julia/v0.6/Homebrew/deps/usr/Cellar/gcc/8.1.0/lib/gcc/8/i386/libubsan.1.dylib needs to be relinked, possibly with -headerpad or -headerpad_max_install_names
Warning: Bottle installation failed: building from source.
==> Downloading https://ftp.gnu.org/gnu/gcc/gcc-8.1.0/gcc-8.1.0.tar.xz
Already downloaded: /Users/dariosarra/Library/Caches/Homebrew.jl/gcc-8.1.0.tar.xz
==> …/configure --build=x86_64-apple-darwin17.5.0 --prefix=/Users/dariosarra/.j
==> make