{"action":"closed","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/1214","labels_url":"https://api.github.com/repos/manastech/crystal/issues/1214/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/1214/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/1214/events","html_url":"https://github.com/manastech/crystal/issues/1214","id":101493487,"number":1214,"title":"undefined reference errors","user":{"login":"phortx","id":107634,"avatar_url":"https://avatars.githubusercontent.com/u/107634?v=3","gravatar_id":"","url":"https://api.github.com/users/phortx","html_url":"https://github.com/phortx","followers_url":"https://api.github.com/users/phortx/followers","following_url":"https://api.github.com/users/phortx/following{/other_user}","gists_url":"https://api.github.com/users/phortx/gists{/gist_id}","starred_url":"https://api.github.com/users/phortx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phortx/subscriptions","organizations_url":"https://api.github.com/users/phortx/orgs","repos_url":"https://api.github.com/users/phortx/repos","events_url":"https://api.github.com/users/phortx/events{/privacy}","received_events_url":"https://api.github.com/users/phortx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-08-17T19:31:38Z","updated_at":"2015-09-02T09:26:53Z","closed_at":"2015-09-02T09:26:53Z","body":"I'm getting this for weeks now. Didn't had much time to investigate. Now I had, but couldn't find any solution. All required libraries are installed.\r\n\r\n```\r\n> make\r\nCRYSTAL_CONFIG_PATH=`pwd`/src ./bin/crystal build  -o .build/crystal src/compiler/crystal.cr\r\nmake  22.61s user 14.41s system 276% cpu 13.398 total\r\n\r\n> make spec\r\n./bin/crystal build  -o .build/all_spec spec/all_spec.cr\r\nUsing compiled compiler at .build/crystal\r\n/home/benny/workspaces/github/crystal/.crystal/home/benny/workspaces/github/crystal/src/ecr/process.cr/main.o: In function `*Fiber::new<&( -> Void)>:Fiber':\r\nmain_module:(.text+0x1042): undefined reference to `co_set_data'\r\n/home/benny/workspaces/github/crystal/.crystal/home/benny/workspaces/github/crystal/src/ecr/process.cr/main.o: In function `*Fiber#resume<Fiber>:Void':\r\nmain_module:(.text+0x1180): undefined reference to `co_get_data'\r\n/home/benny/workspaces/github/crystal/.crystal/home/benny/workspaces/github/crystal/src/ecr/process.cr/main.o: In function `*FileDescriptorIO#unbuffered_write<FileDescriptorIO, Slice(UInt8), Int32>:Int32':\r\nmain_module:(.text+0x1666): undefined reference to `co_get_data'\r\n/home/benny/workspaces/github/crystal/.crystal/home/benny/workspaces/github/crystal/src/ecr/process.cr/main.o: In function `~fun_literal_9':\r\nmain_module:(.text+0x1911): undefined reference to `co_get_data'\r\n/home/benny/workspaces/github/crystal/.crystal/home/benny/workspaces/github/crystal/src/ecr/process.cr/main.o: In function `main':\r\nmain_module:(.text+0x2bf9): undefined reference to `GC_get_push_other_roots'\r\nmain_module:(.text+0x2c17): undefined reference to `GC_set_push_other_roots'\r\nmain_module:(.text+0x2c1c): undefined reference to `co_thread_init'\r\nmain_module:(.text+0x2cce): undefined reference to `co_set_data'\r\n/home/benny/workspaces/github/crystal/.crystal/home/benny/workspaces/github/crystal/src/ecr/process.cr/main.o: In function `*File@BufferedIOMixin#close<File>:(Nil | Void)':\r\nmain_module:(.text+0x5859): undefined reference to `co_get_data'\r\n/home/benny/workspaces/github/crystal/.crystal/home/benny/workspaces/github/crystal/src/ecr/process.cr/main.o: In function `*File@FileDescriptorIO#unbuffered_read<File, Slice(UInt8), Int32>:Int64':\r\nmain_module:(.text+0x5bb5): undefined reference to `co_get_data'\r\ncollect2: error: ld returned 1 exit status\r\nError: execution of command failed with code: 1: `cc -o /home/benny/workspaces/github/crystal/.crystal/crystal-run-macro-run-_home_benny_workspaces_github_crystal_src_ecr_process.cr.tmp \"/home/benny/workspaces/github/crystal/.crystal/home/benny/workspaces/github/crystal/src/ecr/process.cr/main.o\"   -levent -lrt -lpcl -lpcre -lgc -lpthread -lunwind`\r\nMakefile:21: recipe for target '.build/all_spec' failed\r\nmake: *** [.build/all_spec] Error 3\r\n\r\n> cat /etc/issue\r\nUbuntu 15.04\r\n\r\n> aptitude search libbsd | grep -e '^i'\r\ni   libbsd-dev                      - utility functions from BSD systems - devel\r\ni   libbsd0                         - utility functions from BSD systems - share\r\n\r\n> aptitude search libedit | grep -e '^i'   \r\ni   libedit-dev                     - BSD editline and history libraries (develo\r\ni   libedit2                        - BSD editline and history libraries\r\n\r\n> aptitude search libevent | grep -e '^i'         \r\ni   libevent-2.0-5                  - Asynchronous event notification library   \r\ni   libevent-core-2.0-5             - Asynchronous event notification library (c\r\ni   libevent-dev                    - Asynchronous event notification library (d\r\ni   libevent-extra-2.0-5            - Asynchronous event notification library (e\r\ni   libevent-openssl-2.0-5          - Asynchronous event notification library (o\r\ni   libevent-pthreads-2.0-5         - Asynchronous event notification library (p\r\ni   libeventviews4                  - event viewing library\r\n\r\n> aptitude search libgc | grep -e '^i'       \r\ni   libgc-dev                       - conservative garbage collector for C (deve\r\ni A libgc1c2                        - conservative garbage collector for C and C\r\ni A libgcc-4.8-dev                  - GCC support library (development files)   \r\ni A libgcc-4.9-dev                  - GCC support library (development files)   \r\ni   libgcc1                         - GCC support library                       \r\ni A libgcc1:i386                    - GCC support library                       \r\ni   libgck-1-0                      - Glib wrapper library for PKCS#11 - runtime\r\ni   libgconf-2-4                    - GNOME configuration database system (share\r\ni   libgconf2-4                     - GNOME configuration database system (dummy\r\ni A libgconfmm-2.6-1c2              - C++ wrappers for GConf (shared library)   \r\ni   libgcr-3-common                 - Library for Crypto UI related tasks - comm\r\ni   libgcr-base-3-1                 - Library for Crypto related tasks          \r\ni   libgcr-ui-3-1                   - Library for Crypto UI related tasks       \r\ni   libgcrypt20                     - LGPL Crypto library - runtime library\r\n\r\n> aptitude search libpcl1 | grep -e '^i'     \r\ni   libpcl1                         - Portable Coroutine Library (PCL)          \r\ni   libpcl1-dev                     - Portable Coroutine Library (PCL), developm\r\ni A libpcl1.7                       - Point Cloud Library -- metapackage\r\n\r\n> aptitude search libunwind8 | grep -e '^i'       \r\ni   libunwind8                      - library to determine the call-chain of a p\r\ni   libunwind8-dev                  - library to determine the call-chain of a p\r\n\r\n> aptitude search libgmp | grep -e '^i'          \r\ni   libgmp-dev                      - Multiprecision arithmetic library develope\r\ni   libgmp10                        - Multiprecision arithmetic library         \r\ni   libgmp3-dev                     - Multiprecision arithmetic library develope\r\ni   libgmpxx4ldbl                   - Multiprecision arithmetic library (C++ bin\r\n\r\n> aptitude search libxml2 | grep -e '^i'       \r\ni   libxml2                         - GNOME XML library                         \r\ni   libxml2-dev                     - Development files for the GNOME XML librar\r\ni   libxml2-utils                   - XML utilitiesaptitude search llvm | grep -e '^i'\r\ni   libllvm3.4                      - Modular compiler and toolchain technologie\r\ni   libllvm3.5                      - Modular compiler and toolchain technologie\r\ni   libllvm3.6                      - Modular compiler and toolchain technologie\r\ni   llvm                            - Low-Level Virtual Machine (LLVM)          \r\ni A llvm-3.6                        - Modular compiler and toolchain technologie\r\ni A llvm-3.6-dev                    - Modular compiler and toolchain technologie\r\ni A llvm-3.6-runtime                - Modular compiler and toolchain technologie\r\ni   llvm-dev                        - Low-Level Virtual Machine (LLVM), librarie\r\ni   llvm-gcc                        - C front end for LLVM C/C++ compiler       \r\ni   llvm-runtime                    - Low-Level Virtual Machine (LLVM), bytecode\r\n\r\n> crystal --version\r\nCrystal 0.7.6 [eb13f75] (Thu Aug 13 21:51:12 UTC 2015)\r\n```\r\n\r\nAny ideas?"}}