`brew tests` fails on Ubuntu (Docker)

(Jeroen De Bruijn) #1

Hi all,

I’m trying to have brew installed inside a Docker container (Ubuntu 18.04) and got that part working. Brew is successfully installed and I can install formulae and all. For a new formula I tried to run brew audit and than got an error when installing gem dependencies, I think.
I tried to run the tests (brew tests) and those failed too. I’ve installed the dependencies (build-essential, curl, file, git) as described in the install requirements. The Docker image is basically the plain ubuntu base image. Now I’ve found that when I install zlib1g-dev this issue goes away i.e. brew tests succeeds, but zlib is not noted as a dependency or requirement AFIK.
Are there additional dependencies/requiremenst for brew tests to succeed?

Brew information

$ brew doctor
Your system is ready to brew.
$ brew --env
export CC="gcc"
export CXX="g\+\+"
export OBJC="gcc"
export OBJCXX="g\+\+"
export HOMEBREW_CC="gcc"
export HOMEBREW_CXX="g\+\+"
export MAKEFLAGS="-j4"
export CMAKE_PREFIX_PATH="/home/linuxbrew/.linuxbrew"
export HOMEBREW_GIT="git"
export PATH="/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super:/usr/bin:/bin:/usr/sbin:/sbin"
$ brew --env
HOMEBREW_VERSION: 2.1.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: b4f73e61649fcfc5aaa779c311e2514619ce01e7
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/linuxbrew-core
Core tap HEAD: 067a3ec05241e39c5fbcf67dafe28e89dadac96a
Core tap last commit: 18 hours ago
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CACHE: /root/.cache/Homebrew
HOMEBREW_LOGS: /root/.cache/Homebrew/Logs
CPU: quad-core 64-bit skylake
Homebrew Ruby: 2.3.7 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: N/A
Git: 2.17.1 => /usr/bin/git
Curl: 7.58.0 => /usr/bin/curl
Kernel: Linux 4.19.36-1-MANJARO x86_64 GNU/Linux
OS: N/A
Host glibc: 2.27
/usr/bin/gcc: 7.4.0
glibc: N/A
gcc: N/A
xorg: N/A

Log output without zlib

$ brew tests
==> Installing 'bundler' gem
Successfully installed bundler-2.0.1
1 gem installed
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/........
Fetching concurrent-ruby 1.1.5
Fetching minitest 5.11.3
Fetching thread_safe 0.3.6
Installing minitest 5.11.3
Installing thread_safe 0.3.6
Fetching ast 2.4.0
Installing concurrent-ruby 1.1.5
Fetching backports 3.13.0
Installing ast 2.4.0
Using bundler 2.0.1
Fetching connection_pool 2.2.2
Fetching json 2.2.0
Installing backports 3.13.0
Installing connection_pool 2.2.2
Fetching docile 1.3.1
Installing json 2.2.0 with native extensions
Installing docile 1.3.1
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching tins 1.20.2
Fetching thor 0.19.4
Installing tins 1.20.2
Installing thor 0.19.4
Fetching diff-lcs 1.3
Installing diff-lcs 1.3
Fetching unf_ext 0.0.7.5
Fetching hpricot 0.8.6
Installing unf_ext 0.0.7.5 with native extensions
Installing hpricot 0.8.6 with native extensions
Fetching jaro_winkler 1.5.2
Installing jaro_winkler 1.5.2 with native extensions
Fetching mime-types-data 3.2019.0331
Installing mime-types-data 3.2019.0331
Fetching net-http-digest_auth 1.4.1
Installing net-http-digest_auth 1.4.1
Fetching mini_portile2 2.4.0
Installing mini_portile2 2.4.0
Fetching ntlm-http 0.1.1
Installing ntlm-http 0.1.1
Fetching webrobots 0.1.2
Installing webrobots 0.1.2
Fetching mustache 1.1.0
Installing mustache 1.1.0
Fetching parallel 1.17.0
Installing parallel 1.17.0
Fetching plist 3.5.0
Installing plist 3.5.0
Fetching psych 3.1.0
Installing psych 3.1.0 with native extensions
Fetching rainbow 3.0.0
Fetching rdiscount 2.2.0.1
Installing rainbow 3.0.0
Fetching rspec-support 3.8.0
Installing rdiscount 2.2.0.1 with native extensions
Installing rspec-support 3.8.0
Fetching ruby-progressbar 1.10.0
Installing ruby-progressbar 1.10.0
Fetching unicode-display_width 1.5.0
Installing unicode-display_width 1.5.0
Fetching ruby-macho 2.2.0
Installing ruby-macho 2.2.0
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching i18n 1.6.0
Installing i18n 1.6.0
Fetching parser 2.6.2.1
Installing parser 2.6.2.1
Fetching net-http-persistent 3.0.0
Installing net-http-persistent 3.0.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching unf 0.1.4
Installing unf 0.1.4
Fetching mime-types 3.2.2
Installing mime-types 3.2.2
Fetching nokogiri 1.10.2
Installing nokogiri 1.10.2 with native extensions
Fetching parallel_tests 2.28.0
Installing parallel_tests 2.28.0
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Fetching rspec-core 3.8.0
Installing rspec-core 3.8.0
Fetching rspec-expectations 3.8.2
Installing rspec-expectations 3.8.2
Fetching rspec-mocks 3.8.0
Installing rspec-mocks 3.8.0
Fetching activesupport 5.2.3
Installing activesupport 5.2.3
Fetching domain_name 0.5.20180417
Installing domain_name 0.5.20180417
Fetching rubocop 0.67.2
Installing rubocop 0.67.2
Fetching coveralls 0.8.22
Installing coveralls 0.8.22
Fetching simplecov-cobertura 1.3.1
Installing simplecov-cobertura 1.3.1
Fetching rspec-retry 0.6.1
Installing rspec-retry 0.6.1
Fetching rspec-its 1.3.0
Installing rspec-its 1.3.0
Fetching rspec 3.8.0
Installing rspec 3.8.0
Fetching http-cookie 1.0.3
Installing http-cookie 1.0.3
Fetching rubocop-rspec 1.32.0
Installing rubocop-rspec 1.32.0
Fetching rspec-wait 0.0.9
Installing rspec-wait 0.0.9
Fetching ronn 0.7.3
Installing ronn 0.7.3
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.10.2/ext/nokogiri
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
-r ./siteconf20190505-4520-soxciq.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.4.0
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
--ruby=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/$(RUBY_BASE_NAME)
	--help
	--clean
	--use-system-libraries
	--enable-static
	--disable-static
	--with-zlib-dir
	--without-zlib-dir
	--with-zlib-include
	--without-zlib-include=${zlib-dir}/include
	--with-zlib-lib
	--without-zlib-lib=${zlib-dir}/lib
	--enable-cross-build
	--disable-cross-build

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/nokogiri-1.10.2/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.10.2
for inspection.
Results logged to
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/nokogiri-1.10.2/gem_make.out

An error occurred while installing nokogiri (1.10.2), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.10.2' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  mechanize was resolved to 2.7.6, which depends on
    nokogiri
Error: failed to run `/root/.gem/ruby/2.3.0/bin/bundle install`!

Log output with zlib

$ brew tests
==> Installing 'bundler' gem
Successfully installed bundler-2.0.1
1 gem installed
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/........
Fetching concurrent-ruby 1.1.5
Fetching minitest 5.11.3
Fetching thread_safe 0.3.6
Installing minitest 5.11.3
Installing thread_safe 0.3.6
Installing concurrent-ruby 1.1.5
Fetching ast 2.4.0
Fetching backports 3.13.0
Installing ast 2.4.0
Using bundler 2.0.1
Fetching connection_pool 2.2.2
Fetching json 2.2.0
Installing backports 3.13.0
Installing connection_pool 2.2.2
Fetching docile 1.3.1
Installing json 2.2.0 with native extensions
Installing docile 1.3.1
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching tins 1.20.2
Fetching thor 0.19.4
Installing thor 0.19.4
Installing tins 1.20.2
Fetching diff-lcs 1.3
Installing diff-lcs 1.3
Fetching unf_ext 0.0.7.5
Fetching hpricot 0.8.6
Installing hpricot 0.8.6 with native extensions
Installing unf_ext 0.0.7.5 with native extensions
Fetching jaro_winkler 1.5.2
Installing jaro_winkler 1.5.2 with native extensions
Fetching mime-types-data 3.2019.0331
Installing mime-types-data 3.2019.0331
Fetching net-http-digest_auth 1.4.1
Installing net-http-digest_auth 1.4.1
Fetching mini_portile2 2.4.0
Installing mini_portile2 2.4.0
Fetching ntlm-http 0.1.1
Installing ntlm-http 0.1.1
Fetching webrobots 0.1.2
Installing webrobots 0.1.2
Fetching mustache 1.1.0
Installing mustache 1.1.0
Fetching parallel 1.17.0
Installing parallel 1.17.0
Fetching plist 3.5.0
Installing plist 3.5.0
Fetching psych 3.1.0
Installing psych 3.1.0 with native extensions
Fetching rainbow 3.0.0
Installing rainbow 3.0.0
Fetching rdiscount 2.2.0.1
Installing rdiscount 2.2.0.1 with native extensions
Fetching rspec-support 3.8.0
Installing rspec-support 3.8.0
Fetching ruby-progressbar 1.10.0
Installing ruby-progressbar 1.10.0
Fetching unicode-display_width 1.5.0
Installing unicode-display_width 1.5.0
Fetching ruby-macho 2.2.0
Installing ruby-macho 2.2.0
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching parser 2.6.2.1
Installing parser 2.6.2.1
Fetching i18n 1.6.0
Installing i18n 1.6.0
Fetching net-http-persistent 3.0.0
Installing net-http-persistent 3.0.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching unf 0.1.4
Installing unf 0.1.4
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Fetching mime-types 3.2.2
Installing mime-types 3.2.2
Fetching nokogiri 1.10.2
Installing nokogiri 1.10.2 with native extensions
Fetching parallel_tests 2.28.0
Installing parallel_tests 2.28.0
Fetching rspec-core 3.8.0
Installing rspec-core 3.8.0
Fetching rspec-expectations 3.8.2
Installing rspec-expectations 3.8.2
Fetching rspec-mocks 3.8.0
Installing rspec-mocks 3.8.0
Fetching activesupport 5.2.3
Installing activesupport 5.2.3
Fetching domain_name 0.5.20180417
Installing domain_name 0.5.20180417
Fetching coveralls 0.8.22
Installing coveralls 0.8.22
Fetching simplecov-cobertura 1.3.1
Installing simplecov-cobertura 1.3.1
Fetching rubocop 0.67.2
Installing rubocop 0.67.2
Fetching rspec-retry 0.6.1
Installing rspec-retry 0.6.1
Fetching rspec-its 1.3.0
Installing rspec-its 1.3.0
Fetching rspec 3.8.0
Installing rspec 3.8.0
Fetching http-cookie 1.0.3
Installing http-cookie 1.0.3
Fetching rubocop-rspec 1.32.0
Installing rubocop-rspec 1.32.0
Fetching rspec-wait 0.0.9
Installing rspec-wait 0.0.9
Fetching ronn 0.7.3
Installing ronn 0.7.3
Fetching mechanize 2.7.6
Installing mechanize 2.7.6
Bundle complete! 17 Gemfile dependencies, 57 gems now installed.
Bundled gems are installed into `./home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle`
Post-install message from i18n:

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Post-install message from rubocop:
Performance Cops will be removed from RuboCop 0.68. Use rubocop-performance gem instead.

Put this in your Gemfile.

  gem 'rubocop-performance'

And then execute:

  $ bundle install

Put this into your .rubocop.yml.

  require: rubocop-performance

More information: https://github.com/rubocop-hq/rubocop-performance
Randomized with seed 26114
4 processes for 203 specs, ~ 50 specs per process
................................................................................................................................................................................................********.................................................*.*.**.*.*.............*........................................................................................................*..............****.................................................*...*..................................................................................................................*...........................................................................................................................................................................................................................................................................................................................................................................................................................................................*..................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Homebrew::Diagnostic::Checks #check_access_directories
     # User is root so everything is writable.
     # ./test/diagnostic_checks_spec.rb:26

  2) Language::Python#site_packages gives a different location between PyPy and Python 2
     # Python not installed.
     # ./test/language/python_spec.rb:13

  3) Language::Python#homebrew_site_packages returns the Homebrew site packages location
     # Python not installed.
     # ./test/language/python_spec.rb:19

  4) Language::Python#major_minor_version returns a Version for Python 2
     # Python not installed.
     # ./test/language/python_spec.rb:6

  5) Language::Python#user_site_packages can determine user site packages location
     # Python not installed.
     # ./test/language/python_spec.rb:26

  6) Utils#self.svn_remote_exists? when svn is available returns true when remote exists
     # Requires network connection.
     # ./test/utils/svn_spec.rb:33

Finished in 35.76 seconds (files took 1.29 seconds to load)
415 examples, 0 failures, 6 pending

.............................................................................................................................................................*.................................................................................................................................................................................................................................................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) UnpackStrategy::Zip when unzip is available #extract
     # unzip not installed.
     # ./test/unpack_strategy/shared_examples.rb:10

  2) brew search falls back to a GitHub tap search when no formula is found
     # Requires network connection.
     # ./test/cmd/search_spec.rb:9

Finished in 40.55 seconds (files took 1.4 seconds to load)
466 examples, 0 failures, 2 pending

.................................*......................................................*.*........................*..............................................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) brew bundle check checks if a Brewfile's dependencies are satisfied
     # Requires network connection.
     # ./test/cmd/bundle_spec.rb:3

  2) GitHub::search_code queries GitHub code with the passed parameters
     # Requires network connection.
     # ./test/utils/github_spec.rb:5

  3) GitHub::search_issues queries GitHub issues with the passed parameters
     # Requires network connection.
     # ./test/utils/github_spec.rb:33

Finished in 44.05 seconds (files took 1.28 seconds to load)
391 examples, 0 failures, 3 pending

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

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Language::Java::overridable_java_home_env returns java_home path without version if version is not specified
     # Java not installed.
     # ./test/language/java_spec.rb:34

  2) Language::Java::java_home returns valid JAVA_HOME if version is specified
     # Java not installed.
     # ./test/language/java_spec.rb:5

  3) Language::Java::java_home returns valid JAVA_HOME if version is not specified
     # Java not installed.
     # ./test/language/java_spec.rb:10

  4) Language::Java::java_home_env returns java_home path without version if version is not specified
     # Java not installed.
     # ./test/language/java_spec.rb:22

  5) UnpackStrategy::Subversion #extract
     # subversion not installed.
     # ./test/unpack_strategy/shared_examples.rb:10

  6) UnpackStrategy::Subversion is correctly detected
     # subversion not installed.
     # ./test/unpack_strategy/shared_examples.rb:4

  7) UnpackStrategy::Subversion when the directory name contains an '@' symbol #extract
     # subversion not installed.
     # ./test/unpack_strategy/shared_examples.rb:10

  8) brew pull fetches a patch from a GitHub commit or pull request and applies it
     # Requires network connection.
     # ./test/dev-cmd/pull_spec.rb:8

  9) Sandbox #allow_write
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:23

  10) Sandbox #formula?
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:13

  11) Sandbox #test?
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:18

  12) Sandbox#exec ignores bogus Python error
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:49

  13) Sandbox#exec fails when writing to file not specified with ##allow_write
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:31

  14) Sandbox#exec complains on failure
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:39

  15) Utils::git_remote_exists? when git is available returns true when git remote exists
     # Requires network connection.
     # ./test/utils/git_spec.rb:131

  16) UnpackStrategy::Jar is correctly detected
     # unzip not installed.
     # ./test/unpack_strategy/shared_examples.rb:4

  17) UnpackStrategy::Jar #extract
     # unzip not installed.
     # ./test/unpack_strategy/shared_examples.rb:10

  18) Pathname#ensure_writable makes a file writable and restores permissions afterwards
     # User is root so everything is writable.
     # ./test/pathname_spec.rb:120

Finished in 50.65 seconds (files took 1.23 seconds to load)
389 examples, 0 failures, 18 pending


1661 examples, 0 failures, 29 pendings

Took 52 seconds

(Shaun Jackman) #2

Sounds like a bug, Jeroen. If you’re able to find a fix, a pull request to Homebrew/brew would be most welcome. I’m glad to hear that you were able to find a workaround. Another thing to try that might fix in (untested) is brew install zlib gcc and ensure that the brewed gcc is first in your path. I’d be curious to know if that fixes the issue.

(Jeroen De Bruijn) #3

Hi Shaun,

