Libidn2 failed to built on 10.13.3


(adonisyuan) #1

when I run

brew doctor

on my mac

I get the following errors

Warning: Suspicious Homebrew/brew git origin remote found.

With a non-standard origin, Homebrew won't pull updates from
the main repository. The current git origin is:
  http://android.oa.com/brew

Unless you have compelling reasons, consider setting the
origin remote to point at the main repository by running:
  git -C "/usr/local/Homebrew" remote set-url origin https://github.com/Homebrew/brew.git

......
......
......

Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
  brew install libidn2 libunistring perl
Run `brew missing` for more details.

and I run

brew install libidn2

in my terminal

and get following errors

Updating Homebrew...
.git/rebase-apply/patch:2063: trailing whitespace.

.git/rebase-apply/patch:2069: trailing whitespace.

.git/rebase-apply/patch:2072: trailing whitespace.

.git/rebase-apply/patch:2078: trailing whitespace.

.git/rebase-apply/patch:2081: space before tab in indent.
 	int cols = num_cols();
warning: squelched 367 whitespace errors
warning: 372 lines add whitespace errors.
error: Failed to merge in the changes.
Patch failed at 0001 azure-cli: update 2.0.25 bottle.
The copy of the patch that failed is found in: .git/rebase-apply/patch

When you have resolved this problem, run "git rebase --continue".
If you prefer to skip this patch, run "git rebase --skip" instead.
To check out the original branch and stop rebasing, run "git rebase --abort".

Error: 784: unexpected token at '{
  "adobe-air-sdk": "caskroom/cask",
  "android-ndk": "caskroom/cask",
  "android-platform-tools": "caskroom/cask",
  "android-sdk": "caskroom/cask",
  "auctex": "homebrew/tex",
  "avidemux": "caskroom/cask",
  "awsenv": "Luzifer/tools",
<<<<<<< HEAD
  "cantera": "homebrew/science",
  "cfitsio": "homebrew/science",
=======
>>>>>>> azure-cli: update 2.0.25 bottle.
  "cloudfoundry-cli": "pivotal/tap",
  "cmucl": "caskroom/cask",
  "crystax-ndk": "caskroom/cask",
  "corelocationcli": "caskroom/cask",
  "dart": "dart-lang/dart",
<<<<<<< HEAD
  "datamash": "homebrew/science",
  "dgtal": "homebrew/science",
  "dotwrp": "homebrew/science",
  "drush": "homebrew/php",
  "dwarf-fortress": "caskroom/cask",
  "geany": "caskroom/cask",
  "geda-gaf": "homebrew/science",
  "ggobi": "homebrew/science",
  "gimp": "caskroom/cask",
  "grads": "caskroom/cask",
  "gromacs": "homebrew/science",
  "gtkwave": "caskroom/cask",
  "hdf@4": "homebrew/science",
  "hdf5": "homebrew/science",
  "helios": "spotify/public",
  "hexchat": "caskroom/cask",
  "horndis": "caskroom/cask",
  "hwloc": "homebrew/science",
  "inkscape": "caskroom/cask",
  "ipopt": "homebrew/science",
  "itsol": "homebrew/science",
=======
  "dbt": "fishtown-analytics/dbt",
  "drush": "homebrew/php",
  "dwarf-fortress": "caskroom/cask",
  "geany": "caskroom/cask",
  "gimp": "caskroom/cask",
  "grads": "caskroom/cask",
  "gtkwave": "caskroom/cask",
  "helios": "spotify/public",
  "hexchat": "caskroom/cask",
  "horndis": "caskroom/cask",
  "inkscape": "caskroom/cask",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "jsl": "caskroom/cask",
  "kdiff3": "caskroom/cask",
  "keybase": "caskroom/cask",
  "magit": "dunn/emacs",
  "meld": "caskroom/cask",
  "n98-magerun": "homebrew/php",
