[MacRuby] #857: ld: duplicate symbol _vm_ivar_get
#857: ld: duplicate symbol _vm_ivar_get ----------------------------------------+----------------------------------- Reporter: pontus.stromdahl@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: macrubyc duplicate symbol ----------------------------------------+----------------------------------- I tried the sample from the manpage for macrubyc and got this link error. {{{ pontus> echo "def t1; 21; end" > t1.rb pontus> echo "def t2; 21; end" > t2.rb pontus> echo "require 't1'; require 't2'; p t1+t2" > test.rb pontus> macrubyc test.rb t1.rb t2.rb -o test unknown: warning: Insecure world writable dir /usr/local in PATH, mode 040777 ld: duplicate symbol _vm_ivar_get in t1.o and ./test.o collect2: ld returned 1 exit status Error when executing `/usr/bin/g++ -o "test" -arch x86_64 -lobjc -licucore -lauto -framework Foundation -L/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib -lmacruby "/var/folders/bh/bhgttgWwHdaY7XEJL3VWDE+++TI/-Tmp-/main-40135.o" "./test.o" "t1.o" "t2.o"' }}} the .o files where generated fine {{{ pontus> ls t1.o t1.rb t2.o t2.rb test.o test.rb }}} used latest commit {{{ pontus> git log -1 commit 12b64e1564524cc1652ea77d798e6ab48c0892fe Author: lsansonetti@apple.com <lsansonetti@apple.com@23306eb0-4c56-4727 -a40e-e92c0eb68959> Date: Tue Aug 17 03:26:35 2010 +0000 when killing the main thread, just exit the program (patch from watson1978 at gmail.co git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4431 23306eb0-4c56 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/857> MacRuby <http://macruby.org/>
#857: ld: duplicate symbol _vm_ivar_get ----------------------------------------+----------------------------------- Reporter: pontus.stromdahl@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: macrubyc duplicate symbol ----------------------------------------+----------------------------------- Comment(by pontus.stromdahl@…): tried this, which makes sense require/dependency wise. It works fine as you can see. I guess the manpage should be fixed? {{{ pontus> macrubyc test.rb t1.rb t2.rb -o test unknown: warning: Insecure world writable dir /usr/local in PATH, mode 040777 ld: duplicate symbol _vm_ivar_get in t1.o and ./test.o collect2: ld returned 1 exit status Error when executing `/usr/bin/g++ -o "test" -arch x86_64 -lobjc -licucore -lauto -framework Foundation -L/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib -lmacruby "/var/folders/bh/bhgttgWwHdaY7XEJL3VWDE+++TI/-Tmp-/main-77259.o" "./test.o" "t1.o" "t2.o"' pontus> ls t1.o t1.rb t2.o t2.rb test.o test.rb pontus> '''macrubyc test.o -o test''' unknown: warning: Insecure world writable dir /usr/local in PATH, mode 040777 pontus> ls t1.o t1.rb t2.o t2.rb test test.o test.rb pontus> ./test 42 pontus> rm *.o pontus> ls t1.rb t2.rb test test.rb pontus> ./test 42 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/857#comment:2> MacRuby <http://macruby.org/>
#857: ld: duplicate symbol _vm_ivar_get ----------------------------------------+----------------------------------- Reporter: pontus.stromdahl@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: macrubyc duplicate symbol ----------------------------------------+----------------------------------- Comment(by lsansonetti@…): I reproduce the problem and will have a look. However, your second example isn't what you probably want, since only the test.rb file gets compiled (and t1 and t2 will be loaded from their Ruby source files). -- Ticket URL: <http://www.macruby.org/trac/ticket/857#comment:3> MacRuby <http://macruby.org/>
#857: ld: duplicate symbol _vm_ivar_get ----------------------------------------+----------------------------------- Reporter: pontus.stromdahl@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: macrubyc duplicate symbol ----------------------------------------+----------------------------------- Comment(by pontus.stromdahl@…): you're right, of course. I want the whole thing compiled and then linked. If you need anything tested let me know. cheers, Pontus -- Ticket URL: <http://www.macruby.org/trac/ticket/857#comment:6> MacRuby <http://macruby.org/>
#857: ld: duplicate symbol _vm_ivar_get ----------------------------------------+----------------------------------- Reporter: pontus.stromdahl@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: macrubyc duplicate symbol | ----------------------------------------+----------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: Should be fixed in r4436. -- Ticket URL: <http://www.macruby.org/trac/ticket/857#comment:7> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby