{"action":"created","issue":{"url":"https://api.github.com/repos/freechipsproject/chisel3/issues/795","repository_url":"https://api.github.com/repos/freechipsproject/chisel3","labels_url":"https://api.github.com/repos/freechipsproject/chisel3/issues/795/labels{/name}","comments_url":"https://api.github.com/repos/freechipsproject/chisel3/issues/795/comments","events_url":"https://api.github.com/repos/freechipsproject/chisel3/issues/795/events","html_url":"https://github.com/freechipsproject/chisel3/issues/795","id":302269718,"node_id":"MDU6SXNzdWUzMDIyNjk3MTg=","number":795,"title":"Error linking verilator on OSX","user":{"login":"MrArna","id":19798840,"node_id":"MDQ6VXNlcjE5Nzk4ODQw","avatar_url":"https://avatars0.githubusercontent.com/u/19798840?v=4","gravatar_id":"","url":"https://api.github.com/users/MrArna","html_url":"https://github.com/MrArna","followers_url":"https://api.github.com/users/MrArna/followers","following_url":"https://api.github.com/users/MrArna/following{/other_user}","gists_url":"https://api.github.com/users/MrArna/gists{/gist_id}","starred_url":"https://api.github.com/users/MrArna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrArna/subscriptions","organizations_url":"https://api.github.com/users/MrArna/orgs","repos_url":"https://api.github.com/users/MrArna/repos","events_url":"https://api.github.com/users/MrArna/events{/privacy}","received_events_url":"https://api.github.com/users/MrArna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-05T11:46:05Z","updated_at":"2018-07-12T18:41:06Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\n\r\nI got the following error while running \"_sbt test_\" on my OSX system\r\n\r\n`clang++    TLP_sender-harness.o verilated.o verilated_vcd_c.o VTLP_sender__ALL.a    -o VTLP_sender -lm -lstdc++\r\nclang++    Adder-harness.o verilated.o verilated_vcd_c.o VAdder__ALL.a    -o VAdder -lm -lstdc++\r\nUndefined symbols for architecture x86_64:\r\n  \"vl_finish(char const*, int, char const*)\", referenced from:\r\n      VL_FINISH_MT(char const*, int, char const*) in verilated.o\r\nUndefined symbols for architecture x86_64:\r\n  \"vl_finish(char const*, int, char const*)\", referenced from:\r\n      VL_FINISH_MT(char const*, int, char const*) in verilated.o\r\nld: symbol(s) not found for architecture x86_64\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [VTLP_sender] Error 1\r\nmake: *** [VAdder] Error 1`\r\n\r\n\r\nMy workaround consisted in modifying the following line in the _verilator.cpp_ file:\r\n`#ifndef VL_USER_FINISH`\r\nwith this:\r\n`#ifdef VL_USER_FINISH`\r\n\r\nAnd everything worked well, but it's just a workaround."},"comment":{"url":"https://api.github.com/repos/freechipsproject/chisel3/issues/comments/404610641","html_url":"https://github.com/freechipsproject/chisel3/issues/795#issuecomment-404610641","issue_url":"https://api.github.com/repos/freechipsproject/chisel3/issues/795","id":404610641,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDYxMDY0MQ==","user":{"login":"jackkoenig","id":8584418,"node_id":"MDQ6VXNlcjg1ODQ0MTg=","avatar_url":"https://avatars3.githubusercontent.com/u/8584418?v=4","gravatar_id":"","url":"https://api.github.com/users/jackkoenig","html_url":"https://github.com/jackkoenig","followers_url":"https://api.github.com/users/jackkoenig/followers","following_url":"https://api.github.com/users/jackkoenig/following{/other_user}","gists_url":"https://api.github.com/users/jackkoenig/gists{/gist_id}","starred_url":"https://api.github.com/users/jackkoenig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackkoenig/subscriptions","organizations_url":"https://api.github.com/users/jackkoenig/orgs","repos_url":"https://api.github.com/users/jackkoenig/repos","events_url":"https://api.github.com/users/jackkoenig/events{/privacy}","received_events_url":"https://api.github.com/users/jackkoenig/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T18:41:06Z","updated_at":"2018-07-12T18:41:06Z","author_association":"CONTRIBUTOR","body":"I forgot to say that I **don't** see the issue in firrtl, chisel3, nor the chisel-testers, but I **do** see it in dsptools.\r\n\r\nIt's most likely do to the flag `-DVL_USER_FINISH` being passed to Verilator which indicates that you are providing your own implementation of `vl_user_finish`. This flag is provided by the `verilogToCpp` function in FIRRTL's `BackendCompilationUtilities` so if anything uses that but doesn't provide an implementation of `vl_user_finish`, one would expect exactly the error that people are seeing."}}
{"actor":{"display_login":"jackkoenig"}}