<<<<<<< HEAD
  "newick-utils": "homebrew/science",
  "nlopt": "homebrew/science",
  "octave": "homebrew/science",
  "opencv": "homebrew/science",
  "openfst": "homebrew/science",
  "opengrm-ngram": "homebrew/science",
  "osxfuse": "caskroom/cask",
  "pcb": "homebrew/science",
  "pdf-tools": "dunn/emacs",
  "pebble-sdk": "pebble/pebble-sdk",
  "pocl": "homebrew/science",
  "qrupdate": "homebrew/science",
  "quassel": "caskroom/cask",
  "salt": "homebrew/science",
  "shark": "homebrew/science",
  "slicot": "homebrew/science",
  "sqlitebrowser": "caskroom/cask",
  "sundials": "homebrew/science",
  "tetgen": "homebrew/science",
  "ticcutils": "homebrew/science",
  "timbl": "homebrew/science",
  "transmission-remote-gtk": "caskroom/cask/transmission-remote-gui",
  "tuntap": "caskroom/cask",
  "wopr": "homebrew/science"
=======
  "osxfuse": "caskroom/cask",
  "pdf-tools": "dunn/emacs",
  "pebble-sdk": "pebble/pebble-sdk",
  "quassel": "caskroom/cask",
  "sqlitebrowser": "caskroom/cask",
  "transmission-remote-gtk": "caskroom/cask/transmission-remote-gui",
  "tuntap": "caskroom/cask"
>>>>>>> azure-cli: update 2.0.25 bottle.
}
'
Please report this bug:
  https://docs.brew.sh/Troubleshooting.html
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/json/common.rb:156:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/json/common.rb:156:in `parse'
/usr/local/Homebrew/Library/Homebrew/tap.rb:478:in `tap_migrations'
/usr/local/Homebrew/Library/Homebrew/tap.rb:620:in `tap_migrations'
/usr/local/Homebrew/Library/Homebrew/cmd/update-report.rb:367:in `block in report'
/usr/local/Homebrew/Library/Homebrew/cmd/update-report.rb:346:in `each_line'
/usr/local/Homebrew/Library/Homebrew/cmd/update-report.rb:346:in `report'
/usr/local/Homebrew/Library/Homebrew/cmd/update-report.rb:566:in `add'
/usr/local/Homebrew/Library/Homebrew/cmd/update-report.rb:77:in `block in update_report'
/usr/local/Homebrew/Library/Homebrew/tap.rb:496:in `block (2 levels) in each'
/usr/local/Homebrew/Library/Homebrew/tap.rb:495:in `each'
/usr/local/Homebrew/Library/Homebrew/tap.rb:495:in `block in each'
/usr/local/Homebrew/Library/Homebrew/tap.rb:494:in `each'
/usr/local/Homebrew/Library/Homebrew/tap.rb:494:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/update-report.rb:67:in `update_report'
/usr/local/Homebrew/Library/Homebrew/brew.rb:100:in `<main>'
Error: 784: unexpected token at '{
  "ansible19": "ansible@19",
  "ansible20": "ansible@20",
  "antlr2": "antlr@2",
  "antlr3": "antlr@3",
  "apache-spark15": "apache-spark@15",
  "apache-spark16": "apache-spark@16",
  "app-engine-java-sdk": "app-engine-java",
  "autoconf213": "autoconf@213",
  "autoconf264": "autoconf@264",
  "automake112": "automake@112",
  "bash-completion2": "bash-completion@2",
  "bazel02": "bazel@0.2",
  "beanstalk": "beanstalkd",
  "berkeley-db4": "berkeley-db@4",
  "bigdata": "blazegraph",
  "bison27": "bison@2.7",
  "boost-python159": "boost-python@1.59",
  "boost155": "boost@1.55",
  "boost157": "boost@1.57",
  "boost159": "boost@1.59",
  "boost160": "boost@1.60",
<<<<<<< HEAD
=======
  "camlistore": "perkeep",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "cassandra21": "cassandra@2.1",
  "cassandra22": "cassandra@2.2",
  "clang-format38": "clang-format@3.8",
  "cloog-ppl015": "cloog@0.15",
  "cloog018": "cloog",
  "commonmark": "cmark",
  "cppformat": "fmt",
  "crystal": "autocode",
  "cv": "progress",
  "cyassl": "wolfssl",
  "d-bus": "dbus",
  "docker111": "docker@1.11",
  "docker171": "docker@1.71",
  "eigen32": "eigen@3.2",
  "elasticsearch24": "elasticsearch@2.4",
  "eris": "monax",
  "erlang-r18": "erlang@18",
<<<<<<< HEAD
  "ffmpeg28": "ffmpeg@2.8",
  "fig": "docker-compose",
