Skip to content

Some errors occurred when compiling with ondemand.spec#5056

Closed
zhangwenlong8911 wants to merge 1 commit intoOSC:masterfrom
zhangwenlong8911:master
Closed

Some errors occurred when compiling with ondemand.spec#5056
zhangwenlong8911 wants to merge 1 commit intoOSC:masterfrom
zhangwenlong8911:master

Conversation

@zhangwenlong8911
Copy link

Some errors occurred when compiling with ondemand.spec

1、+ bundle config set --global force_ruby_platform true
/var/tmp/sclCJVdy3: line 9: bundle: command not found

2、+ rake --trace -mj12 build
/var/tmp/scl5y0IqD: line 13: rake: command not found

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

current directory:
/root/rpmbuild/BUILD/ondemand-4.1.1/gems-build/gems/bigdecimal-4.0.1/ext/bigdecimal
/usr/bin/ruby -I/usr/share/rubygems extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h

4、/usr/share/gems/gems/rake-13.0.6/lib/rake/file_utils.rb:67:in `block in create_shell_runner': Command failed with status (127): [npm install --production --prefix tmp yarn...] (RuntimeError)

5、conftest.c:3:10: fatal error: sqlite3.h: No such file or directory
3 | #include <sqlite3.h>

Signed-off-by: Wenlong Zhang <zhangwenlong@loongson.cn>
BuildRequires: ondemand-nodejs = %{runtime_version_full}
BuildRequires: rsync
BuildRequires: git
BuildRequires: rubygem-bundler rubygem-rake ruby-devel npm sqlite-devel libxslt-devel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmmmm I feel like ondemand-ruby should have these things. @treydock please advise.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK so I'm thinking we just close this? Not sure how @zhangwenlong8911 encountered this error though...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OSC/ondemand-packaging#318 leads me to believe custom RPMs were being build for a new architecture but without first building ondemand-runtime.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yea that makes sense.

@johrstrom
Copy link
Contributor

Seems like we don't need this. Seems like we'd actually just need ondemand-runtime for the architecture you're trying to build for.

Thanks for your interest and attempt to fix this, but unfortunately we're going to have to close this in favor of the other solution.

@johrstrom johrstrom closed this Feb 16, 2026
@github-project-automation github-project-automation bot moved this from Awaiting Review to Merged/Closed in PR Review Pipeline Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged/Closed

Development

Successfully merging this pull request may close these issues.

3 participants