According to gem_make.out, a check is made if the C compiler accepts unused-command-line-argument-hard-error-in-future. The response is "no", but, according to mkmf.log, the option is passed along anyway.
...
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
*** extconf.rb failed ***
...
"clang -I/usr/local/include/ruby-2.2.0/x86_64-darwin14 -I/usr/local/include/ruby-2.2.0/ruby/backward -I/usr/local/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wno-error=unused-command-line-argument-hard-error-in-future -Werror -c conftest.c"
error: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Werror,-Wunknown-warning-option]
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */
Hi @jkereako,
Thanks for asking this question. It's not clear what's going on here, but I suspect you're looking at the mkmf.log file from the check you're referencing.
Is Nokogiri not installing? If so, can you provide more information -- your entire mkmf.log as well as the entire installation output?
For the past eight years, Apple has been phasing out GCC in favor of Clang in its Xcode developer tools. A year or two ago (in Xcode 5.1?), Clang started throwing an error when handed unknown command-line arguments (read: GCC-specific arguments). #1101 appears to be where Nokogiri became aware of this fact, with the commonly accepted workaround鈥攄owngrading the error to a warning鈥攊mplemented in https://github.com/sparklemotion/nokogiri/commit/d9b63d2bf5f6094ec7b49748c170d0704c646a34. As promised over on #1101, "this will be a hard error (cannot be downgraded to a warning) in the future." The future is now! :rocket: :sparkles: It appears that with the latest version(s) of Xcode, the process of phasing out GCC is now complete, the downgrade workaround is no longer effective, and that's why @jkereako and I are seeing the error we're seeing [see below].
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.5
BuildVersion: 14F27
$ clang --version
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
$ ruby --version
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-darwin14.0]
$
$
$
$ gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/opt/rubies/ruby-2.1.4/bin/ruby -r ./siteconf20151026-32154-xjpjge.rb extconf.rb
checking if the C compiler accepts -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sasl... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
*** 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
--without-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=/opt/rubies/ruby-2.1.4/bin/ruby
--help
--clean
--use-system-libraries
/opt/rubies/ruby-2.1.4/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- mini_portile (LoadError)
from /opt/rubies/ruby-2.1.4/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from extconf.rb:395:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /Users/whit537/.gem/ruby/2.1.4/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /Users/whit537/.gem/ruby/2.1.4/extensions/x86_64-darwin-14/2.1.0-static/nokogiri-1.6.6.2/gem_make.out
$
$
$
$ cat /Users/whit537/.gem/ruby/2.1.4/extensions/x86_64-darwin-14/2.1.0-static/nokogiri-1.6.6.2/mkmf.log
"clang -o conftest -I/opt/rubies/ruby-2.1.4/include/ruby-2.1.0/x86_64-darwin14.0 -I/opt/rubies/ruby-2.1.4/include/ruby-2.1.0/ruby/backward -I/opt/rubies/ruby-2.1.4/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sasl -pipe -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sasl conftest.c -L. -L/opt/rubies/ruby-2.1.4/lib -L. -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib -fstack-protector -L/usr/local/lib -lruby-static -framework CoreFoundation -lpthread -ldl -lobjc "
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib'
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
"clang -I/opt/rubies/ruby-2.1.4/include/ruby-2.1.0/x86_64-darwin14.0 -I/opt/rubies/ruby-2.1.4/include/ruby-2.1.0/ruby/backward -I/opt/rubies/ruby-2.1.4/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sasl -pipe -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sasl -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */
"clang -I/opt/rubies/ruby-2.1.4/include/ruby-2.1.0/x86_64-darwin14.0 -I/opt/rubies/ruby-2.1.4/include/ruby-2.1.0/ruby/backward -I/opt/rubies/ruby-2.1.4/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sasl -pipe -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sasl -Wno-error=unused-command-line-argument-hard-error-in-future -Werror -c conftest.c"
error: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Werror,-Wunknown-warning-option]
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */
I suppose the question is: what unknown arguments is Nokogiri passing to clang? How do we prevent that?
I've cloned Nokogiri and am running:
$ bundle install
$ bundle exec rake
Hmm ... now I think I'm on the wrong ticket. :)
Gonna head over to #1119 ...
** Invoke default (first_time)
** Invoke test (first_time)
** Invoke compile (first_time)
** Invoke compile:x86_64-darwin14.0 (first_time)
** Invoke compile:nokogiri:x86_64-darwin14.0 (first_time)
** Invoke copy:nokogiri:x86_64-darwin14.0:2.1.4 (first_time)
** Invoke lib/nokogiri (first_time, not_needed)
** Invoke tmp/x86_64-darwin14.0/nokogiri/2.1.4/nokogiri.bundle (first_time)
** Invoke tmp/x86_64-darwin14.0/nokogiri/2.1.4/Makefile (first_time)
** Invoke tmp/x86_64-darwin14.0/nokogiri/2.1.4 (first_time, not_needed)
** Invoke ext/nokogiri/extconf.rb (first_time, not_needed)
** Execute tmp/x86_64-darwin14.0/nokogiri/2.1.4/Makefile
cd tmp/x86_64-darwin14.0/nokogiri/2.1.4
/opt/rubies/ruby-2.1.4/bin/ruby -I. ../../../../ext/nokogiri/extconf.rb --trace
checking if the C compiler accepts -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/sasl... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
- 0001-Revert-Missing-initialization-for-the-catalog-module.patch
- 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:
gem install nokogiri -- --use-system-libraries
[--with-xml2-config=/path/to/xml2-config]
[--with-xslt-config=/path/to/xslt-config]
If you are using Bundler, tell it to use the option:
bundle config build.nokogiri --use-system-libraries
bundle install
Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-apple-darwin14.1.0/ports/libxml2/2.9.2... OK
Running git apply with /Users/whit537/workbench/saxifrage/nokogiri/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch... OK
Running git apply with /Users/whit537/workbench/saxifrage/nokogiri/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch... OK
Running 'compile' for libxml2 2.9.2... ERROR, review '/Users/whit537/workbench/saxifrage/nokogiri/tmp/x86_64-darwin14.0/nokogiri/2.1.4/tmp/x86_64-apple-darwin14.1.0/ports/libxml2/2.9.2/compile.log' to see what happened. Last lines are:
========================================================================
CC xmlunicode.lo
CC xmlreader.lo
CC relaxng.lo
CC dict.lo
CC SAX2.lo
CC xmlwriter.lo
CC legacy.lo
CC chvalid.lo
CC pattern.lo
CC xmlsave.lo
CC xmlmodule.lo
CC schematron.lo
CC xzlib.lo
CCLD libxml2.la
CC xmllint.o
CCLD xmllint
clang: error: no such file or directory: '/usr/local/lib/liblzma.dylib'
make[2]: *** [xmllint] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
========================================================================
*** ../../../../ext/nokogiri/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
--without-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=../../../../ext/nokogiri
--curdir
--ruby=/opt/rubies/ruby-2.1.4/bin/ruby
--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
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/mini_portile-0.7.0.rc4/lib/mini_portile/mini_portile.rb:365:in `block in execute': Failed to complete compile task (RuntimeError)
from /Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/mini_portile-0.7.0.rc4/lib/mini_portile/mini_portile.rb:334:in `chdir'
from /Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/mini_portile-0.7.0.rc4/lib/mini_portile/mini_portile.rb:334:in `execute'
from /Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/mini_portile-0.7.0.rc4/lib/mini_portile/mini_portile.rb:108:in `compile'
from /Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/mini_portile-0.7.0.rc4/lib/mini_portile/mini_portile.rb:147:in `cook'
from ../../../../ext/nokogiri/extconf.rb:289:in `block (2 levels) in process_recipe'
from ../../../../ext/nokogiri/extconf.rb:182:in `block in chdir_for_build'
from ../../../../ext/nokogiri/extconf.rb:181:in `chdir'
from ../../../../ext/nokogiri/extconf.rb:181:in `chdir_for_build'
from ../../../../ext/nokogiri/extconf.rb:288:in `block in process_recipe'
from ../../../../ext/nokogiri/extconf.rb:187:in `tap'
from ../../../../ext/nokogiri/extconf.rb:187:in `process_recipe'
from ../../../../ext/nokogiri/extconf.rb:473:in `<main>'
rake aborted!
Command failed with status (1): [/opt/rubies/ruby-2.1.4/bin/ruby -I. ../../...]
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/file_utils.rb:66:in `block in create_shell_runner'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/file_utils.rb:57:in `call'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/file_utils.rb:57:in `sh'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-compiler-0.9.5/lib/rake/extensiontask.rb:191:in `block (2 levels) in define_compile_tasks'
/opt/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb:125:in `chdir'
/opt/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb:125:in `cd'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/file_utils_ext.rb:37:in `chdir'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-compiler-0.9.5/lib/rake/extensiontask.rb:188:in `block in define_compile_tasks'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:238:in `call'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:238:in `block in execute'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/opt/rubies/ruby-2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/opt/rubies/ruby-2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/opt/rubies/ruby-2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/opt/rubies/ruby-2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/opt/rubies/ruby-2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/opt/rubies/ruby-2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/opt/rubies/ruby-2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/opt/rubies/ruby-2.1.4/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/bin/rake:23:in `load'
/Users/whit537/workbench/saxifrage/nokogiri/vendor/bundle/ruby/2.1.0/bin/rake:23:in `<main>'
Tasks: TOP => default => test => compile => compile:x86_64-darwin14.0 => compile:nokogiri:x86_64-darwin14.0 => copy:nokogiri:x86_64-darwin14.0:2.1.4 => tmp/x86_64-darwin14.0/nokogiri/2.1.4/nokogiri.bundle => tmp/x86_64-darwin14.0/nokogiri/2.1.4/Makefile
FTR, I _think_ I resolved this by installing liblzma (using the Mac package linked there, though I had to manually link liblzma.5.dylib to liblzma.dylib in /usr/local/lib). The log line about Clang no longer downgrading the unused arguments error was a red herring. But the gem_make.out I posted above says nothing about that, but rather implicates mini_portile.
What's your full gem_make.out, @jkereako?
@whit537
It's been months since I tried building Nokogiri from source, those output files are long gone.
I ended up installing Homebrew and I leveraged it to install Nokogiri. I can't even tell you how it solved my issue because it's been so long.
@jkereako Okay. :-)
@flavorjones I suggest closing this ticket. :-)
you can try this command "xcode-select --install" to install xcode tool and then "gem install nokogiri -v '1.6.6.2' "
Most helpful comment
you can try this command "xcode-select --install" to install xcode tool and then "gem install nokogiri -v '1.6.6.2' "