Unfortunately I got the same result with brew install zlib gcc before brew tests. I also tried installing libxml2 with homebrew, but again no difference. Homebrew is also first in path so should be preferred.

Seems like the only thing that fixes it is apt-get install zlib1g-dev before running brew tests. The gem package (I don’t know how they call it with gem) that seems to be the problem is nokogiri. On their installation instructions they do note the followign dependencies build-essential patch ruby-dev zlib1g-dev liblzma-dev so it seems like they need that dependency. the zlib from brew doesn’t seem to cut it and I could not find any other relevant formula that can be used instead.
Therefore, the solution IMHO is to do apt-get install zlib1g-dev liblzma-dev patch (I already have the other dependencies installed). Is there any way brew can install those via apt-get or give a better warning message?

(Jonathan Chang) #4

If that’s the case, one thing to do would be to ensure that brew development commands requiring the nokogiri gem build against brewed zlib and xz rather than searching in the system locations on Linux. The relevant code is in utils/gems.rb.

(Jeroen De Bruijn) #5

Could you maybe give some more detailed pointers where to look in util/gems.rb? I don’t have any experience with Ruby but tried to add some logs (ohai_if_defined) in that file and see the logs, but when the the gems are being installed I don’t see any of my logs. Only the standard logs (Fetching… and Installing…).
I also tried adding install_gem!("nokogiri") in install_bundler_gems, just after install_bundler and than if fails directly on that install (as can be expected of course).

(Shaun Jackman) #6

Once the brewed gcc is installed, it should be able to find and use the brewed zlib. It’s possible that gem is using the system gcc rather than the brewed gcc by default. It’d be helpful to confirm whether that’s the case. This test checking for gzdopen() in -lz... no should pass when using the brewed gcc.

(Jeroen De Bruijn) #7

It’s getting quite interesting now, I think. I added a line in util/gems.rb to print the PATH

    ohai_if_defined "THis is the PATH ENV from gems.rb!"
    ohai_if_defined "#{ ENV["PATH"]}"

and it shows that the section of the path with the homebrew bin directory in it is not seen from gems.rb. See the log below where the path is correct when I print it from my install script. That’s probably why it is not using the brewed gcc but the system one, which fails.

Any ideas why the path is different?

+ homebrew::install
+ local homebrew_user=linuxbrew
+ useradd -m -s /bin/bash linuxbrew
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
+ echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL'
+ ls -la /home
total 12
drwxr-xr-x 1 root root 4096 May 10 18:10 .
drwxr-xr-x 1 root root 4096 May 10 18:10 ..
drwxr-xr-x 3 root root 4096 May 10 18:10 linuxbrew
+ ls -la /home/linuxbrew
total 12
drwxr-xr-x 3 root root 4096 May 10 18:10 .
drwxr-xr-x 1 root root 4096 May 10 18:10 ..
drwxr-xr-x 3 root root 4096 May 10 18:10 .linuxbrew
+ ls -la /home/linuxbrew/.linuxbrew
total 12
drwxr-xr-x 3 root root 4096 May 10 18:10 .
drwxr-xr-x 3 root root 4096 May 10 18:10 ..
drwxr-xr-x 9 root root 4096 May 10 18:10 Homebrew
+ mkdir /home/linuxbrew/.linuxbrew/bin
+ ln -s /home/linuxbrew/.linuxbrew/Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin
++ home/linuxbrew/.linuxbrew/bin/brew shellenv
+ eval export 'HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"' export 'HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar"' export 'HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew"' export 'PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"' export 'MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"' export 'INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"'
++ export HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew export HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar export HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew export PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export MANPATH=/home/linuxbrew/.linuxbrew/share/man: export INFOPATH=/home/linuxbrew/.linuxbrew/share/info:
++ HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew
++ HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar
++ HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew
++ PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ MANPATH=/home/linuxbrew/.linuxbrew/share/man:
++ INFOPATH=/home/linuxbrew/.linuxbrew/share/info:
+ homebrew::show_config
+ brew --env
==> Downloading https://linuxbrew.bintray.com/bottles-portable-ruby/portable-ruby-2.3.7.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring portable-ruby-2.3.7.x86_64_linux.bottle.tar.gz
==> Tapping homebrew/core
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core'...
Tapped 3 commands and 4828 formulae (5,089 files, 13.2MB).
export CC="gcc"
export CXX="g\+\+"
export OBJC="gcc"
export OBJCXX="g\+\+"
export HOMEBREW_CC="gcc"
export HOMEBREW_CXX="g\+\+"
export MAKEFLAGS="-j4"
export CMAKE_PREFIX_PATH="/home/linuxbrew/.linuxbrew"
export HOMEBREW_GIT="git"
export PATH="/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super:/usr/bin:/bin:/usr/sbin:/sbin"
+ brew config
HOMEBREW_VERSION: 2.1.2-6-g84085bd-dirty
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 84085bd430d0f1b5025cf27a930aca750de7264c
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/linuxbrew-core
Core tap HEAD: 0a449037256776a3fd76779a3e0dce5ee671c525
Core tap last commit: 38 minutes ago
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CACHE: /root/.cache/Homebrew
HOMEBREW_LOGS: /root/.cache/Homebrew/Logs
HOMEBREW_NO_ANALYTICS_THIS_RUN: 1
CPU: quad-core 64-bit skylake
Homebrew Ruby: 2.3.7 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: N/A
Git: 2.17.1 => /usr/bin/git
Curl: 7.58.0 => /usr/bin/curl
Kernel: Linux 4.19.36-1-MANJARO x86_64 GNU/Linux
OS: N/A
Host glibc: 2.27
/usr/bin/gcc: 7.4.0
glibc: N/A
gcc: N/A
xorg: N/A
+ which brew
/home/linuxbrew/.linuxbrew/bin/brew
+ echo 'The path = /home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
The path = /home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export HOMEBREW_NO_AUTO_UPDATE=1
+ HOMEBREW_NO_AUTO_UPDATE=1
+ homebrew::test
+ brew install hello
==> Installing dependencies for hello: patchelf
==> Installing hello dependency: patchelf
==> Downloading https://linuxbrew.bintray.com/bottles/patchelf-0.9_1.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/00/00c02e6c700f4427da40a82e2a5d88427cfb28a79b3ac69f441d69d8377254f4?__gda__=exp=1557512558~hmac=785c9860603889df7f039a9a1d56e2e9c545c74805b1a28855e29e6ce35a7c91&response-content-disposition=attachment%3Bfilename%3D%22patchelf-0.9_1.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1_awOCPLaAIjxlyUahi09IOW3eVSZH5MhHT4j9oSVWj_nWKn6w57iLDQ5VrMeNwyH9Nwb-KCw-ZAZ1J6f5tpKYu3f4wutwagjxQVdMOKOxtb7M4NiGRd3d1c-PO6c9pENdfT8TeVpxDuQ&response-X-Checksum-Sha1=0b3a2bab524cc9e6522afe2ce1389c64870a63ec&response-X-Checksum-Sha2=00c02e6c700f4427da40a82e2a5d88427cfb28a79b3ac69f441d69d8377254f4
==> Pouring patchelf-0.9_1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/patchelf/0.9_1: 6 files, 1.2MB
==> Installing hello
==> Downloading https://linuxbrew.bintray.com/bottles/hello-2.10.x86_64_linux.bottle.tar.gz
==> Pouring hello-2.10.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/hello/2.10: 52 files, 595.6KB
==> `brew cleanup` has not been run in 30 days, running now...
+ hello
Hello, world!
+ homebrew::run_tests
+ echo 'The path = /home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
+ gcc --version
The path = /home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

