{"action":"created","issue":{"url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/toolchain/issues/118","repository_url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/toolchain","labels_url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/toolchain/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/toolchain/issues/118/comments","events_url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/toolchain/issues/118/events","html_url":"https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/issues/118","id":227670875,"number":118,"title":"TCF to GCC","user":{"login":"coco21","id":7260951,"avatar_url":"https://avatars0.githubusercontent.com/u/7260951?v=3","gravatar_id":"","url":"https://api.github.com/users/coco21","html_url":"https://github.com/coco21","followers_url":"https://api.github.com/users/coco21/followers","following_url":"https://api.github.com/users/coco21/following{/other_user}","gists_url":"https://api.github.com/users/coco21/gists{/gist_id}","starred_url":"https://api.github.com/users/coco21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coco21/subscriptions","organizations_url":"https://api.github.com/users/coco21/orgs","repos_url":"https://api.github.com/users/coco21/repos","events_url":"https://api.github.com/users/coco21/events{/privacy}","received_events_url":"https://api.github.com/users/coco21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-10T12:57:15Z","updated_at":"2017-05-10T13:51:01Z","closed_at":null,"body":"Hello,\r\n\r\nWe start now to develop first baremetal code using ARC GNU and CPU HW IP .tcf file.\r\nWe are interested into getting all macros defining registers, maps, offsets etc.\r\n\r\nWent on the doc page here: https://foss-for-synopsys-dwc-arc-processors.github.io/toolchain/baremetal/tcf.html#general-sescription\r\n\r\nI am doing this in Windows, using Cywgin + perl + XML:LibXML package that all seems to work.\r\n\r\nHowever I must do something wrong, please see below.\r\n\r\nschmid@MOB13263 /cygdrive/c/arc_gnu/bin\r\n$ ll arc-elf32-tcf-* ad_*\r\n-rwxrwxr-x+ 1 schmid         Domain Users  52K May 10 14:01 ad_arc_arc_without_apex.tcf*\r\n-rwxrwx---+ 1 Administrators Domain Users 4.1K Apr 13 00:20 arc-elf32-tcf-gcc*\r\n\r\nschmid@MOB13263 /cygdrive/c/arc_gnu/bin\r\n$ arc-elf32-tcf-gcc --tcf ad_arc_arc_without_apex.tcf\r\narc-elf32-gcc.exe: error: @/tmp/QofBpZK8RK/gcc.arg: No such file or directory\r\n\r\nThx Christophe"},"comment":{"url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/toolchain/issues/comments/300488079","html_url":"https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/issues/118#issuecomment-300488079","issue_url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/toolchain/issues/118","id":300488079,"user":{"login":"anthony-kolesov","id":602123,"avatar_url":"https://avatars1.githubusercontent.com/u/602123?v=3","gravatar_id":"","url":"https://api.github.com/users/anthony-kolesov","html_url":"https://github.com/anthony-kolesov","followers_url":"https://api.github.com/users/anthony-kolesov/followers","following_url":"https://api.github.com/users/anthony-kolesov/following{/other_user}","gists_url":"https://api.github.com/users/anthony-kolesov/gists{/gist_id}","starred_url":"https://api.github.com/users/anthony-kolesov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthony-kolesov/subscriptions","organizations_url":"https://api.github.com/users/anthony-kolesov/orgs","repos_url":"https://api.github.com/users/anthony-kolesov/repos","events_url":"https://api.github.com/users/anthony-kolesov/events{/privacy}","received_events_url":"https://api.github.com/users/anthony-kolesov/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T13:51:00Z","updated_at":"2017-05-10T13:51:00Z","body":"I think the problem is that arc-elf32-gcc.exe is not a Cygwin executable, therefore it cannot understand the cygwin path of `/tmp/....`. You need to modify perl script to pass windows path to compiler. This will look like this:\r\n\r\n```diff\r\ndiff --git a/extras/arc-tcf-gcc b/extras/arc-tcf-gcc\r\nindex 90c8447..c2306d0 100755\r\n--- a/extras/arc-tcf-gcc\r\n+++ b/extras/arc-tcf-gcc\r\n@@ -80,7 +80,7 @@ sub parseXML\r\n     print $fh $cnfgl[0]->textContent;\r\n     close $fh;\r\n\r\n-    return $filename\r\n+    return `cygpath -w -a $filename`\r\n }\r\n\r\n # Parse input arguments, search for --tcf <filename>, and extract it.\r\n@@ -125,7 +125,7 @@ sub processXML\r\n     # Parse the linker file\r\n     my $sn = '/config_list/configuration[@name=\"gnu_linker_command_file\"]';\r\n     parseXML ($tcf, $sn);\r\n-    my $cmdline = \" -Wl,-marcv2elfx -L\" . $dirname . \" \";\r\n+    my $cmdline = \" -Wl,-marcv2elfx -L\" . `cygpath -w -a $dirname` . \" \";\r\n\r\n\r\n     # Parse the compiler options\r\n@@ -151,5 +151,7 @@ parseInputArgs(@ARGV);\r\n $dirname = tempdir();\r\n my $cmd = processXML();\r\n $cmd = $compiler . $cmd . \" \" . join (\" \", @gcc_args);\r\n+$cmd =~ s/\\R//g;\r\n+$cmd =~ s/\\\\/\\\\\\\\/g;\r\n print $cmd, \"\\n\" if ($verbose) ;\r\n system ($cmd);\r\n```"}}
{"actor":{"display_login":"anthony-kolesov"}}