Skip to content
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

Rubinius fails to build on Ubuntu 18.04 in GitHub Actions #3828

Closed
1 task done
eregon opened this issue Jan 9, 2020 · 6 comments
Closed
1 task done

Rubinius fails to build on Ubuntu 18.04 in GitHub Actions #3828

eregon opened this issue Jan 9, 2020 · 6 comments

Comments

@eregon
Copy link
Contributor

eregon commented Jan 9, 2020

  1. What command did you run?

I ran ./build.sh --prefix=~/.rubies/rbx-4.12
Full output and commands at https://github.com/eregon/ruby-install-builder/runs/380326221

  1. What behavior did you expect?

I expected it builds sucessfully.

  1. What behavior did you get instead?

It fails with:

...
3: CC machine/util/timing.c
3: CC machine/util/utf8.c
3: CC machine/util/vsnprintf.c
3: CXX machine/vm.cpp
3: CXX machine/vm_thread_state.cpp
Build time: 382.5293304 seconds
1: LD machine/vm
GEN codedb/platform.conf
rake aborted!
Don't know how to build task '' (see --tasks)

Tasks: TOP => default => spec => build => build:build => core:build => codedb:extensions
(See full trace by running task with --trace)
##[error]Process completed with exit code 1.
  1. What version of Rubinius?

4.12

  1. What version of operating system?

Ubuntu 18.04

  1. How did you build your version of Rubinius?
  • I built manually from a tarball.

It should be easy to run this workflow to reproduce:

on: [push]
jobs:
  build:
    if: true
    strategy:
      matrix:
        os: [ ubuntu-18.04 ]
        ruby: [ rbx-4.12 ]
    runs-on: ${{ matrix.os }}
    steps:
    - run: sudo apt-get update
    - run: sudo apt-get install ruby clang llvm

    - run: wget 'https://github.com/rubinius/rubinius/releases/download/v4.12/rubinius-4.12.tar.bz2'
    - run: tar xf rubinius-4.12.tar.bz2
    - run: ./build.sh --prefix=~/.rubies/${{ matrix.ruby }}
      working-directory: rubinius-4.12

    - name: Install Bundler if needed
      run: |
        if [ ! -e ~/.rubies/${{ matrix.ruby }}/bin/bundle ]; then
          export PATH="$HOME/.rubies/${{ matrix.ruby }}/bin:$PATH"
          gem install bundler -v '~> 1' --no-document
        fi
    - name: Basic test
      run: ~/.rubies/${{ matrix.ruby }}/bin/ruby --version
    - name: OpenSSL test
      run: ~/.rubies/${{ matrix.ruby }}/bin/ruby -ropen-uri -e 'puts open("https://rubygems.org/") { |f| f.read(2014) }'

Already-built versions for Ubuntu 18.04 might help here, although different system library versions might be problematic.
I noticed there are builds for 16.04 and 14.04 but not for 18.04.

@brixen
Copy link
Member

brixen commented Jan 19, 2020

@eregon I fixed some build issues on 18.04 so that building from a clone will work. I still need to fix building from a release tarball.

@brixen
Copy link
Member

brixen commented Jan 19, 2020

@eregon BTW, thanks for sharing the workflow, I should probably switch over to Actions from Travis.

@eregon
Copy link
Contributor Author

eregon commented Jan 25, 2020

The build seems to go further with 4.13, either building from the tarball or a git checkout, but eventually it hangs:
https://github.com/eregon/ruby-install-builder/runs/408608416

...
Sat, 25 Jan 2020 13:02:00 GMT Build time: 34.737315621 seconds
Sat, 25 Jan 2020 13:02:00 GMT 1: LD machine/test/runner
Sat, 25 Jan 2020 13:02:07 GMT Running 633 tests.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................OK!
Sat, 25 Jan 2020 13:02:07 GMT bin/mspec:10: warning: Insecure world writable dir /home/runner in PATH, mode 040777
Sat, 25 Jan 2020 13:02:07 GMT rubinius 4.13 (10.0 806f3be4 2020-01-20 6.0.1) [x86_64-linux-gnu]
Sat, 25 Jan 2020 13:56:51 GMT ##[error]The operation was canceled.

From bin/mspec:10: warning: Insecure world writable dir /home/runner in PATH, mode 040777 it looks like it hangs when starting specs, or they take a really long time (>50min)?

Is there a way to disable running tests/specs and just build / install?

@eregon
Copy link
Contributor Author

eregon commented Jan 25, 2020

OK, looking at build.sh and Makefile, I should be able to just do ./configure && make && make install. I'll try that.

@eregon
Copy link
Contributor Author

eregon commented Jan 25, 2020

It builds fine with ./configure && make && make install on Ubuntu 16.04 and 18.04.

EDIT: macOS-related stuff moved to #3830

@eregon
Copy link
Contributor Author

eregon commented Jan 25, 2020

I moved the macOS-related SEGv to a separate issue:
#3830

This issue can be closed, it builds fine on Ubuntu now with ./configure && make && make install.

@eregon eregon closed this as completed Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants