{"action":"created","issue":{"url":"https://api.github.com/repos/MagLev/maglev/issues/382","labels_url":"https://api.github.com/repos/MagLev/maglev/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/MagLev/maglev/issues/382/comments","events_url":"https://api.github.com/repos/MagLev/maglev/issues/382/events","html_url":"https://github.com/MagLev/maglev/issues/382","id":64859894,"number":382,"title":"dynamic linking issues with new parser on OSX","user":{"login":"zenspider","id":9832,"avatar_url":"https://avatars.githubusercontent.com/u/9832?v=3","gravatar_id":"","url":"https://api.github.com/users/zenspider","html_url":"https://github.com/zenspider","followers_url":"https://api.github.com/users/zenspider/followers","following_url":"https://api.github.com/users/zenspider/following{/other_user}","gists_url":"https://api.github.com/users/zenspider/gists{/gist_id}","starred_url":"https://api.github.com/users/zenspider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenspider/subscriptions","organizations_url":"https://api.github.com/users/zenspider/orgs","repos_url":"https://api.github.com/users/zenspider/repos","events_url":"https://api.github.com/users/zenspider/events{/privacy}","received_events_url":"https://api.github.com/users/zenspider/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-27T22:01:44Z","updated_at":"2015-03-27T23:54:55Z","closed_at":null,"body":"```\r\n10007 % ./bin/maglev-ruby -e 'p 1 + 1'\r\ndyld: lazy symbol binding failed: Symbol not found: __Z11MagParse903P2omPP10omObjSType\r\n  Referenced from: /Users/ryan/Work/git/maglev/gemstone/lib/libgcilnk-3.1.0.2.1-64.dylib\r\n  Expected in: flat namespace\r\n\r\ndyld: Symbol not found: __Z11MagParse903P2omPP10omObjSType\r\n  Referenced from: /Users/ryan/Work/git/maglev/gemstone/lib/libgcilnk-3.1.0.2.1-64.dylib\r\n  Expected in: flat namespace\r\n\r\n./bin/maglev-ruby: line 488: 87231 Trace/BPT trap: 5       $TOPAZ_CMD\r\n10008 % nm /Users/ryan/Work/git/maglev/gemstone/lib/libgcilnk-3.1.0.2.1-64.dylib | grep MagParse903\r\n                 U __Z11MagParse903P2omPP10omObjSType\r\n00000000001d7770 t __Z12MagParse903_P2omPP10omObjSType\r\n```\r\n\r\nSo, `__Z12MagParse903_P2omPP10omObjSType` is defined, but `__Z11MagParse903P2omPP10omObjSType` is apparently missing. The only difference is that underscore. For declared symbol exports I have:\r\n\r\n### magparse.osx.exp:\r\n\r\n```\r\nMagParse903\r\nMagCompileError902\r\n```\r\n\r\nand for linking I am using:\r\n\r\n```\r\n/usr/local/bin/g++-4.9 -m64 -lpthread -ldl -lc -lm -o libmagparse.dylib \\\r\n  -Wl,-flat_namespace -Wl,-undefined -Wl,warning \\\r\n  -Wl,-exported_symbols_list -Wl,magparse.osx.exp \\\r\n  -Wl,-dylib -L/Users/ryan/Work/git/maglev/gemstone/lib \\\r\n  rubyast.o rubygrammar.o\r\n```\r\n\r\nAny help from @johnnyt, @AllenOtis, @krono, or @timfel would be greatly appreciated."},"comment":{"url":"https://api.github.com/repos/MagLev/maglev/issues/comments/87126200","html_url":"https://github.com/MagLev/maglev/issues/382#issuecomment-87126200","issue_url":"https://api.github.com/repos/MagLev/maglev/issues/382","id":87126200,"user":{"login":"zenspider","id":9832,"avatar_url":"https://avatars.githubusercontent.com/u/9832?v=3","gravatar_id":"","url":"https://api.github.com/users/zenspider","html_url":"https://github.com/zenspider","followers_url":"https://api.github.com/users/zenspider/followers","following_url":"https://api.github.com/users/zenspider/following{/other_user}","gists_url":"https://api.github.com/users/zenspider/gists{/gist_id}","starred_url":"https://api.github.com/users/zenspider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenspider/subscriptions","organizations_url":"https://api.github.com/users/zenspider/orgs","repos_url":"https://api.github.com/users/zenspider/repos","events_url":"https://api.github.com/users/zenspider/events{/privacy}","received_events_url":"https://api.github.com/users/zenspider/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T23:54:55Z","updated_at":"2015-03-27T23:54:55Z","body":"minimal repro with maximal visibility:\r\n\r\n```\r\n(echo set u DataCurator p swordfish gemstone maglev; echo input src/smalltalk/ruby/allprims.topaz) | env GEMSTONE_LOGDIR=/Users/ryan/Work/git/maglev/log/maglev GEMSTONE_DATADIR=/Users/ryan/Work/git/maglev/data/maglev GEMSTONE_LIB=/Users/ryan/Work/git/maglev/gemstone/lib GEMSTONE_NAME=maglev GEMSTONE_GLOBAL_DIR=/Users/ryan/Work/git/maglev $GEMSTONE/bin/topaz -l -T 200000 2>&1 \r\n```\r\n"}}