Faculty of Information Technology
Software Engineering Group

Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#228 closed defect (fixed)

Error while compiling from swing - error while downloading stc from swing (OpenSuSE)

Reported by: Patrik Svestka Owned by:
Priority: major Milestone: 8.0.0
Component: default Keywords:
Cc: Also affects CVS HEAD (eXept version): no

Description

Error while downloading stc from swing:

tukan@localhost:~/build/stx-jv8> rake
/home/tukan/build/stx-jv8/rakelib/dsl.rb:21: warning: constant ::Fixnum is deprecated
rake aborted!
Exception: No binary component "'stc" found: https://swing.fit.cvut.cz/jenkins/job/stx_jv/lastStableBuild/artifact/artifacts/
/home/tukan/build/stx-jv8/rakelib/extensions.rb:64:in `error'
/home/tukan/build/stx-jv8/specs/stx-jv.rbspec:30:in `download_binary_component'
/home/tukan/build/stx-jv8/specs/stx-jv.rbspec:72:in `block (2 levels) in <top (required)>'
/home/tukan/build/stx-jv8/rakelib/checkout.rake:43:in `_checkout_or_update'
/home/tukan/build/stx-jv8/rakelib/checkout.rake:72:in `block (3 levels) in <top (required)>'
Tasks: TOP => default => checkout => checkout:all => checkout:main => checkout:packages => checkout:package:stx:stc => build/stx/stc
(See full trace by running task with --trace)

Change History (7)

comment:1 Changed 6 months ago by Jan Vrany

Annoying indeed. My wild guess is that it cannot find binaries for current BUILD_TARGET.

Could you please:

  • tell me what is the output of ruby -e "puts RbConfig::CONFIG['target']"?
  • try to build using: ./build.rb -t x86_64-pc-linux-gnu checkout compile and tell me if it succeeds?

Could you also download newest config.guess and tell me what it returns:

wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess
wget http://git.savannah.gnu.org/cgit/config.git/plain/config.sub

sh ./config.guess
Last edited 6 months ago by Jan Vrany (previous) (diff)

comment:2 Changed 6 months ago by Patrik Svestka

The command:

ruby -e "puts RbConfig::CONFIG['target']"

Produces an output:

x86_64-suse-linux-gnu

The command:

./build.rb -t x86_64-pc-linux-gnu checkout compile

Does not succeed with log:

cd /home/tukan/build/stx-jv8/build/stx/stc
rake aborted!
Errno::ENOTDIR: Not a directory @ dir_chdir - /home/tukan/build/stx-jv8/build/stx/stc
/usr/lib64/ruby/2.5.0/fileutils.rb:122:in `chdir'
/usr/lib64/ruby/2.5.0/fileutils.rb:122:in `cd'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/file_utils_ext.rb:38:in `chdir'
/home/tukan/build/stx-jv8/rakelib/setup.rake:173:in `block (3 levels) in <top (required)>'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:251:in `block in execute'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:251:in `each'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:251:in `execute'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:195:in `block in invoke_with_call_chain'
/usr/lib64/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:217:in `block in invoke_prerequisites'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:215:in `each'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:215:in `invoke_prerequisites'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/usr/lib64/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:217:in `block in invoke_prerequisites'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:215:in `each'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:215:in `invoke_prerequisites'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/usr/lib64/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:217:in `block in invoke_prerequisites'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:215:in `each'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:215:in `invoke_prerequisites'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/usr/lib64/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:217:in `block in invoke_prerequisites'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:215:in `each'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:215:in `invoke_prerequisites'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
/usr/lib64/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:188:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/task.rb:181:in `invoke'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:160:in `invoke_task'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:116:in `each'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:116:in `block in top_level'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:125:in `run_with_threads'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:110:in `top_level'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:83:in `block in run'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/lib64/ruby/gems/2.5.0/gems/rake-12.3.0/lib/rake/application.rb:80:in `run'
./build.rb:69:in `run'
./build.rb:72:in `<main>'
Tasks: TOP => compile => compile:all => compile:main => compile:stc => /home/tukan/build/stx-jv8/build/stx/stc/makefile
tukan@localhost:~/build/stx-jv8> 

Running /config.guess like you have suggested:

wget http://git.savannah.gnu.org/cgit/config.git/plain/config.guess
wget http://git.savannah.gnu.org/cgit/config.git/plain/config.su
sh ./config.guess

Produces:

x86_64-pc-linux-gnu


Last edited 6 months ago by Patrik Svestka (previous) (diff)

comment:3 Changed 6 months ago by Patrik Svestka

Today I have re-run from scratch:

./build.rb -t x86_64-pc-linux-gnu checkout compile

and it works!

Compilation ends with:

warning: option abortOnSEGV is deprecated. Use --abortOnSIGSEGV.
OKay, VM runs
cd -
cd -
** Execute compile:all
** Execute compile

Tried to run the environment and it started and works correctly.

Last edited 6 months ago by Patrik Svestka (previous) (diff)

comment:4 Changed 6 months ago by Patrik Svestka

Summary: Error while compiling from swing - error while downloading stc from swingError while compiling from swing - error while downloading stc from swing (OpenSuSE)

comment:5 Changed 6 months ago by Jan Vrany

Status: newtesting

I believe commit b02b6cf48a23/stx.goodies.builder.rake fixes the problem. It'd be nice if you can update rakefiles and try again. Thanks!

comment:6 Changed 6 months ago by Patrik Svestka

Yes, that commit fixes the issue. The openSUSE tumbleweed: https://swing.fit.cvut.cz/projects/stx-jv/wiki/Documentation/BuildingStXWithRakefiles#openSUSETumbleweed now compiles.

Last edited 6 months ago by Patrik Svestka (previous) (diff)

comment:7 Changed 6 months ago by Patrik Svestka

Resolution: fixed
Status: testingclosed
Note: See TracTickets for help on using tickets.