=======
  "fbida": "exiftran",
  "ffmpeg28": "ffmpeg@2.8",
  "fig": "docker-compose",
  "findbugs": "spotbugs",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "freetds091": "freetds@0.91",
  "gcc46": "gcc@4.6",
  "gcc47": "gcc@4.7",
  "gcc48": "gcc@4.8",
  "gcc49": "gcc@4.9",
  "gcc5": "gcc@5",
<<<<<<< HEAD
  "gcc6": "gcc",
  "geode": "apache-geode",
=======
  "gcc6": "gcc@6",
  "geode": "apache-geode",
  "gitlab-ci-multi-runner": "gitlab-runner",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "giflib5": "giflib@5",
  "giflib@5": "giflib",
  "glfw2": "glfw@2",
  "glfw3": "glfw",
  "gmp4": "gmp@4",
<<<<<<< HEAD
=======
  "gmt4": "gmt@4",
  "gnome-icon-theme": "adwaita-icon-theme",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "gnupg2": "gnupg",
  "gnuplot4": "gnuplot@4",
  "go-app-engine-32": "app-engine-go-32",
  "go-app-engine-64": "app-engine-go-64",
  "go14": "go@1.4",
  "go15": "go@1.5",
  "go16": "go@1.6",
  "google-app-engine": "app-engine-python",
  "google-perftools": "gperftools",
  "gradle214": "gradle@2.14",
  "grails25": "grails@2.5",
  "grunt": "grunt-cli",
  "gsl1": "gsl@1",
  "gst-plugins-bad010": "gst-plugins-bad@0.10",
  "gst-plugins-base010": "gst-plugins-base@0.10",
  "gst-plugins-good010": "gst-plugins-good@0.10",
  "gst-plugins-ugly010": "gst-plugins-ugly@0.10",
  "gstreamer010": "gstreamer@0.10",
<<<<<<< HEAD
  "hamsterdb": "upscaledb",
  "heroku-toolbelt": "heroku",
=======
  "gtef": "tepl",
  "hamsterdb": "upscaledb",
  "heroku-toolbelt": "heroku",
  "htop-osx": "htop",
  "httpd24": "httpd",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "influxdb08": "influxdb@0.8",
  "isl011": "isl@0.11",
  "isl012": "isl@0.12",
  "isl014": "isl@0.14",
<<<<<<< HEAD
  "jboss-as5": "jboss-as@5",
  "jetty8": "jetty@8",
  "jpeg6b": "jpeg@6",
  "jpeg9": "jpeg@9",
  "juju2": "juju",
  "juju@2.0": "juju",
  "kafka080": "kafka@0.80",
=======
  "jetty8": "jetty@8",
  "jpeg6b": "jpeg@6",
  "juju2": "juju",
  "juju@2.0": "juju",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "kibana41": "kibana@4.1",
  "kibana44": "kibana@4.4",
  "kotlin-compiler": "kotlin",
  "kubernetes-cli13": "kubernetes-cli@1.3",
  "ledger26": "ledger@2.6",
  "letsencrypt": "certbot",
  "libcppa": "caf",
  "libmongoclient": "mongo-cxx-driver",
  "libmpc08": "libmpc@0.8",
  "libpng12": "libpng@1.2",
  "libpqxx3": "libpqxx@3",
  "libxml278": "libxml2@2.7",
  "llvm37": "llvm@3.7",
  "llvm38": "llvm@3.8",
  "logstash24": "logstash@2.4",
  "lua51": "lua@5.1",
<<<<<<< HEAD
  "lua53": "lua@5.3",
=======
  "lua@5.3": "lua",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "mapnik2": "mapnik@2",
  "mariadb100": "mariadb@10.0",
  "maven31": "maven@3.1",
  "maven32": "maven@3.2",
<<<<<<< HEAD
=======
  "mobile-shell": "mosh",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "mongo-c": "mongo-c-driver",
  "mongodb26": "mongodb@2.6",
  "mongodb30": "mongodb@3.0",
  "mongodb32": "mongodb@3.2",
  "mpfr2": "mpfr@2",
  "mpich2": "mpich",
  "mysql55": "mysql@5.5",
  "mysql56": "mysql@5.6",
<<<<<<< HEAD
=======
  "newsbeuter": "newsboat",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "nimrod": "nim",
  "node010": "node@0.10",
  "node012": "node@0.12",
  "node4-lts": "node@4",
  "node6-lts": "node@6",
  "objective-caml": "ocaml",
  "offline-imap": "offlineimap",
<<<<<<< HEAD
  "open-mpi16": "open-mpi@1.6",
=======
  "opencv3": "opencv",
  "open-mpi16": "open-mpi@1.6",
  "osh": "etsh",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "percona-server55": "percona-server@5.5",
  "percona-server56": "percona-server@5.6",
  "perl514": "perl@5.14",
  "perl518": "perl@5.18",
<<<<<<< HEAD
  "phantomjs192": "phantomjs@1.92",
  "phantomjs198": "phantomjs@1.98",
=======
>>>>>>> azure-cli: update 2.0.25 bottle.
  "plt-racket": "racket",
  "polarssl": "mbedtls",
  "postgresql94": "postgresql@9.4",
  "postgresql95": "postgresql@9.5",
  "ppl011": "ppl@0.11",
  "protobuf250": "protobuf@2.5",
  "protobuf260": "protobuf@2.6",
  "pyqt5": "pyqt",
  "qt5": "qt",
  "qt55": "qt@5.5",
  "racket": "minimal-racket",
  "rebar3": "rebar@3",
  "recipes": "gnome-recipes",
  "redis26": "redis@2.6",
  "redis28": "redis@2.8",
<<<<<<< HEAD
=======
  "root6": "root",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "ruby187": "ruby@1.8",
  "ruby193": "ruby@1.9",
  "ruby20": "ruby@2.0",
  "ruby21": "ruby@2.1",
  "ruby22": "ruby@2.2",
  "ruby23": "ruby@2.3",
  "scala210": "scala@2.10",
  "scala211": "scala@2.11",
  "screenbrightness": "brightness",
  "selenium-server-standalone245": "selenium-server-standalone@2.45",
  "solr54": "solr@5.4",
  "solr55": "solr@5.5",
  "sonar": "sonarqube",
<<<<<<< HEAD
  "srtp15": "srtp@1.5",
=======
  "speedtest_cli": "speedtest-cli",
  "srtp@1.5": "srtp@1.6",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "stash-cli": "atlassian-cli",
  "subversion18": "subversion@1.8",
  "swig2": "swig@2",
  "swig304": "swig@3.04",
<<<<<<< HEAD
  "thrift090": "thrift@0.90",
  "tomcat6": "tomcat@6",
  "tomcat7": "tomcat@7",
=======
  "team-explorer-everywhere": "tee-clc",
  "tensorflow": "libtensorflow",
  "thrift@0.90": "thrift@0.9",
  "thrift090": "thrift@0.90",
  "tomcat6": "tomcat@6",
  "tomcat7": "tomcat@7",
  "transfig": "fig2dev",
>>>>>>> azure-cli: update 2.0.25 bottle.
  "unison240": "unison@2.40",
  "v8-315": "v8@3.15",
  "varnish4": "varnish@4",
  "vim74": "vim@7.4",
  "wires": "geckodriver",
  "zeromq32": "zeromq@3.2",
  "zeromq40": "zeromq@4.0"
}
'
Please report this bug:
  https://docs.brew.sh/Troubleshooting.html
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/json/common.rb:156:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/json/common.rb:156:in `parse'
/usr/local/Homebrew/Library/Homebrew/tap.rb:467:in `formula_renames'
/usr/local/Homebrew/Library/Homebrew/tap.rb:612:in `formula_renames'
/usr/local/Homebrew/Library/Homebrew/formula.rb:378:in `oldname'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1124:in `migration_needed?'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:197:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:110:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:110:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:100:in `<main>'

Is this problem related to

git -C "$(brew --repo homebrew/core)" checkout master

with output

Previous HEAD position was d4d47e5379... offlineimap: update 7.1.1_1 bottle.
Switched to branch 'master'
Your branch and 'origin/master' have diverged,
and have 1 and 84753 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)

The error seems like a conflict between two commits of different contributors.
But I have no idea where this conflict is and how to fix it.

Thanks in advance.


(adonisyuan) #2

I fixed this problem by reverting my local git commit

cd "$(brew --repo homebrew/core)"
git reset --hard origin/master

BTW I have no idea why there is local change.