+ brew install zlib gcc xz libxml2 libxslt
==> Downloading https://linuxbrew.bintray.com/bottles/zlib-1.2.11.x86_64_linux.bottle.tar.gz
==> Pouring zlib-1.2.11.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/zlib/1.2.11: 12 files, 423.5KB
==> Installing dependencies for gcc: gmp, mpfr, libmpc and isl@0.18
==> Installing gcc dependency: gmp
==> Downloading https://linuxbrew.bintray.com/bottles/gmp-6.1.2_2.x86_64_linux.bottle.1.tar.gz
==> Downloading from https://akamai.bintray.com/09/09d722e6321b67257e80f08b7c69202b5898189ccd81677adcdc714faaa86e3b?__gda__=exp=1557512562~hmac=0e20631274eda61f287a075f471e6df9e8ebf81349ae1a65367b8270a63fea8f&response-content-disposition=attachment%3Bfilename%3D%22gmp-6.1.2_2.x86_64_linux.bottle.1.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1-IpXhIO9ZHJLbeThjj-i_rGl-stnAbWWEHHl6JmxyxYwwIiPUTqiu-FaLt33B3YZxWrp2_08IAdDJEtgm_0noA1UQ7fY6iUCKLsvtab2yPkhMsB7-ikqOXG_zU2x5wm3wmVF6yb_MJNg&response-X-Checksum-Sha1=4f3e93db8fb7e37972ba9205c1499733017ad3ad&response-X-Checksum-Sha2=09d722e6321b67257e80f08b7c69202b5898189ccd81677adcdc714faaa86e3b
==> Pouring gmp-6.1.2_2.x86_64_linux.bottle.1.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/gmp/6.1.2_2: 20 files, 3.8MB
==> Installing gcc dependency: mpfr
==> Downloading https://linuxbrew.bintray.com/bottles/mpfr-4.0.2.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/cf/cffaa9976a516130ac5b979eae7bdd62180ed8924bb52bf0b30935174b1cbab0?__gda__=exp=1557512564~hmac=4666e0c19f31aa6c27e1a9ebd42e832bd370c2b11de1a010c4fb1af55c25b5ed&response-content-disposition=attachment%3Bfilename%3D%22mpfr-4.0.2.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX194s3rEUBiIw1iTBxa9IVmDD9swqE4eOlrK8ZhgmRcb6XKEW7hti7a1oCKBkTbvFLO_p58HahfbBdWMkxfnObKDMX8u0I9KZSaOMR0Nhtb1r16pfthBQJ2hFwxY98-lpYX6Qw6O6WYHyA&response-X-Checksum-Sha1=96e2c48455e3bf833928c9ac2df5eedac2a80078&response-X-Checksum-Sha2=cffaa9976a516130ac5b979eae7bdd62180ed8924bb52bf0b30935174b1cbab0
==> Pouring mpfr-4.0.2.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/mpfr/4.0.2: 29 files, 5.2MB
==> Installing gcc dependency: libmpc
==> Downloading https://linuxbrew.bintray.com/bottles/libmpc-1.1.0.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/b3/b31648a86228a042aaa8e7d58faba7859059910a427f9ef4211b06bd9152f8c2?__gda__=exp=1557512565~hmac=dec20f91b0fda010e9f3fcc104559808966aa3c91cc716ff106bf41cffba9512&response-content-disposition=attachment%3Bfilename%3D%22libmpc-1.1.0.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1_vMqQranZEqZ2gZ0QsVsD5oTrzN5tXSiiHNrHZfAzAfkTfM069148N_QSHF6cUZ-318Q5y1PwS7-NDBVhGExl8TSgHRRROfFQ9YlDX3vYYCbx_84OhTEX_0M-fgeWdFsEJKYvJ5eT7kg&response-X-Checksum-Sha1=746d2136d09042d5bc93b89acbcf209040da2f5f&response-X-Checksum-Sha2=b31648a86228a042aaa8e7d58faba7859059910a427f9ef4211b06bd9152f8c2
==> Pouring libmpc-1.1.0.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libmpc/1.1.0: 13 files, 1.5MB
==> Installing gcc dependency: isl@0.18
==> Downloading https://linuxbrew.bintray.com/bottles/isl@0.18-0.18.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/3e/3ef95686496676a3c73c57db6eee32a9f039e9c2b7ccf173c3b1941124ef6f78?__gda__=exp=1557512566~hmac=a80818a255cc3fea1d7180af870d52087b45545b00eff992fa6be533e967cb66&response-content-disposition=attachment%3Bfilename%3D%22isl%400.18-0.18.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1-fnfVaABDOmXWGy8E32OkcOacqtMThw8jvQ30TD4s6ggOcUU-ZFaKlBz7yCMo-y4HLx32SoWgN29xWpRWP8HzkO9SRuLoqbAJcTBeSi78k8Sw3VpPrKB9E0K3s5FfSMzNMSG80vowS3g&response-X-Checksum-Sha1=a68421d87bb6e224fb8c96fd8ee193f48dce4ab2&response-X-Checksum-Sha2=3ef95686496676a3c73c57db6eee32a9f039e9c2b7ccf173c3b1941124ef6f78
==> Pouring isl@0.18-0.18.x86_64_linux.bottle.tar.gz
==> Caveats
isl@0.18 is keg-only, which means it was not symlinked into /home/linuxbrew/.linuxbrew,
because this is an alternate version of another formula.

For compilers to find isl@0.18 you may need to set:
  export LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/isl@0.18/lib"
  export CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/isl@0.18/include"

==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/isl@0.18/0.18: 81 files, 6.4MB
==> Installing gcc
==> Downloading https://linuxbrew.bintray.com/bottles/gcc-5.5.0_4.x86_64_linux.bottle.2.tar.gz
==> Downloading from https://akamai.bintray.com/40/406111bf6c70681f2acbf39bb2462da0a15e1522d01bd909abed43556dff50ca?__gda__=exp=1557512567~hmac=9f79c2e143e25e03a66e559a2108d5e589c386303715de8393dc1a2b2b238796&response-content-disposition=attachment%3Bfilename%3D%22gcc-5.5.0_4.x86_64_linux.bottle.2.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX19gz73dt35ycwaOLljjsx5_YHaFmFTLZTBOfn1NjaQifLTxCIdQC3FkiQSug4zx7BbA_Kp6DYlzPY7kXLDhmBWOQDTVo-WXylHGoTA0hFCqvoLxef-d-OgSD1kHbSth89A32pOW0cZIAw&response-X-Checksum-Sha1=f7968fca16c34a4cdafd71830a82fe0bdf894d00&response-X-Checksum-Sha2=406111bf6c70681f2acbf39bb2462da0a15e1522d01bd909abed43556dff50ca
==> Pouring gcc-5.5.0_4.x86_64_linux.bottle.2.tar.gz
==> Creating the GCC specs file: /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_4/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/specs
🍺  /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_4: 1,363 files, 169.8MB
==> Downloading https://linuxbrew.bintray.com/bottles/xz-5.2.4.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/84/843e87c20f1d261e4fd08ed5856f788dd3f4d639bbc99746b89bb5e69dbbb2df?__gda__=exp=1557512574~hmac=d7b9d4b369e486e716e89ca40788155c403e41cfb4f780abcb8f85eb7f975a11&response-content-disposition=attachment%3Bfilename%3D%22xz-5.2.4.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1-n982CRKVzXRP5C-LFVQaymYpbej2n_DuKnKG32evPYeDnMyB4ukEilwlm8xgny7MkC9g8tBqmQwPOgNgDbIM7HOXQz3fMO3_Bx4IyyOfk7QCnlDdflQ-tiqZ6CKPL4AhbPhhzFTjtqQ&response-X-Checksum-Sha1=83ef1834812948c78f375f1071b955cec961a867&response-X-Checksum-Sha2=843e87c20f1d261e4fd08ed5856f788dd3f4d639bbc99746b89bb5e69dbbb2df
==> Pouring xz-5.2.4.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/xz/5.2.4: 99 files, 3.3MB
==> Installing dependencies for libxml2: gdbm, openssl, ncurses, readline, sqlite, bzip2, libffi and python
==> Installing libxml2 dependency: gdbm
==> Downloading https://linuxbrew.bintray.com/bottles/gdbm-1.18.1.x86_64_linux.bottle.1.tar.gz
==> Downloading from https://akamai.bintray.com/80/80fc4bdfef26e3df4c1f7390e1169d32935faa69f00888318bf0ed8321798aad?__gda__=exp=1557512575~hmac=b753125bed0e36e63599ee7a78e70572898d17a215ea100f18a2c84fda19f486&response-content-disposition=attachment%3Bfilename%3D%22gdbm-1.18.1.x86_64_linux.bottle.1.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1_G5GkENgKXUDToP33EkDcAB_km5F-GOUzLG47eH2iNITHqDntg8oSqy8IFGBVlIY8i525Ygc30Fql7OMSP9LV-fvFEoADZROwlX7z2T23C1bXMtqVuc3n_MXU9-w8b_WgGJc8pMGVKIA&response-X-Checksum-Sha1=e8d417d2114965673d64bd6a2f8febf28d5aba24&response-X-Checksum-Sha2=80fc4bdfef26e3df4c1f7390e1169d32935faa69f00888318bf0ed8321798aad
==> Pouring gdbm-1.18.1.x86_64_linux.bottle.1.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/gdbm/1.18.1: 40 files, 1MB
==> Installing libxml2 dependency: openssl
==> Downloading https://linuxbrew.bintray.com/bottles/openssl-1.0.2r.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/e1/e1f6e95153e7a8e5d3bf62e22dd0ac771ec80ee61a36805278370f6140716b52?__gda__=exp=1557512577~hmac=b1e4b14329059f005b80073f0231caa838c56a0ea38c89289e92d6914380039d&response-content-disposition=attachment%3Bfilename%3D%22openssl-1.0.2r.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX19iPJZX_5C4JVczjbswVHsrueDpR3Wb_1Ct0cIffMY4CEJyDD2RwcJ1W7hjWH4oMd169PTNYnrSIJzbiXnCKyu-qN70_9bfFl_JqUgXRkkegwbut7B0AsF-3gUukqC55CKao5cX7cMLyA&response-X-Checksum-Sha1=3be04e509d2d3f37de1acd472215291efedacb0d&response-X-Checksum-Sha2=e1f6e95153e7a8e5d3bf62e22dd0ac771ec80ee61a36805278370f6140716b52
==> Pouring openssl-1.0.2r.x86_64_linux.bottle.tar.gz
==> Downloading https://curl.haxx.se/ca/cacert-2019-01-23.pem
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /home/linuxbrew/.linuxbrew/etc/openssl/certs

and run
  /home/linuxbrew/.linuxbrew/opt/openssl/bin/c_rehash
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/openssl/1.0.2r: 1,804 files, 14.5MB
==> Installing libxml2 dependency: ncurses
==> Downloading https://linuxbrew.bintray.com/bottles/ncurses-6.1.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/5e/5eb929e69e3a2b71c2161551825fd16146efc164ab7dbea25d2a5b73b51cd1cb?__gda__=exp=1557512579~hmac=7ea52626897175edaf96bd4f8ce978aa9969943c81c1fe4ecaccdcec683f2d36&response-content-disposition=attachment%3Bfilename%3D%22ncurses-6.1.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX18gkMgro7U6S_Hplj3Ml-73LEEaYDhTpMfff9jQ0vZ0TEnPuvQdD8uMIfycv8jcM7Q9MDcbRHcHft2jjqKQEjNKqZStlh5YXVm5S7XAHqekZ3GsxcbcIJoNySnB-RprN_Yk9s08_F2D6A&response-X-Checksum-Sha1=f6152b99f4d87d3c30c957feca96c337e9fce2bf&response-X-Checksum-Sha2=5eb929e69e3a2b71c2161551825fd16146efc164ab7dbea25d2a5b73b51cd1cb
==> Pouring ncurses-6.1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/ncurses/6.1: 3,856 files, 15.4MB
==> Installing libxml2 dependency: readline
==> Downloading https://linuxbrew.bintray.com/bottles/readline-8.0.0_1.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ae/aecadfc325735c80de0965dd31292d34d2c3ed0cb404a7adb8288d6f99a78e94?__gda__=exp=1557512581~hmac=a41f4d4bce1398a2c8acfb231b2dc2a0e6220c3d000c578e9cae050b324e24aa&response-content-disposition=attachment%3Bfilename%3D%22readline-8.0.0_1.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX19myACsDq8GlPxsGbae1Q4d8yNk6LnHFkAn9Ne9RdpVvzogaMoL0Z0zmyW-n65evfTUjQna8h7GSYDZFCLMNqxAosNJtTg4CRHKeY_yr6unb8iCNnyv3UY7sZC3-z8_5cMswV2vlxYIWg&response-X-Checksum-Sha1=759a7373bb4674ed90216d950e2c55912d91fa7e&response-X-Checksum-Sha2=aecadfc325735c80de0965dd31292d34d2c3ed0cb404a7adb8288d6f99a78e94
==> Pouring readline-8.0.0_1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/readline/8.0.0_1: 48 files, 1.9MB
==> Installing libxml2 dependency: sqlite
==> Downloading https://linuxbrew.bintray.com/bottles/sqlite-3.28.0_1.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ac/ac592866239307967d7bd5b8f7fb3645a422a53a147f5a2192a1136bd0edc24c?__gda__=exp=1557512583~hmac=992e04f7a342b289d8782ab0f22f641a071af03a8b01528081b61564a9276c4e&response-content-disposition=attachment%3Bfilename%3D%22sqlite-3.28.0_1.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1-Yap_VAHrQBag4t9EkHYS7_yv6lbMcg_PSfdGLPDpZp-qJM0kVJYK3BUvzwDud6lzs40LAGgYKGFuyQ64g1noO4VHUBqoc4tzerduB4l7WkzZqzxIfE8OsT6OMnHkGYqIjg_FhN0ndrA&response-X-Checksum-Sha1=226ad3c59ffff34735ac59c9c8604a047679eb83&response-X-Checksum-Sha2=ac592866239307967d7bd5b8f7fb3645a422a53a147f5a2192a1136bd0edc24c
==> Pouring sqlite-3.28.0_1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/sqlite/3.28.0_1: 13 files, 4.5MB
==> Installing libxml2 dependency: bzip2
==> Downloading https://linuxbrew.bintray.com/bottles/bzip2-1.0.6_1.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/48/48a4b520531c3d2e175bfa31731245c36cdca81c3fb739736fdcc05456d56bf5?__gda__=exp=1557512584~hmac=005eea4fc4745fcb2bbdd1b41f3c006475146ffe4d7f498d007d2e823acb12a0&response-content-disposition=attachment%3Bfilename%3D%22bzip2-1.0.6_1.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX19kTu6lZy7VhxhUBGkhTPy_B57YPNM_jAPHtcYiPqMVduvmp406wJDvoau1YmdK31FVYzKiaTtMQHuwhbenAe7UqzA6567s7z4f74Ot2L22eiscDuV7vlXdFvxqI1kbx4qKpSo_8hDDmQ&response-X-Checksum-Sha1=14b0fe38b885475524a7a1420c05aa1c87c2b12e&response-X-Checksum-Sha2=48a4b520531c3d2e175bfa31731245c36cdca81c3fb739736fdcc05456d56bf5
==> Pouring bzip2-1.0.6_1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/bzip2/1.0.6_1: 30 files, 1.5MB
==> Installing libxml2 dependency: libffi
==> Downloading https://linuxbrew.bintray.com/bottles/libffi-3.2.1.x86_64_linux.bottle.tar.gz
==> Pouring libffi-3.2.1.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libffi/3.2.1: 17 files, 362.4KB
==> Installing libxml2 dependency: python
==> Downloading https://linuxbrew.bintray.com/bottles/python-3.7.3.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/28/285c7cd71feb210d2090bd9b708ad227f810c31eb9b09478cf8cc7d2f2b9ad3a?__gda__=exp=1557512586~hmac=4c806d05be6193ac039dd05c65cd88faaa1ce3ee645ae0f6930149762d4da7fa&response-content-disposition=attachment%3Bfilename%3D%22python-3.7.3.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1-Ewx1Sob-xa4eHbljM8z85TwV76LTezpioktjr23JhGeTfvMNj9QINF_1Lf3Vtj44wPSjJZI-FIx5qD9efHeLkmQo7FAm5dZwaz0b-Akse5CX8mg6Ttx8UNMREifIZBb0BvhaUGiqtZQ&response-X-Checksum-Sha1=14fe418daa4ac9b0c65af6ecf29e113be5b4e4f7&response-X-Checksum-Sha2=285c7cd71feb210d2090bd9b708ad227f810c31eb9b09478cf8cc7d2f2b9ad3a
==> Pouring python-3.7.3.x86_64_linux.bottle.tar.gz
==> /home/linuxbrew/.linuxbrew/Cellar/python/3.7.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/home/linuxbrew/.linuxbrew/Cellar/python/3.7.3/bin --install-lib=/home/linuxbrew/.linuxbrew/lib/python3.7/site-packages --single-version-externally-managed --record=installed.txt
==> /home/linuxbrew/.linuxbrew/Cellar/python/3.7.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/home/linuxbrew/.linuxbrew/Cellar/python/3.7.3/bin --install-lib=/home/linuxbrew/.linuxbrew/lib/python3.7/site-packages --single-version-externally-managed --record=installed.txt
==> /home/linuxbrew/.linuxbrew/Cellar/python/3.7.3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/home/linuxbrew/.linuxbrew/Cellar/python/3.7.3/bin --install-lib=/home/linuxbrew/.linuxbrew/lib/python3.7/site-packages --single-version-externally-managed --record=installed.txt
==> Caveats
Python has been installed as
  /home/linuxbrew/.linuxbrew/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /home/linuxbrew/.linuxbrew/opt/python/libexec/bin

