{"action":"created","issue":{"url":"https://api.github.com/repos/Dman95/SASM/issues/101","repository_url":"https://api.github.com/repos/Dman95/SASM","labels_url":"https://api.github.com/repos/Dman95/SASM/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/Dman95/SASM/issues/101/comments","events_url":"https://api.github.com/repos/Dman95/SASM/issues/101/events","html_url":"https://github.com/Dman95/SASM/issues/101","id":357732939,"node_id":"MDU6SXNzdWUzNTc3MzI5Mzk=","number":101,"title":"Build in current directory and some other issues on Arch","user":{"login":"ctnguyenvn","id":20994472,"node_id":"MDQ6VXNlcjIwOTk0NDcy","avatar_url":"https://avatars3.githubusercontent.com/u/20994472?v=4","gravatar_id":"","url":"https://api.github.com/users/ctnguyenvn","html_url":"https://github.com/ctnguyenvn","followers_url":"https://api.github.com/users/ctnguyenvn/followers","following_url":"https://api.github.com/users/ctnguyenvn/following{/other_user}","gists_url":"https://api.github.com/users/ctnguyenvn/gists{/gist_id}","starred_url":"https://api.github.com/users/ctnguyenvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctnguyenvn/subscriptions","organizations_url":"https://api.github.com/users/ctnguyenvn/orgs","repos_url":"https://api.github.com/users/ctnguyenvn/repos","events_url":"https://api.github.com/users/ctnguyenvn/events{/privacy}","received_events_url":"https://api.github.com/users/ctnguyenvn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-06T16:26:51Z","updated_at":"2018-09-06T18:34:26Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nToday I installed and used sasm then I encountered some problems.\r\n\r\nWhen I click `build in current directory`, I get an error\r\n\r\n```\r\n[23:02:13] Build started ...\r\n[23:02:13] Warning! Errors have occured in the build:\r\n/tmp/SASM/program.asm:1: fatal: unable to include include file `io64.inc '\r\ngcc: error: /tmp/SASM/program.o: No such file or directory\r\n```\r\n\r\n- Question 1: As seen, I can not build in the current directory. How can i do that \r\n\r\nI can run the following example code, everything works fine\r\n\r\n```asm\r\n% include \"io64.inc\"\r\n\r\nsection .data\r\n    msg db 'Hello, world!', 0\r\n\r\nsection .text\r\n    global CMAIN\r\nCMAIN:\r\n    mov rbp, rsp\r\n    xx rax, rax\r\n    ret\r\n```\r\n\r\nHowever I do not want to use `io64.inc` and I write normal code as follows\r\n\r\n```asm\r\nsection .data\r\n    msg db 'Hello, world!', 0\r\n\r\nsection .text\r\n\r\nglobal _start\r\n_start:\r\n    mov rbp, rsp\r\n    xx rax, rax\r\n    ret\r\n```\r\n\r\nI then receive the error message\r\n\r\n```\r\n[23:10:56] Build started...\r\n[23:10:57] Warning! Errors have occurred in the build:\r\n/tmp/SASM/program.o:/tmp/SASM/program.asm:9: multiple definition of `_start'\r\n/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/../../../../lib/Scrt1.o:(.text+0x0): first defined here\r\n/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/../../../../lib/Scrt1.o: In function `_start':\r\n(.text+0x20): undefined reference to `main'\r\ncollect2: error: ld returned 1 exit status\r\n```\r\n\r\n- Question 2: So how can i remove `% include 'io64.inc\"`and `CMAIN`\r\n\r\n- Question 3: I want to ask if this tool is still in development?\r\n\r\nNote: I using Arch linux latest version and sasm version 3.9.0\r\n\r\nThanks you."},"comment":{"url":"https://api.github.com/repos/Dman95/SASM/issues/comments/419197615","html_url":"https://github.com/Dman95/SASM/issues/101#issuecomment-419197615","issue_url":"https://api.github.com/repos/Dman95/SASM/issues/101","id":419197615,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTE5NzYxNQ==","user":{"login":"piper4hire","id":6652412,"node_id":"MDQ6VXNlcjY2NTI0MTI=","avatar_url":"https://avatars3.githubusercontent.com/u/6652412?v=4","gravatar_id":"","url":"https://api.github.com/users/piper4hire","html_url":"https://github.com/piper4hire","followers_url":"https://api.github.com/users/piper4hire/followers","following_url":"https://api.github.com/users/piper4hire/following{/other_user}","gists_url":"https://api.github.com/users/piper4hire/gists{/gist_id}","starred_url":"https://api.github.com/users/piper4hire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piper4hire/subscriptions","organizations_url":"https://api.github.com/users/piper4hire/orgs","repos_url":"https://api.github.com/users/piper4hire/repos","events_url":"https://api.github.com/users/piper4hire/events{/privacy}","received_events_url":"https://api.github.com/users/piper4hire/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T18:34:26Z","updated_at":"2018-09-06T18:34:26Z","author_association":"NONE","body":"here we go again. \n\n-S\n\n> On Sep 6, 2018, at 12:27 PM, Nguyen Cong Tru <notifications@github.com> wrote:\n> \n> Hi,\n> Today I installed and used sasm then I encountered some problems.\n> \n> When I click build in current directory, I get an error\n> \n> [23:02:13] Build started ...\n> [23:02:13] Warning! Errors have occured in the build:\n> /tmp/SASM/program.asm:1: fatal: unable to include include file `io64.inc '\n> gcc: error: /tmp/SASM/program.o: No such file or directory\n> Question 1: As seen, I can not build in the current directory. How can i do that\n> I can run the following example code, everything works fine\n> \n> % include \"io64.inc\"\n> \n> section .data\n>     msg db 'Hello, world!', 0\n> \n> section .text\n>     global CMAIN\n> CMAIN:\n>     mov rbp, rsp\n>     xx rax, rax\n>     ret\n> However I do not want to use io64.inc and I write normal code as follows\n> \n> section .data\n>     msg db 'Hello, world!', 0\n> \n> section .text\n> \n> global _start\n> _start:\n>     mov rbp, rsp\n>     xx rax, rax\n>     ret\n> I then receive the error message\n> \n> [23:10:56] Build started...\n> [23:10:57] Warning! Errors have occurred in the build:\n> /tmp/SASM/program.o:/tmp/SASM/program.asm:9: multiple definition of `_start'\n> /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/../../../../lib/Scrt1.o:(.text+0x0): first defined here\n> /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.1/../../../../lib/Scrt1.o: In function `_start':\n> (.text+0x20): undefined reference to `main'\n> collect2: error: ld returned 1 exit status\n> Question 2: So how can i remove % include 'io64.inc\"and CMAIN\n> \n> Question 3: I want to ask if this tool is still in development?\n> \n> Note: I using Arch linux latest version and sasm version 3.9.0\n> \n> Thanks you.\n> \n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n"}}
{"actor":{"display_login":"piper4hire"}}