{"action":"created","issue":{"url":"https://api.github.com/repos/LinuxCNC/hostmot2-firmware/issues/1","repository_url":"https://api.github.com/repos/LinuxCNC/hostmot2-firmware","labels_url":"https://api.github.com/repos/LinuxCNC/hostmot2-firmware/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/LinuxCNC/hostmot2-firmware/issues/1/comments","events_url":"https://api.github.com/repos/LinuxCNC/hostmot2-firmware/issues/1/events","html_url":"https://github.com/LinuxCNC/hostmot2-firmware/issues/1","id":147681589,"number":1,"title":"build problem on amd64","user":{"login":"sirop","id":1533811,"avatar_url":"https://avatars.githubusercontent.com/u/1533811?v=3","gravatar_id":"","url":"https://api.github.com/users/sirop","html_url":"https://github.com/sirop","followers_url":"https://api.github.com/users/sirop/followers","following_url":"https://api.github.com/users/sirop/following{/other_user}","gists_url":"https://api.github.com/users/sirop/gists{/gist_id}","starred_url":"https://api.github.com/users/sirop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirop/subscriptions","organizations_url":"https://api.github.com/users/sirop/orgs","repos_url":"https://api.github.com/users/sirop/repos","events_url":"https://api.github.com/users/sirop/events{/privacy}","received_events_url":"https://api.github.com/users/sirop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-12T08:54:09Z","updated_at":"2016-04-12T10:55:27Z","closed_at":null,"body":"To reproduce on `SMP Debian 3.8.13-12~1wheezy~1da x86_64 GNU/Linux`:\r\n```\r\n\r\nslave@debian-slave:~/hostmot2-firmware$ . /opt/Xilinx/13.3/ISE_DS/settings64.sh\r\n. /opt/Xilinx/13.3/ISE_DS/EDK/.settings64.sh /opt/Xilinx/13.3/ISE_DS/EDK\r\n. /opt/Xilinx/13.3/ISE_DS/ISE/.settings64.sh /opt/Xilinx/13.3/ISE_DS/ISE\r\n. /opt/Xilinx/13.3/ISE_DS/PlanAhead/.settings64.sh /opt/Xilinx/13.3/ISE_DS/PlanAhead\r\n. /opt/Xilinx/13.3/ISE_DS/common/.settings64.sh /opt/Xilinx/13.3/ISE_DS/common\r\nslave@debian-slave:~/hostmot2-firmware$ make -j2\r\n./build.py i90epp SVST8_4_72 fw/7i90epp/SVST8_4.BIT\r\n./build.py i90spi SVST8_4_72 fw/7i90spi/SVST8_4.BIT\r\nXILINX environment variable already set, not overriding\r\nXILINX environment variable already set, not overriding\r\n# workdir /home/slave/hostmot2-firmware/fw/7i90spi/SVST8_4_work\r\n# workdir /home/slave/hostmot2-firmware/fw/7i90epp/SVST8_4_work\r\nTraceback (most recent call last):\r\n  File \"./build.py\", line 322, in <module>\r\n    report_timing()\r\n  File \"./build.py\", line 297, in report_timing\r\n    print \"%d:%04.1f-total\" % (m, s)\r\nUnboundLocalError: local variable 'm' referenced before assignment\r\nTraceback (most recent call last):\r\n  File \"./build.py\", line 322, in <module>\r\n    report_timing()\r\n  File \"./build.py\", line 297, in report_timing\r\n    print \"%d:%04.1f-total\" % (m, s)\r\nUnboundLocalError: local variable 'm' referenced before assignment\r\nmake: *** [fw/7i90spi/SVST8_4.BIT] Error 1\r\nmake: *** Waiting for unfinished jobs....\r\nmake: *** [fw/7i90epp/SVST8_4.BIT] Error 1\r\n```\r\n\r\nI wanted to commit my pin out file for PktUART.\r\nIts bit file can be built with Xilinx iSE 14.7.\r\nAnd it would be probably possible to build the bit file with 13.3. "},"comment":{"url":"https://api.github.com/repos/LinuxCNC/hostmot2-firmware/issues/comments/208844951","html_url":"https://github.com/LinuxCNC/hostmot2-firmware/issues/1#issuecomment-208844951","issue_url":"https://api.github.com/repos/LinuxCNC/hostmot2-firmware/issues/1","id":208844951,"user":{"login":"sirop","id":1533811,"avatar_url":"https://avatars.githubusercontent.com/u/1533811?v=3","gravatar_id":"","url":"https://api.github.com/users/sirop","html_url":"https://github.com/sirop","followers_url":"https://api.github.com/users/sirop/followers","following_url":"https://api.github.com/users/sirop/following{/other_user}","gists_url":"https://api.github.com/users/sirop/gists{/gist_id}","starred_url":"https://api.github.com/users/sirop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirop/subscriptions","organizations_url":"https://api.github.com/users/sirop/orgs","repos_url":"https://api.github.com/users/sirop/repos","events_url":"https://api.github.com/users/sirop/events{/privacy}","received_events_url":"https://api.github.com/users/sirop/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T10:55:27Z","updated_at":"2016-04-12T10:55:27Z","body":"```\r\ndef report_timing():\r\n    t = 0\r\n    m, s = 0, 0\r\n    for k, v in timing:\r\n        t += v\r\n        m, s = divmod(v, 60)\r\n        print \"%d:%04.1f-%-11s\" % (m, s, k),\r\n    print \"%d:%04.1f-total\" % (m, s)\r\n    print\r\n```\r\nThat's how  `report_timimg` now looks like, but then I get further errors:\r\n```\r\n~/hostmot2-firmware$ make\r\n./build.py i90epp SVST8_4_72 fw/7i90epp/SVST8_4.BIT\r\nXILINX environment variable already set, not overriding\r\n# workdir /home/slave/hostmot2-firmware/fw/7i90epp/SVST8_4_work\r\n0:00.0-total\r\n\r\nTraceback (most recent call last):\r\n  File \"./build.py\", line 303, in <module>\r\n    run(\"xst\", '-intstyle', 'ise', \"-ifn\", \"scr\")\r\n  File \"./build.py\", line 167, in run\r\n    if settings_sh: cmd = \"bash -c '. %s; %s'\" % (settings_sh, cmd)\r\nNameError: global name 'settings_sh' is not defined\r\nmake: *** [fw/7i90epp/SVST8_4.BIT] Error 1\r\n```\r\n"}}