If you need Homebrew's Python 2.7 run
  brew install python@2

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /home/linuxbrew/.linuxbrew/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/python/3.7.3: 3,516 files, 65.8MB
==> Installing libxml2
==> Downloading https://linuxbrew.bintray.com/bottles/libxml2-2.9.9_2.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/7e/7ec46200f25836bc9ac6126a618038d605ffc1b57bd6415cc5a689dc1477f7e5?__gda__=exp=1557512593~hmac=832a25ead8b087c1cf1d74f91ed5de7077f7c014b94694f5ba3d42d60dba42e0&response-content-disposition=attachment%3Bfilename%3D%22libxml2-2.9.9_2.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1_BYJFg6LwLrIcL9nXLVyWM4RisgJnUEO-_6s_DMxSkM0VAauL0kzOj2h_Z-HkxPBzdcqnZgafOJmAAD2YMzO-T8qkRUKcyxDme7DcNADz92m0liVjBmi-GgLsNC3Fch8cATfj8hL1l0Q&response-X-Checksum-Sha1=69aa4d54029981c64f80d40492d39da62a54d8e7&response-X-Checksum-Sha2=7ec46200f25836bc9ac6126a618038d605ffc1b57bd6415cc5a689dc1477f7e5
==> Pouring libxml2-2.9.9_2.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/libxml2/2.9.9_2: 282 files, 12.5MB
==> Downloading https://linuxbrew.bintray.com/bottles/libxslt-1.1.33_2.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/c4/c4881b3aa600bd7e96b799a852782dff5feca9a8c376a6d72038d1c38ea98d71?__gda__=exp=1557512594~hmac=20db65994e1dd5c90cbbf764c92e2e3de94f18cde7048754c6ab01b45666f253&response-content-disposition=attachment%3Bfilename%3D%22libxslt-1.1.33_2.x86_64_linux.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1_mH_dHi8tbQNm3E_1xsEqpRJJijlHfpbOTzMZfLpM_hcejTU9R3dpSOt0w5Qe9b06wLC9tBRs0vT40WaTHXdKQqY0brBob2oEioW2xjkaWh8mPoAlD3z0z-hVmhPS7LyWhoa1vnC1udg&response-X-Checksum-Sha1=09e2ba07d5cca81c1903489939ed53fcf7e4768e&response-X-Checksum-Sha2=c4881b3aa600bd7e96b799a852782dff5feca9a8c376a6d72038d1c38ea98d71
==> Pouring libxslt-1.1.33_2.x86_64_linux.bottle.tar.gz
==> Caveats
To allow the nokogiri gem to link against this libxslt run:
  gem install nokogiri -- --with-xslt-dir=/home/linuxbrew/.linuxbrew/opt/libxslt
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/libxslt/1.1.33_2: 140 files, 3.2MB
==> Caveats
==> isl@0.18
isl@0.18 is keg-only, which means it was not symlinked into /home/linuxbrew/.linuxbrew,
because this is an alternate version of another formula.

For compilers to find isl@0.18 you may need to set:
  export LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/isl@0.18/lib"
  export CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/isl@0.18/include"

==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /home/linuxbrew/.linuxbrew/etc/openssl/certs

and run
  /home/linuxbrew/.linuxbrew/opt/openssl/bin/c_rehash
==> python
Python has been installed as
  /home/linuxbrew/.linuxbrew/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /home/linuxbrew/.linuxbrew/opt/python/libexec/bin

If you need Homebrew's Python 2.7 run
  brew install python@2

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /home/linuxbrew/.linuxbrew/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> libxslt
To allow the nokogiri gem to link against this libxslt run:
  gem install nokogiri -- --with-xslt-dir=/home/linuxbrew/.linuxbrew/opt/libxslt
+ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

+ brew --prefix gcc
/home/linuxbrew/.linuxbrew/opt/gcc
+ brew --prefix libxml2
/home/linuxbrew/.linuxbrew/opt/libxml2
+ brew --prefix libxslt
/home/linuxbrew/.linuxbrew/opt/libxslt
+ brew --prefix xz
/home/linuxbrew/.linuxbrew/opt/xz
+ brew --prefix zlib
/home/linuxbrew/.linuxbrew/opt/zlib
+ ls -la /home/linuxbrew/.linuxbrew/opt/libxml2/include
total 12
drwxr-xr-x 3 root root 4096 Jan  3 18:12 .
drwxr-xr-x 7 root root 4096 May 10 18:11 ..
drwxr-xr-x 3 root root 4096 Jan  3 18:12 libxml2
+ brew tests
==> install_bundler_gems...

==> install_bundler...

==> setup_gem_environment...

==> install_gem_setup_path...

==> install_gem...

==> Installing 'bundler' gem
==> THis is the PATH ENV from gems.rb!
==> /root/.gem/ruby/2.3.0/bin:/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin:/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/scm:/usr/bin:/bin:/usr/sbin:/sbin
==> install_args '["--no-document", "bundler", "--version", ">=2"]'...
==> Executing: '/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/gem install ["--no-document", "bundler", "--version", ">=2"]
Successfully installed bundler-2.0.1
1 gem installed
==> install_gem...

==> setup_gem_environment...

==> Installing 'pkg-config' gem
==> THis is the PATH ENV from gems.rb!
==> /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/bin:/root/.gem/ruby/2.3.0/bin:/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin:/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/scm:/usr/bin:/bin:/usr/sbin:/sbin
==> install_args '["--no-document", "pkg-config", "--version", "~> 1.1"]'...
==> Executing: '/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/gem install ["--no-document", "pkg-config", "--version", "~> 1.1"]
Successfully installed pkg-config-1.3.7
1 gem installed
==> install_gem...

==> setup_gem_environment...

==> Installing 'nokogiri' gem
==> THis is the PATH ENV from gems.rb!
==> /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/bin:/root/.gem/ruby/2.3.0/bin:/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin:/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/scm:/usr/bin:/bin:/usr/sbin:/sbin
==> This is nokogiri

Successfully installed mini_portile2-2.4.0
Building native extensions with: '--use-system-libraries=true'
This could take a while...
ERROR:  Error installing nokogiri:
	ERROR: Failed to build gem native extension.

    current directory: /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.10.3/ext/nokogiri
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -r ./siteconf20190510-10882-19jqwht.rb extconf.rb --use-system-libraries=true
checking if the C compiler accepts ... yes
Building nokogiri using system libraries.
Using pkg-config gem version 1.3.7
checking for libxml-2.0... no
checking for libxslt... no
checking for libexslt... no
ERROR: cannot discover where libxml2 is located on your system. please make sure `pkg-config` is installed.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/$(RUBY_BASE_NAME)
	--help
	--clean
	--use-system-libraries
	--with-zlib-dir
	--without-zlib-dir
	--with-zlib-include
	--without-zlib-include=${zlib-dir}/include
	--with-zlib-lib
	--without-zlib-lib=${zlib-dir}/lib
	--with-xml2-dir
	--without-xml2-dir
	--with-xml2-include
	--without-xml2-include=${xml2-dir}/include
	--with-xml2-lib
	--without-xml2-lib=${xml2-dir}/lib
	--with-libxml-2.0-config
	--without-libxml-2.0-config
	--with-pkg-config
	--without-pkg-config
	--with-pkg-config
	--without-pkg-config
	--with-override-variables
	--without-override-variables
	--with-xslt-dir
	--without-xslt-dir
	--with-xslt-include
	--without-xslt-include=${xslt-dir}/include
	--with-xslt-lib
	--without-xslt-lib=${xslt-dir}/lib
	--with-libxslt-config
	--without-libxslt-config
	--with-pkg-config
	--without-pkg-config
	--with-exslt-dir
	--without-exslt-dir
	--with-exslt-include
	--without-exslt-include=${exslt-dir}/include
	--with-exslt-lib
	--without-exslt-lib=${exslt-dir}/lib
	--with-libexslt-config
	--without-libexslt-config
	--with-pkg-config
	--without-pkg-config

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/nokogiri-1.10.3/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.10.3 for inspection.
Results logged to /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/nokogiri-1.10.3/gem_make.out
==> Done installing nokogiri?
==> install_args '["--no-document", "nokogiri", "-- --with-xml2-include=/home/linuxbrew/.linuxbrew/opt/libxml2/include/libxml2"]'...
==> Executing: '/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/gem install ["--no-document", "nokogiri", "-- --with-xml2-include=/home/linuxbrew/.linuxbrew/opt/libxml2/include/libxml2"]
ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: -- --with-xml2-include=/home/linuxbrew/.linuxbrew/opt/libxml2/include/libxml2
Error: failed to install the 'nokogiri' gem....
The command '/bin/sh -c /usr/docker-linux/src/install_homebrew' returned a non-zero code: 1
(Jeroen De Bruijn) #8

