{"action":"created","issue":{"url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/851","repository_url":"https://api.github.com/repos/crosstool-ng/crosstool-ng","labels_url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/851/labels{/name}","comments_url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/851/comments","events_url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/851/events","html_url":"https://github.com/crosstool-ng/crosstool-ng/issues/851","id":268242458,"number":851,"title":"Canadian x86_64-apple-darwin15 undefined symbols`_fread_unlocked`","user":{"login":"mobileoverlord","id":1391351,"avatar_url":"https://avatars3.githubusercontent.com/u/1391351?v=4","gravatar_id":"","url":"https://api.github.com/users/mobileoverlord","html_url":"https://github.com/mobileoverlord","followers_url":"https://api.github.com/users/mobileoverlord/followers","following_url":"https://api.github.com/users/mobileoverlord/following{/other_user}","gists_url":"https://api.github.com/users/mobileoverlord/gists{/gist_id}","starred_url":"https://api.github.com/users/mobileoverlord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobileoverlord/subscriptions","organizations_url":"https://api.github.com/users/mobileoverlord/orgs","repos_url":"https://api.github.com/users/mobileoverlord/repos","events_url":"https://api.github.com/users/mobileoverlord/events{/privacy}","received_events_url":"https://api.github.com/users/mobileoverlord/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-25T02:00:20Z","updated_at":"2017-11-08T22:01:49Z","closed_at":null,"author_association":"NONE","body":"Crosstool-NG v1.28.0\r\nbuild  = x86_64-pc-linux-gnu\r\nhost   = x86_64-apple-darwin15\r\ntarget = armv6-rpi-linux-gnueabi\r\n\r\nUploaded compressed `build.log` and `.config`\r\n[build.tar.gz](https://github.com/crosstool-ng/crosstool-ng/files/1413021/build.tar.gz)\r\n\r\nI am using a cross compiler toolchain that runs on `x86_64-linux-gnu` and compiles for `x86_64-apple-darwin15`. This toolchain is a product of [osxcross](https://github.com/tpoechtrager/osxcross)\r\n\r\nThe build gets to the step `Installing final gcc compiler` and fails when trying to link library symbols for `_fread_unlocked`.\r\n\r\n```\r\n[ALL  ]    x86_64-host_apple-darwin15-g++    -O2 -g -pipe -I/home/jschneck/dev/nerves/toolchains/work-darwin-x86_64-nerves_toolchain_armv6_rpi_linux_gnueabi/build/.build/HOST-x86_64-apple-darwin15/armv6-rpi-linux-gnueabi/buildtools/complibs-host/include  -fno-common -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-no_pie -L/home/jschneck/dev/nerves/toolchains/work-darwin-x86_64-nerves_toolchain_armv6_rpi_linux_gnueabi/build/.build/HOST-x86_64-apple-darwin15/armv6-rpi-linux-gnueabi/buildtools/complibs-host/lib  -framework CoreFoundation -lstdc++ -lm -o xgcc gcc.o gcc-main.o ggc-none.o spellcheck.o   c/gccspec.o  libcommon-target.a    libcommon.a ../libcpp/libcpp.a  /home/jschneck/dev/nerves/toolchains/work-darwin-x86_64-nerves_toolchain_armv6_rpi_linux_gnueabi/build/.build/HOST-x86_64-apple-darwin15/armv6-rpi-linux-gnueabi/buildtools/complibs-host/lib/libiconv.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a\r\n[ALL  ]    Undefined symbols for architecture x86_64:\r\n[ALL  ]      \"_fread_unlocked\", referenced from:\r\n[ALL  ]          yylex(char const**) in gengtype-lex.o\r\n[ALL  ]    ld: symbol(s) not found for architecture x86_64\r\n[ERROR]    collect2: error: ld returned 1 exit status\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/comments/342975417","html_url":"https://github.com/crosstool-ng/crosstool-ng/issues/851#issuecomment-342975417","issue_url":"https://api.github.com/repos/crosstool-ng/crosstool-ng/issues/851","id":342975417,"user":{"login":"tpoechtrager","id":2461348,"avatar_url":"https://avatars2.githubusercontent.com/u/2461348?v=4","gravatar_id":"","url":"https://api.github.com/users/tpoechtrager","html_url":"https://github.com/tpoechtrager","followers_url":"https://api.github.com/users/tpoechtrager/followers","following_url":"https://api.github.com/users/tpoechtrager/following{/other_user}","gists_url":"https://api.github.com/users/tpoechtrager/gists{/gist_id}","starred_url":"https://api.github.com/users/tpoechtrager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpoechtrager/subscriptions","organizations_url":"https://api.github.com/users/tpoechtrager/orgs","repos_url":"https://api.github.com/users/tpoechtrager/repos","events_url":"https://api.github.com/users/tpoechtrager/events{/privacy}","received_events_url":"https://api.github.com/users/tpoechtrager/received_events","type":"User","site_admin":false},"created_at":"2017-11-08T22:01:49Z","updated_at":"2017-11-08T22:01:49Z","author_association":"NONE","body":"OSXCross does include the build machine's headers. They are most likely pulled in by a configure script. I even added a warning to OSXCross to avoid these issues.\r\n\r\n    $ x86_64-apple-darwin16-g++ -I /usr/include\r\n    osxcross: warning: possibly dangerous include path specified: '-I /usr/include'\r\n    osxcross: info: you can silence this warning via 'OSXCROSS_NO_INCLUDE_PATH_WARNINGS=1' (env)\r\n\r\nThis particular issue is probably caused by ` -I/home/jschneck/dev/nerves/toolchains/work-darwin-x86_64-nerves_toolchain_armv6_rpi_linux_gnueabi/build/.build/HOST-x86_64-apple-darwin15/armv6-rpi-linux-gnueabi/buildtools/complibs-host/include`"}}
{"actor":{"display_login":"tpoechtrager"}}