{"action":"created","issue":{"url":"https://api.github.com/repos/todorez/galileo-linux-stable/issues/1","labels_url":"https://api.github.com/repos/todorez/galileo-linux-stable/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/todorez/galileo-linux-stable/issues/1/comments","events_url":"https://api.github.com/repos/todorez/galileo-linux-stable/issues/1/events","html_url":"https://github.com/todorez/galileo-linux-stable/issues/1","id":99419474,"number":1,"title":"i586-poky-linux-gcc directory requirements","user":{"login":"ssjoholm","id":2561804,"avatar_url":"https://avatars.githubusercontent.com/u/2561804?v=3","gravatar_id":"","url":"https://api.github.com/users/ssjoholm","html_url":"https://github.com/ssjoholm","followers_url":"https://api.github.com/users/ssjoholm/followers","following_url":"https://api.github.com/users/ssjoholm/following{/other_user}","gists_url":"https://api.github.com/users/ssjoholm/gists{/gist_id}","starred_url":"https://api.github.com/users/ssjoholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssjoholm/subscriptions","organizations_url":"https://api.github.com/users/ssjoholm/orgs","repos_url":"https://api.github.com/users/ssjoholm/repos","events_url":"https://api.github.com/users/ssjoholm/events{/privacy}","received_events_url":"https://api.github.com/users/ssjoholm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-06T11:52:38Z","updated_at":"2015-08-08T16:36:19Z","closed_at":"2015-08-06T16:40:09Z","body":"I have tried to compile the Galileo-Linux-Stable according to the instructions in the readme file, but I get stuck in the make command on step 2.\r\n\r\nroot@ubuntu:# ARCH=i386 LOCALVERSION= CROSS_COMPILE=i586-poky-linux- make -j8\r\nmake: i586-poky-linux-gcc: Command not found\r\n...\r\n\r\nWhich causes the make to fail, when looking closer at the \"i586-poky-linux-gcc\", I have problem executing the binary file.\r\n\r\nroot@ubuntu:# ./i586-poky-linux-gcc\r\n-bash: ./i586-poky-linux-gcc: No such file or directory\r\nroot@ubuntu:#\r\n\r\nWhen testing with readelf, I can see that it is looking for a file in a directory that does not exists.\r\n\r\nroot@ubuntu:# readelf -a i586-poky-linux-gcc | grep Req\r\n      [Requesting program interpreter: /opt/iot-devkit/1.7.2/sysroots/x86_64-pokysdk-linux/lib/ld-linux-x86-64.so.2]\r\nroot@ubuntu:#\r\n\r\nI have unpacked the IoT DevKit under /opt/build/ and the file that it is looking for is under that folder as seen below, but it is not looking for this location.\r\n\r\nroot@ubuntu:# find . -name ld-linux-x86-64.so.2\r\n./iotdk-ide-linux/devkit-x86/sysroots/x86_64-pokysdk-linux/lib/ld-linux-x86-64.so.2\r\nroot@ubuntu:#\r\n\r\nWorkaround.\r\n\r\n1. Create directory \"/opt/iot-devkit/1.7.2/sysroots/\"\r\n2. Rsync the downloaded iotdk package to the dircectory\r\n$ rsync -avP /<your directory>/iotdk-ide-linux/devkit-x86/sysroots/ /opt/iot-devkit/1.7.2/sysroots/\r\n3. Change the PATH to refrect the change.\r\n$ export PATH=\"/opt/iot-devkit/1.7.2/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/:$PATH\"\r\n\r\nAnd then run the make again...\r\n\r\nRegards,\r\nSebastian"},"comment":{"url":"https://api.github.com/repos/todorez/galileo-linux-stable/issues/comments/129005334","html_url":"https://github.com/todorez/galileo-linux-stable/issues/1#issuecomment-129005334","issue_url":"https://api.github.com/repos/todorez/galileo-linux-stable/issues/1","id":129005334,"user":{"login":"ssjoholm","id":2561804,"avatar_url":"https://avatars.githubusercontent.com/u/2561804?v=3","gravatar_id":"","url":"https://api.github.com/users/ssjoholm","html_url":"https://github.com/ssjoholm","followers_url":"https://api.github.com/users/ssjoholm/followers","following_url":"https://api.github.com/users/ssjoholm/following{/other_user}","gists_url":"https://api.github.com/users/ssjoholm/gists{/gist_id}","starred_url":"https://api.github.com/users/ssjoholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssjoholm/subscriptions","organizations_url":"https://api.github.com/users/ssjoholm/orgs","repos_url":"https://api.github.com/users/ssjoholm/repos","events_url":"https://api.github.com/users/ssjoholm/events{/privacy}","received_events_url":"https://api.github.com/users/ssjoholm/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T16:36:19Z","updated_at":"2015-08-08T16:36:19Z","body":"Please note that, if the machine is headless and running example Ubuntu Server (without GUI) then running the \"devkit-launcher\" will not change the PATH, it will print it out, but does not seem to get it changed.\r\n\r\nroot@ubuntu:/opt/build/iotdk-ide-linux# printenv PATH\r\n/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games\r\nroot@ubuntun:/opt/build/iotdk-ide-linux# ./devkit-launcher\r\n/opt/build/iotdk-ide-linux/.\r\nRelocating SDK\r\nSetting variables\r\n/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/build/iotdk-ide-linux/./devkit-x86/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/\r\nroot@ubuntu:/opt/build/iotdk-ide-linux# gdk_mir_display_open\r\nFailed to connect to Mir: Failed to connect to server socket: No such file or directory\r\nUnable to init server: Could not connect: Connection refused\r\nEclipse: Cannot open display:\r\nEclipse:\r\nAn error has occurred. See the log file\r\n/opt/build/iotdk-ide-linux/eclipse-linux/configuration/1439048008963.log.\r\n\r\nroot@ubuntu:/opt/build/iotdk-ide-linux# printenv PATH\r\n/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games\r\nroot@ubuntu:/opt/build/iotdk-ide-linux#\r\n\r\nI can use the path it is printing out and the set it manually with export PATH=\"<path>\".\r\n\r\nRegards,\r\nSebastian"}}