It actually shows the brewed gcc version in brew config, but than the brew env shows the wrong path. How can I see/check which gcc is being used to check for gzdopen?

+ brew --env
The path = /home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export CC="gcc"
export CXX="g\+\+"
export OBJC="gcc"
export OBJCXX="g\+\+"
export HOMEBREW_CC="gcc"
export HOMEBREW_CXX="g\+\+"
export MAKEFLAGS="-j4"
export CMAKE_PREFIX_PATH="/home/linuxbrew/.linuxbrew"
export HOMEBREW_GIT="git"
export ACLOCAL_PATH="/home/linuxbrew/.linuxbrew/share/aclocal"
export PATH="/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super:/usr/bin:/bin:/usr/sbin:/sbin"
+ brew config
HOMEBREW_VERSION: 2.1.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4025eadc2c3b9b71aa7029d7ddc6ede1cb88d482
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/linuxbrew-core
Core tap HEAD: da4cfe271aee788b4ea05233d2a24b171a1396bf
Core tap last commit: 14 minutes ago
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CACHE: /root/.cache/Homebrew
HOMEBREW_LOGS: /root/.cache/Homebrew/Logs
HOMEBREW_NO_AUTO_UPDATE: 1
CPU: quad-core 64-bit skylake
Homebrew Ruby: 2.3.7 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: N/A
Git: 2.17.1 => /usr/bin/git
Curl: 7.58.0 => /usr/bin/curl
Kernel: Linux 4.19.36-1-MANJARO x86_64 GNU/Linux
OS: N/A
Host glibc: 2.27
/usr/bin/gcc: 7.4.0
glibc: N/A
gcc: 5.5.0_4
xorg: N/A

(Shaun Jackman) #9

The PATH is intentionally reset. You can try setting the environment variable export HOMEBREW_NO_ENV_FILTERING=1

(Jeroen De Bruijn) #10

With that line added, the installation of the gems succeeded!
brew tests fails now (3 failed tests), see log below. That failure seems to be triggered by export HOMEBREW_NO_ENV_FILTERING=1 as it also happens when I use apt-get to install zlib1g-dev and doesn’t happen when I don’t add that line with the apt-get zlib1g-dev.

+ brew tests
==> Installing 'bundler' gem
Successfully installed bundler-2.0.1
1 gem installed
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Fetching concurrent-ruby 1.1.5
Fetching minitest 5.11.3
Fetching thread_safe 0.3.6
Installing minitest 5.11.3
Installing thread_safe 0.3.6
Installing concurrent-ruby 1.1.5
Fetching ast 2.4.0
Fetching backports 3.14.0
Installing ast 2.4.0
Using bundler 2.0.1
Fetching connection_pool 2.2.2
Fetching json 2.2.0
Installing connection_pool 2.2.2
Installing backports 3.14.0
Fetching docile 1.3.1
Installing docile 1.3.1
Installing json 2.2.0 with native extensions
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching tins 1.20.2
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching diff-lcs 1.3
Installing tins 1.20.2
Installing diff-lcs 1.3
Fetching unf_ext 0.0.7.6
Fetching hpricot 0.8.6
Installing unf_ext 0.0.7.6 with native extensions
Installing hpricot 0.8.6 with native extensions
Fetching jaro_winkler 1.5.2
Installing jaro_winkler 1.5.2 with native extensions
Fetching mime-types-data 3.2019.0331
Fetching net-http-digest_auth 1.4.1
Installing mime-types-data 3.2019.0331
Installing net-http-digest_auth 1.4.1
Fetching mini_portile2 2.4.0
Fetching ntlm-http 0.1.1
Installing mini_portile2 2.4.0
Installing ntlm-http 0.1.1
Fetching webrobots 0.1.2
Fetching mustache 1.1.0
Installing webrobots 0.1.2
Installing mustache 1.1.0
Fetching parallel 1.17.0
Fetching plist 3.5.0
Installing plist 3.5.0
Fetching rainbow 3.0.0
Installing parallel 1.17.0
Fetching rdiscount 2.2.0.1
Installing rainbow 3.0.0
Fetching rspec-support 3.8.0
Installing rdiscount 2.2.0.1 with native extensions
Installing rspec-support 3.8.0
Fetching ruby-progressbar 1.10.0
Installing ruby-progressbar 1.10.0
Fetching unicode-display_width 1.5.0
Installing unicode-display_width 1.5.0
Fetching ruby-macho 2.2.0
Installing ruby-macho 2.2.0
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching parser 2.6.3.0
Installing parser 2.6.3.0
Fetching i18n 1.6.0
Installing i18n 1.6.0
Fetching net-http-persistent 3.0.1
Installing net-http-persistent 3.0.1
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching unf 0.1.4
Installing unf 0.1.4
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Fetching mime-types 3.2.2
Installing mime-types 3.2.2
Fetching nokogiri 1.10.3
Installing nokogiri 1.10.3 with native extensions
Fetching parallel_tests 2.29.0
Installing parallel_tests 2.29.0
Fetching rspec-core 3.8.0
Installing rspec-core 3.8.0
Fetching rspec-expectations 3.8.3
Installing rspec-expectations 3.8.3
Fetching rspec-mocks 3.8.0
Installing rspec-mocks 3.8.0
Fetching rubocop 0.68.1
Installing rubocop 0.68.1
Fetching activesupport 5.2.3
Installing activesupport 5.2.3
Fetching domain_name 0.5.20180417
Installing domain_name 0.5.20180417
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching simplecov-cobertura 1.3.1
Installing simplecov-cobertura 1.3.1
Fetching rspec-retry 0.6.1
Installing rspec-retry 0.6.1
Fetching rspec-its 1.3.0
Installing rspec-its 1.3.0
Fetching rspec 3.8.0
Installing rspec 3.8.0
Fetching rubocop-performance 1.2.0
Installing rubocop-performance 1.2.0
Fetching rubocop-rspec 1.32.0
Installing rubocop-rspec 1.32.0
Fetching http-cookie 1.0.3
Installing http-cookie 1.0.3
Fetching rspec-wait 0.0.9
Installing rspec-wait 0.0.9
Fetching ronn 0.7.3
Installing ronn 0.7.3
Fetching mechanize 2.7.6
Installing mechanize 2.7.6
Bundle complete! 18 Gemfile dependencies, 57 gems now installed.
Bundled gems are installed into `./home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle`
Post-install message from i18n:

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Post-install message from rubocop:
Performance Cops will be removed from RuboCop 0.68. Use rubocop-performance gem instead.

Put this in your Gemfile.

rb
gem 'rubocop-performance'


And then execute:

sh
$ bundle install


Put this into your .rubocop.yml.

yaml
require: rubocop-performance


More information: https://github.com/rubocop-hq/rubocop-performance
Removing rubocop-performance (1.1.0)
Randomized with seed 39068
4 processes for 203 specs, ~ 50 specs per process
........................****.....................................................................................................................................................................................................................................................................................F.......F..F......................................................................................................................**.......................................*....................................................................................................................................................................*.........................................................................................................................................................................................................................................................................................................................................................*......................................................*...................**.................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) UnpackStrategy::Jar is correctly detected
     # unzip not installed.
     # ./test/unpack_strategy/shared_examples.rb:6

  2) UnpackStrategy::Jar #extract
     # unzip not installed.
     # ./test/unpack_strategy/shared_examples.rb:12

  3) brew pull fetches a patch from a GitHub commit or pull request and applies it
     # Requires network connection.
     # ./test/dev-cmd/pull_spec.rb:10

  4) brew bundle check checks if a Brewfile's dependencies are satisfied
     # Requires network connection.
     # ./test/cmd/bundle_spec.rb:5

  5) GitHub::search_issues queries GitHub issues with the passed parameters
     # Requires network connection.
     # ./test/utils/github_spec.rb:35

  6) GitHub::search_code queries GitHub code with the passed parameters
     # Requires network connection.
     # ./test/utils/github_spec.rb:7

