-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
manageiq build on Power Linux (ppc64le) platform #19520
Comments
@seth-priya I think the only way to use .gem is to put it in cc @jrafanie since you might have other ideas |
@seth-priya First of all, it's awesome you have a possible fix for the sassc gem for powerpc. I'm not familiar with the gem but we can probably offer suggestions on how we've had upstream changes accepted. Regarding how to get manageiq to run with a custom gem that we depend on, we automatically pull in any gems you define in
|
I think number 3, the bundler.d direction with In bundler.d/Gemfile.dev.rb (the filename can be anything you want, this is just an example)
Since |
I found this sass/sassc-ruby#146 and it essentially means that the gem can be installed (on ppc64le as well) by using the below command gem install sassc -- --disable-march-tune-native $gem install sassc -- --disable-march-tune-native |
and once I have the sassc gem installed / pre-installed on the system, manageiq bundle install completes successfully as well! |
@seth-priya can you try setting this in your manageiq app's
Unfortunately, sassc isn't a direct dependency in manageiq so it feels weird to add that option here. |
@jrafanie this works, thank you, this works for me |
Thanks all for your support and patience in answering my queries, I am closing this issue and will be creating a new one to discuss about adding support for ppc64le to ManageIQ, I have the basic changes in place. Thank you!! |
The build fails while installing (or building) sassc gem if the --disable-march-tune-native flag is not set for ppc64le. More context : ManageIQ#19520
The build fails while installing (or building) sassc gem if the --disable-march-tune-native flag is not set for ppc64le. More context : ManageIQ#19520
* Add travis build for ppc64le xenial on travis supports ppc64le but has the older (9.x) version of PostgreSQL, where we need 10.x * Add flag for sassc installation on ppc64le The build fails while installing (or building) sassc gem if the --disable-march-tune-native flag is not set for ppc64le. More context : ManageIQ#19520 * Add cxxflags for unf_ext gem installation on ppc64le Installation of unf_ext gem < v0.0.7.4 fails on ppc64le More context: ManageIQ/manageiq-pods#460 (comment)
Creating this issue to seek some help.
The bundle install command
bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
is failing for me with the below error. I am able to successfully build sassc gem from source code after making changes in the source code from https://github.com/sass/sassc-ruby locally and the gem installs successfully. Is there a simple way to consume the locally built version in manageiq is what I am looking to understand here …
Installing sassc 2.2.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-2.6.3/bin/ruby -I /usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0 -r ./siteconf20191115-91511-13a35th.rb extconf.rb
creating Makefile
current directory: /tmp/manageiq/vendor/bundle/ruby/2.6.0/gems/sassc-2.2.1/ext
make "DESTDIR=" clean
current directory: /tmp/manageiq/vendor/bundle/ruby/2.6.0/gems/sassc-2.2.1/ext
make "DESTDIR="
compiling ./libsass/src/ast.cpp
g++: error: unrecognized command line option ‘-march=native’
make: *** [ast.o] Error 1
make failed, exit code 2
Gem files will remain installed in /tmp/manageiq/vendor/bundle/ruby/2.6.0/gems/sassc-2.2.1 for inspection.
Results logged to /tmp/manageiq/vendor/bundle/ruby/2.6.0/extensions/powerpc64le-linux/2.6.0/sassc-2.2.1/gem_make.out
An error occurred while installing sassc (2.2.1), and Bundler cannot continue.
Make sure that
gem install sassc -v '2.2.1' --source 'https://rubygems.org/'
succeeds before bundling.In Gemfile:
manageiq-ui-classic was resolved to 0.1.0, which depends on
patternfly-sass was resolved to 3.59.4, which depends on
bootstrap-sass was resolved to 3.4.1, which depends on
sassc
If I completely bypass manageiq-ui-classic (just for understanding the scope of issues on ppc64le), the bundle install command succeeds. but bundle exec rake errors out...
https://travis-ci.org/seth-priya/manageiq
Any pointers here would be of great help, thank you!!
The text was updated successfully, but these errors were encountered: