{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/6116","repository_url":"https://api.github.com/repos/dotnet/coreclr","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/6116/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/6116/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/6116/events","html_url":"https://github.com/dotnet/coreclr/issues/6116","id":163756546,"number":6116,"title":"Incorrect FreeBSD requirements/unable to build coreclr","user":{"login":"fzzzt","id":1500571,"avatar_url":"https://avatars.githubusercontent.com/u/1500571?v=3","gravatar_id":"","url":"https://api.github.com/users/fzzzt","html_url":"https://github.com/fzzzt","followers_url":"https://api.github.com/users/fzzzt/followers","following_url":"https://api.github.com/users/fzzzt/following{/other_user}","gists_url":"https://api.github.com/users/fzzzt/gists{/gist_id}","starred_url":"https://api.github.com/users/fzzzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzzzt/subscriptions","organizations_url":"https://api.github.com/users/fzzzt/orgs","repos_url":"https://api.github.com/users/fzzzt/repos","events_url":"https://api.github.com/users/fzzzt/events{/privacy}","received_events_url":"https://api.github.com/users/fzzzt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-05T01:19:07Z","updated_at":"2016-07-05T14:54:53Z","closed_at":"2016-07-05T14:54:53Z","body":"Since there's no port/pkg/runtime download I could find I decided to try building it. Following along with coreclr/Documentation/building/freebsd-instructions.md, I didn't get very far:\r\n```\r\n# ./build.sh\r\nCommencing CoreCLR Repo build\r\nUnknown CPU amd64 detected, configuring as if for x64\r\nSetting up directories for build\r\nChecking prerequisites...\r\nLaying out dynamically generated files consumed by the build system\r\nLaying out dynamically generated Event Logging Test files\r\n./build.sh: line 107: python: command not found\r\n```\r\nPython should be added to the list in the documentation.\r\n```\r\n# pkg install -y python # 2.7.11\r\n[ ... ]\r\n# ./build.sh\r\nCommencing CoreCLR Repo build\r\nUnknown CPU amd64 detected, configuring as if for x64\r\nSetting up directories for build\r\nChecking prerequisites...\r\nLaying out dynamically generated files consumed by the build system\r\nLaying out dynamically generated Event Logging Test files\r\nGenerating Event Logging Tests\r\nCleaning the temp folder of dynamically generated Event Logging files\r\nUpdating /root/git/coreclr/bin/obj/FreeBSD.x64.Debug/Generated/eventprovider with /root/git/coreclr/bin/obj/FreeBSD.x64.Debug/Generated/eventprovider_new\r\nCommencing build of native components for FreeBSD.x64.Debug in /root/git/coreclr/bin/obj/FreeBSD.x64.Debug\r\nInvoking \"/root/git/coreclr/src/pal/tools/gen-buildsys-clang.sh\" \"/root/git/coreclr\" 3 5 x64 Debug  Include_Tests\r\nIncluding tests directory in build.\r\nUnable to locate llvm-ar\r\nFailed to generate native component build project!\r\n# find / -name llvm-ar\r\n/usr/local/llvm37/bin/llvm-ar\r\n# rehash\r\n# ./build.sh\r\n[ same error ]\r\n# setenv PATH /usr/local/llvm37/bin:${PATH}\r\n# ./build.sh\r\n[ ... ]\r\nScanning dependencies of target tracepointprovider\r\n[  0%] Generating exports file /root/git/coreclr/bin/obj/FreeBSD.x64.Debug/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest2.exports\r\n[  1%] Generating exports file /root/git/coreclr/bin/obj/FreeBSD.x64.Debug/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/dlltest1.exports\r\n[  1%] Building CXX object src/pal/src/CMakeFiles/tracepointprovider.dir/misc/tracepointprovider.cpp.o\r\n[  1%] Built target dlltest2_exports\r\nclang++: error: unknown argument: '-fstack-protector-strong'\r\n--- src/pal/src/CMakeFiles/tracepointprovider.dir/misc/tracepointprovider.cpp.o ---\r\n*** [src/pal/src/CMakeFiles/tracepointprovider.dir/misc/tracepointprovider.cpp.o] Error code 1\r\n```\r\nI really hope the runtime doesn't require Python. That would be unfortunate (and weird, or at least unexpected). Google seems to think that fstack-protector-strong is gcc-specific, but I haven't touched c++ in over 10 years so I won't pretend to know much about that.\r\n\r\nThis is on FreeBSD 10.3/amd64 with clang 3.4.1, running in Hyper-V on my Win8.1 PC."},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/230502345","html_url":"https://github.com/dotnet/coreclr/issues/6116#issuecomment-230502345","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/6116","id":230502345,"user":{"login":"fzzzt","id":1500571,"avatar_url":"https://avatars.githubusercontent.com/u/1500571?v=3","gravatar_id":"","url":"https://api.github.com/users/fzzzt","html_url":"https://github.com/fzzzt","followers_url":"https://api.github.com/users/fzzzt/followers","following_url":"https://api.github.com/users/fzzzt/following{/other_user}","gists_url":"https://api.github.com/users/fzzzt/gists{/gist_id}","starred_url":"https://api.github.com/users/fzzzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzzzt/subscriptions","organizations_url":"https://api.github.com/users/fzzzt/orgs","repos_url":"https://api.github.com/users/fzzzt/repos","events_url":"https://api.github.com/users/fzzzt/events{/privacy}","received_events_url":"https://api.github.com/users/fzzzt/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T14:54:53Z","updated_at":"2016-07-05T14:54:53Z","body":"You're right, building with the correct version worked. For some reason putting llvm37 in the path first didn't make my shell use the new one, even after a rehash. build.sh worked after a reboot, but didn't create libcoreclrpal.so. Both corerun and libcoreclr.so were created. Building corefx didn't work:\r\n\r\n# ./build.sh native\r\n[ ... ]\r\n[  6%] Linking CXX shared library System.IO.Compression.Native.so\r\n/root/corefx/src/Native/System.Native/pal_errno.cpp:173:14: error: use of undeclared identifier 'ENODATA'\r\n        case ENODATA:\r\n             ^\r\n/root/corefx/src/Native/System.Native/pal_errno.cpp:352:20: error: use of undeclared identifier 'ENODATA'\r\n            return ENODATA;\r\n                   ^\r\n2 errors generated.\r\n\r\ngit should also be listed as a dependency, now that I think about it.\r\n\r\nI'm giving up at this point, it's requiring more time than I have to spare. I thought I would be coding by now. I hope the effort progresses on FreeBSD, though."}}
{"actor":{"display_login":"fzzzt"}}