Giter Site home page Giter Site logo

Cannot compile on Arch about debase HOT 7 CLOSED

ruby-debug avatar ruby-debug commented on September 14, 2024
Cannot compile on Arch

from debase.

Comments (7)

denofevil avatar denofevil commented on September 14, 2024

I've pushed 70f4179 that appends CFLAGS instead of rewriting. Could you please verify that it compiles on your system? You can do it by running rake test, it does compilation before testing

from debase.

marcin-rzeznicki avatar marcin-rzeznicki commented on September 14, 2024

Hi @denofevil ,
Thanks for very quick response. Your patch looks good on my machine:

/home/rzeznik/git/debase rzeznik $: rake test cd ext cd - creating Makefile compiling breakpoint.c compiling context.c compiling debase_internals.c compiling locker.c linking shared-object debase_internals.so /usr/bin/ruby -I"lib:./ext:./lib" -I"/usr/lib/ruby/2.0.0" "/usr/lib/ruby/2.0.0/rake/rake_test_loader.rb" "test/test_base.rb" "test/test_breakpoints.rb" "test/test_catchpoint.rb" "test/test_load.rb" "test/test_reload_bug.rb"

Thanks

from debase.

marcin-rzeznicki avatar marcin-rzeznicki commented on September 14, 2024

@denofevil : Should I close this issue? From my POV it is completely solved.

from debase.

denofevil avatar denofevil commented on September 14, 2024

I want to push updated version to rubygems, I'll better leave this one open until that as a reminder

from debase.

marcin-rzeznicki avatar marcin-rzeznicki commented on September 14, 2024

Good idea :-) Thanks.

from debase.

t-richards avatar t-richards commented on September 14, 2024

Unfortunately, debase fails to build for me (also on Arch). Compilation succeeds, but the tests fail.

tom@foo:~/debase$ git log -1
commit 9fb1f9361f2421dd617e2810f622b62566941396
Merge: 70f4179 ea316ed
Author: Dennis Ushakov <[email protected]>
Date:   Mon Jun 10 11:26:46 2013 +0400

    Merge branch 'master' of https://github.com/denofevil/debase

tom@foo:~/debase$ rake test
cd ext
cd -
creating Makefile
compiling breakpoint.c
compiling locker.c
compiling context.c
compiling debase_internals.c
linking shared-object debase_internals.so
/usr/bin/ruby -I"lib:./ext:./lib" -I"/home/tom/.gem/ruby/2.0.0/gems/rake-10.1.0/lib" "/home/tom/.gem/ruby/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" "test/test_catchpoint.rb" "test/test_reload_bug.rb" "test/test_breakpoints.rb" "test/test_load.rb" "test/test_base.rb" 
Loaded suite /home/tom/.gem/ruby/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader
Started
....F
===============================================================================
Failure:
test_current_context(TestRubyDebug)
/home/tom/debase/test/test_base.rb:26:in `test_current_context'
     23:                  File.basename(Debugger.current_context.frame_file))
     24:     assert_raises(ArgumentError) {Debugger.current_context.frame_file(1, 2)}
     25:     assert_raises(ArgumentError) {Debugger.current_context.frame_file(15)}
  => 26:     assert_equal(1, Debugger.current_context.stack_size)
     27:     assert_equal(TestRubyDebug, Debugger.current_context.frame_class)
     28:     assert_equal(false, Debugger.current_context.dead?, 'Not dead yet!')
     29:   ensure
<1> expected but was
<2>

diff:
? 1
? 2
===============================================================================
...

Finished in 0.0160199 seconds.

8 tests, 38 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
87.5% passed

499.38 tests/s, 2372.05 assertions/s
rake aborted!
Command failed with status (1): [ruby -I"lib:./ext:./lib" -I"/home/tom/.gem/ruby/2.0.0/gems/rake-10.1.0/lib" "/home/tom/.gem/ruby/2.0.0/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" "test/test_catchpoint.rb" "test/test_reload_bug.rb" "test/test_breakpoints.rb" "test/test_load.rb" "test/test_base.rb" ]

Tasks: TOP => test
(See full trace by running task with --trace)

I tried installing v0.0.4 via rubygems, but it has the same issue after fixing the CFLAGS problem. Any suggestions?

from debase.

denofevil avatar denofevil commented on September 14, 2024

Tests are broken for quite a while, but compilation is ok now

from debase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.