Failures:

  1) Caveats#caveats when f.keg_only is not nil when f.lib or f.include is a directory gives command to be run when f.include is a directory
     Failure/Error: expect(caveats).to include("-I#{f.opt_include}")

       expected "formula_name is keg-only, which means it was not symlinked into /tmp/homebrew-tests-20190511-16788-77u7nt/prefix,\nbecause some reason.\n\nFor compilers to find formula_name you may need to set:\n  \n\n" to include "-I/tmp/homebrew-tests-20190511-16788-77u7nt/prefix/opt/formula_name/include"
       Diff:
       @@ -1,2 +1,6 @@
       --I/tmp/homebrew-tests-20190511-16788-77u7nt/prefix/opt/formula_name/include
       +formula_name is keg-only, which means it was not symlinked into /tmp/homebrew-tests-20190511-16788-77u7nt/prefix,
       +because some reason.
       +
       +For compilers to find formula_name you may need to set:
       +  
     # ./test/caveats_spec.rb:163:in `block (5 levels) in <top (required)>'
     # ./test/spec_helper.rb:163:in `block (2 levels) in <top (required)>'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block (2 levels) in <top (required)>'

  2) Caveats#caveats when f.keg_only is not nil when f.lib or f.include is a directory gives PKG_CONFIG_PATH when f.lib/'pkgconfig' and f.share/'pkgconfig' are directories
     Failure/Error: expect(caveats).to include("#{f.opt_lib}/pkgconfig")

       expected "formula_name is keg-only, which means it was not symlinked into /tmp/homebrew-tests-20190511-16788-77u7nt/prefix,\nbecause some reason.\n\nFor compilers to find formula_name you may need to set:\n  \n\nFor pkg-config to find formula_name you may need to set:\n  \n  \n\n" to include "/tmp/homebrew-tests-20190511-16788-77u7nt/prefix/opt/formula_name/lib/pkgconfig"
       Diff:
       @@ -1,2 +1,10 @@
       -/tmp/homebrew-tests-20190511-16788-77u7nt/prefix/opt/formula_name/lib/pkgconfig
       +formula_name is keg-only, which means it was not symlinked into /tmp/homebrew-tests-20190511-16788-77u7nt/prefix,
       +because some reason.
       +
       +For compilers to find formula_name you may need to set:
       +  
       +
       +For pkg-config to find formula_name you may need to set:
       +  
       +  
     # ./test/caveats_spec.rb:172:in `block (5 levels) in <top (required)>'
     # ./test/spec_helper.rb:163:in `block (2 levels) in <top (required)>'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block (2 levels) in <top (required)>'

  3) Caveats#caveats when f.keg_only is not nil when f.lib or f.include is a directory gives command to be run when f.lib is a directory
     Failure/Error: expect(caveats).to include("-L#{f.opt_lib}")

       expected "formula_name is keg-only, which means it was not symlinked into /tmp/homebrew-tests-20190511-16788-77u7nt/prefix,\nbecause some reason.\n\nFor compilers to find formula_name you may need to set:\n  \n\n" to include "-L/tmp/homebrew-tests-20190511-16788-77u7nt/prefix/opt/formula_name/lib"
       Diff:
       @@ -1,2 +1,6 @@
       --L/tmp/homebrew-tests-20190511-16788-77u7nt/prefix/opt/formula_name/lib
       +formula_name is keg-only, which means it was not symlinked into /tmp/homebrew-tests-20190511-16788-77u7nt/prefix,
       +because some reason.
       +
       +For compilers to find formula_name you may need to set:
       +  
     # ./test/caveats_spec.rb:158:in `block (5 levels) in <top (required)>'
     # ./test/spec_helper.rb:163:in `block (2 levels) in <top (required)>'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
     # ./vendor/bundle/ruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block (2 levels) in <top (required)>'

Finished in 16.13 seconds (files took 1.21 seconds to load)
380 examples, 3 failures, 6 pending

Failed examples:

rspec ./test/caveats_spec.rb:161 # Caveats#caveats when f.keg_only is not nil when f.lib or f.include is a directory gives command to be run when f.include is a directory
rspec ./test/caveats_spec.rb:166 # Caveats#caveats when f.keg_only is not nil when f.lib or f.include is a directory gives PKG_CONFIG_PATH when f.lib/'pkgconfig' and f.share/'pkgconfig' are directories
rspec ./test/caveats_spec.rb:156 # Caveats#caveats when f.keg_only is not nil when f.lib or f.include is a directory gives command to be run when f.lib is a directory

.......*.................................................................******....*........................................................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Language::Python#site_packages gives a different location between PyPy and Python 2
     # Python not installed.
     # ./test/language/python_spec.rb:15

  2) Language::Python#homebrew_site_packages returns the Homebrew site packages location
     # Python not installed.
     # ./test/language/python_spec.rb:21

  3) Language::Python#user_site_packages can determine user site packages location
     # Python not installed.
     # ./test/language/python_spec.rb:28

  4) Language::Python#major_minor_version returns a Version for Python 2
     # Python not installed.
     # ./test/language/python_spec.rb:8

  5) Homebrew::Diagnostic::Checks #check_access_directories
     # User is root so everything is writable.
     # ./test/diagnostic_checks_spec.rb:28

  6) brew search falls back to a GitHub tap search when no formula is found
     # Requires network connection.
     # ./test/cmd/search_spec.rb:11

Finished in 24.34 seconds (files took 1.27 seconds to load)
413 examples, 0 failures, 6 pending

.................*..................................................****................................................................................................***..........................................................................................................*.............................................................................................

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Utils::git_remote_exists? when git is available returns true when git remote exists
     # Requires network connection.
     # ./test/utils/git_spec.rb:133

  2) Pathname#ensure_writable makes a file writable and restores permissions afterwards
     # User is root so everything is writable.
     # ./test/pathname_spec.rb:122

  3) Sandbox #formula?
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:15

  4) Sandbox #test?
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:20

  5) Sandbox #allow_write
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:25

  6) Sandbox#exec fails when writing to file not specified with ##allow_write
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:33

  7) Sandbox#exec complains on failure
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:41

  8) Sandbox#exec ignores bogus Python error
     # Sandbox not implemented.
     # ./test/sandbox_spec.rb:51

  9) Utils#self.svn_remote_exists? when svn is available returns true when remote exists
     # Requires network connection.
     # ./test/utils/svn_spec.rb:35

  10) UnpackStrategy::Zip when unzip is available #extract
     # unzip not installed.
     # ./test/unpack_strategy/shared_examples.rb:12

Finished in 44.25 seconds (files took 1.23 seconds to load)
390 examples, 0 failures, 10 pending

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

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Language::Java::java_home_env returns java_home path without version if version is not specified
     # Java not installed.
     # ./test/language/java_spec.rb:24

  2) Language::Java::java_home returns valid JAVA_HOME if version is specified
     # Java not installed.
     # ./test/language/java_spec.rb:7

  3) Language::Java::java_home returns valid JAVA_HOME if version is not specified
     # Java not installed.
     # ./test/language/java_spec.rb:12

  4) Language::Java::overridable_java_home_env returns java_home path without version if version is not specified
     # Java not installed.
     # ./test/language/java_spec.rb:36

  5) UnpackStrategy::Subversion #extract
     # subversion not installed.
     # ./test/unpack_strategy/shared_examples.rb:12

  6) UnpackStrategy::Subversion is correctly detected
     # subversion not installed.
     # ./test/unpack_strategy/shared_examples.rb:6

  7) UnpackStrategy::Subversion when the directory name contains an '@' symbol #extract
     # subversion not installed.
     # ./test/unpack_strategy/shared_examples.rb:12

Finished in 49.69 seconds (files took 1.24 seconds to load)
476 examples, 0 failures, 7 pending

Tests Failed

1659 examples, 3 failures, 29 pendings

Took 51 seconds
The command '/bin/sh -c /usr/docker-linux/src/install_homebrew' returned a non-zero code: 1
(Shaun Jackman) #11

I’m not sure why these tests are failing, but if you’re able to fix it, a PR would be most welcome.