Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

embedded libtool breaks 'gem install libv8' #682

Closed
lamont-granquist opened this issue Feb 15, 2016 · 3 comments
Closed

embedded libtool breaks 'gem install libv8' #682

lamont-granquist opened this issue Feb 15, 2016 · 3 comments

Comments

@lamont-granquist
Copy link
Contributor

with embedded/bin in the path I get this:

Installing libv8 3.16.14.13 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/lamont/.rvm/gems/ruby-2.2.4/gems/libv8-3.16.14.13/ext/libv8
/Users/lamont/.rvm/rubies/ruby-2.2.4/bin/ruby -r ./siteconf20160215-7355-i8vs4r.rb extconf.rb --with-cxx=clang++
creating Makefile
Compiling v8 for x64
Using python 2.7.10
Using compiler: /usr/bin/clang++ (clang version 7.0.2)
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make[1]: *** [/Users/lamont/.rvm/gems/ruby-2.2.4/gems/libv8-3.16.14.13/vendor/v8/out/x64.release/libpreparser_lib.a] Error 1
make: *** [x64.release] Error 2

this is caused by:

% which libtool
/opt/chefdk/embedded/bin/libtool
% libtool --version
libtool (GNU libtool) 2.4.2
Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996

Copyright (C) 2011 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.

it needs to be:

% libtool -V
Apple Inc. version cctools-877.8

or else gem install libv8 picks up clang++ from the system, and libtool from chef-dk and then gets very confused...

@scotthain this is probably why all these build time deps need to be removed from chef and chef-dk omnibus projects and put into the omnibus-build-toolchain instead.

@scotthain
Copy link
Contributor

@lamont-granquist I'm all for it.

@lamont-granquist
Copy link
Contributor Author

this is also basically a dup of #313

hedgehog added a commit to hedgehog/chef-dk that referenced this issue May 10, 2017
Don't hide stuff from people.  Users are capable of making informed choices.  Trust is more easily lost than earned.
addresses issues #313 and chef-boneyard#682
@cheeseplus
Copy link
Contributor

Closing in favor of https://github.com/chef/chef-dk/issues/313

@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants