{"action":"closed","issue":{"url":"https://api.github.com/repos/gnustep/libobjc2/issues/47","repository_url":"https://api.github.com/repos/gnustep/libobjc2","labels_url":"https://api.github.com/repos/gnustep/libobjc2/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/gnustep/libobjc2/issues/47/comments","events_url":"https://api.github.com/repos/gnustep/libobjc2/issues/47/events","html_url":"https://github.com/gnustep/libobjc2/issues/47","id":278782163,"node_id":"MDU6SXNzdWUyNzg3ODIxNjM=","number":47,"title":"Can't be build on Cygwin x86","user":{"login":"CNAmira","id":4312700,"node_id":"MDQ6VXNlcjQzMTI3MDA=","avatar_url":"https://avatars2.githubusercontent.com/u/4312700?v=4","gravatar_id":"","url":"https://api.github.com/users/CNAmira","html_url":"https://github.com/CNAmira","followers_url":"https://api.github.com/users/CNAmira/followers","following_url":"https://api.github.com/users/CNAmira/following{/other_user}","gists_url":"https://api.github.com/users/CNAmira/gists{/gist_id}","starred_url":"https://api.github.com/users/CNAmira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CNAmira/subscriptions","organizations_url":"https://api.github.com/users/CNAmira/orgs","repos_url":"https://api.github.com/users/CNAmira/repos","events_url":"https://api.github.com/users/CNAmira/events{/privacy}","received_events_url":"https://api.github.com/users/CNAmira/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"davidchisnall","id":404454,"node_id":"MDQ6VXNlcjQwNDQ1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/404454?v=4","gravatar_id":"","url":"https://api.github.com/users/davidchisnall","html_url":"https://github.com/davidchisnall","followers_url":"https://api.github.com/users/davidchisnall/followers","following_url":"https://api.github.com/users/davidchisnall/following{/other_user}","gists_url":"https://api.github.com/users/davidchisnall/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchisnall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchisnall/subscriptions","organizations_url":"https://api.github.com/users/davidchisnall/orgs","repos_url":"https://api.github.com/users/davidchisnall/repos","events_url":"https://api.github.com/users/davidchisnall/events{/privacy}","received_events_url":"https://api.github.com/users/davidchisnall/received_events","type":"User","site_admin":false},"assignees":[{"login":"davidchisnall","id":404454,"node_id":"MDQ6VXNlcjQwNDQ1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/404454?v=4","gravatar_id":"","url":"https://api.github.com/users/davidchisnall","html_url":"https://github.com/davidchisnall","followers_url":"https://api.github.com/users/davidchisnall/followers","following_url":"https://api.github.com/users/davidchisnall/following{/other_user}","gists_url":"https://api.github.com/users/davidchisnall/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchisnall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchisnall/subscriptions","organizations_url":"https://api.github.com/users/davidchisnall/orgs","repos_url":"https://api.github.com/users/davidchisnall/repos","events_url":"https://api.github.com/users/davidchisnall/events{/privacy}","received_events_url":"https://api.github.com/users/davidchisnall/received_events","type":"User","site_admin":false}],"milestone":null,"comments":24,"created_at":"2017-12-03T14:26:43Z","updated_at":"2019-03-29T09:19:45Z","closed_at":"2019-03-29T09:19:44Z","author_association":"NONE","body":"While I have set the CMAKE_C_COMPILER to clang, it reports that\r\n```\r\n[ 17%] Building C object CMakeFiles/objc.dir/sendmsg2.c.o\r\n[ 18%] Building C object CMakeFiles/objc.dir/statics_loader.c.o\r\n[ 18%] Building C object CMakeFiles/objc.dir/toydispatch.c.o\r\n[ 19%] Building ASM object CMakeFiles/objc.dir/block_trampolines.S.o\r\nclang-4.0: error: unsupported option '-fPIC' for target 'i686-pc-windows-cygnus'\r\nclang-4.0: error: unsupported option '-fPIC' for target 'i686-pc-windows-cygnus'\r\nmake[2]: *** [CMakeFiles/objc.dir/build.make:591: CMakeFiles/objc.dir/block_trampolines.S.o] Error 1\r\nmake[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/objc.dir/all] Error 2\r\nmake: *** [Makefile:161: all] Error 2\r\n```\r\nSo I tried to remove `-fPIC` flag from flags.cmake, but it shown a link stage error as follow\r\n```\r\n[ 27%] Linking C shared library cygobjc-4.6.dll\r\nCMakeFiles/objc.dir/properties.m.o:(.rdata+0x1d2): multiple definition of `.objc_sel_namecopy'\r\nCMakeFiles/objc.dir/associate.m.o:(.rdata+0xa0): first defined here\r\n/usr/lib/gcc/i686-pc-cygwin/6.4.0/../../../../i686-pc-cygwin/bin/ld: Cannot export objc_msgSend: symbol not defined\r\n/usr/lib/gcc/i686-pc-cygwin/6.4.0/../../../../i686-pc-cygwin/bin/ld: Cannot export objc_msgSend_fpret: symbol not found\r\n/usr/lib/gcc/i686-pc-cygwin/6.4.0/../../../../i686-pc-cygwin/bin/ld: Cannot export objc_msgSend_stret: symbol not found\r\n/usr/lib/gcc/i686-pc-cygwin/6.4.0/../../../../i686-pc-cygwin/bin/ld: Error: 0-bit reloc in dll\r\n/usr/lib/gcc/i686-pc-cygwin/6.4.0/../../../../i686-pc-cygwin/bin/ld: Error: 0-bit reloc in dll\r\n/usr/lib/gcc/i686-pc-cygwin/6.4.0/../../../../i686-pc-cygwin/bin/ld: Error: 0-bit reloc in dll\r\nCMakeFiles/objc.dir/block_to_imp.c.o:(.text+0xaa): undefined reference to `__objc_block_trampoline_end_sret'\r\nCMakeFiles/objc.dir/block_to_imp.c.o:(.text+0xb0): undefined reference to `__objc_block_trampoline_sret'\r\nCMakeFiles/objc.dir/block_to_imp.c.o:(.text+0xc1): undefined reference to `__objc_block_trampoline_end'\r\nCMakeFiles/objc.dir/block_to_imp.c.o:(.text+0xc7): undefined reference to `__objc_block_trampoline'\r\nCMakeFiles/objc.dir/objc_msgSend.S.o:(.text+0x72): undefined reference to `slowMsgLookup'\r\nCMakeFiles/objc.dir/objc_msgSend.S.o:(.text+0x84): undefined reference to `GLOBAL_OFFSET_TABLE_'\r\nCMakeFiles/objc.dir/objc_msgSend.S.o:(.text+0x8a): undefined reference to `SmallObjectClasses'\r\nCMakeFiles/objc.dir/objc_msgSend.S.o:(.text+0x10a): undefined reference to `slowMsgLookup'\r\nCMakeFiles/objc.dir/objc_msgSend.S.o:(.text+0x11c): undefined reference to `GLOBAL_OFFSET_TABLE_'\r\nCMakeFiles/objc.dir/objc_msgSend.S.o:(.text+0x122): undefined reference to `SmallObjectClasses'\r\nCMakeFiles/objc.dir/objc_msgSend.S.o:(.text+0x1a2): undefined reference to `slowMsgLookup'\r\nCMakeFiles/objc.dir/objc_msgSend.S.o:(.text+0x1b4): undefined reference to `GLOBAL_OFFSET_TABLE_'\r\nCMakeFiles/objc.dir/objc_msgSend.S.o:(.text+0x1ba): undefined reference to `SmallObjectClasses'\r\nCMakeFiles/objc.dir/Protocol2.m.o:(.text+0xd3): undefined reference to `_imp____objc_exec_class'\r\nCMakeFiles/objc.dir/arc.m.o:(.text+0x372): undefined reference to `objc_msgSend'\r\nCMakeFiles/objc.dir/arc.m.o:(.text+0x582): undefined reference to `objc_msgSend'\r\nCMakeFiles/objc.dir/arc.m.o:(.text+0x8e1): undefined reference to `objc_msgSend'\r\nCMakeFiles/objc.dir/arc.m.o:(.text+0x8fe): undefined reference to `objc_msgSend'\r\nCMakeFiles/objc.dir/arc.m.o:(.text+0xb60): undefined reference to `objc_msgSend'\r\nCMakeFiles/objc.dir/arc.m.o:(.text+0x2553): undefined reference to `_imp____objc_exec_class'\r\nCMakeFiles/objc.dir/associate.m.o:(.text+0x2ec): undefined reference to `objc_msgSend'\r\nCMakeFiles/objc.dir/associate.m.o:(.text+0x1023): undefined reference to `_imp____objc_exec_class'\r\nCMakeFiles/objc.dir/properties.m.o:(.text+0x26a): undefined reference to `objc_msgSend'\r\nCMakeFiles/objc.dir/properties.m.o:(.text+0x299): undefined reference to `objc_msgSend'\r\nCMakeFiles/objc.dir/properties.m.o:(.text+0x3f0): undefined reference to `objc_msgSend'\r\nCMakeFiles/objc.dir/properties.m.o:(.text+0x4e8): undefined reference to `objc_msgSend'\r\nCMakeFiles/objc.dir/properties.m.o:(.text+0x1f33): undefined reference to `_imp____objc_exec_class'\r\ncollect2: error: ld returned 1 exit status\r\nclang-4.0: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)\r\nmake[2]: *** [CMakeFiles/objc.dir/build.make:859: cygobjc-4.6.dll] Error 1\r\nmake[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/objc.dir/all] Error 2\r\nmake: *** [Makefile:161: all] Error 2\r\n```"}}
{"actor":{"display_login":"davidchisnall"}}