{"action":"created","issue":{"url":"https://api.github.com/repos/stsp/dosemu2/issues/414","repository_url":"https://api.github.com/repos/stsp/dosemu2","labels_url":"https://api.github.com/repos/stsp/dosemu2/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/stsp/dosemu2/issues/414/comments","events_url":"https://api.github.com/repos/stsp/dosemu2/issues/414/events","html_url":"https://github.com/stsp/dosemu2/issues/414","id":245899686,"number":414,"title":"clang compilation fails","user":{"login":"severach","id":7297892,"avatar_url":"https://avatars0.githubusercontent.com/u/7297892?v=4","gravatar_id":"","url":"https://api.github.com/users/severach","html_url":"https://github.com/severach","followers_url":"https://api.github.com/users/severach/followers","following_url":"https://api.github.com/users/severach/following{/other_user}","gists_url":"https://api.github.com/users/severach/gists{/gist_id}","starred_url":"https://api.github.com/users/severach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/severach/subscriptions","organizations_url":"https://api.github.com/users/severach/orgs","repos_url":"https://api.github.com/users/severach/repos","events_url":"https://api.github.com/users/severach/events{/privacy}","received_events_url":"https://api.github.com/users/severach/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-07-27T01:25:13Z","updated_at":"2017-07-28T21:30:09Z","closed_at":"2017-07-27T15:24:36Z","body":"````\r\nERROR: Fault in dosemu code, in_dpmi=0\r\nERROR: cpu exception in dosemu code outside of VM86()!\r\n````\r\n\r\n`dosemu` works when launched from an xterm or a .desktop file with terminal enabled. From .desktop file with terminal disabled `dosemu` crashes. Happens in Cinnamon or XFCE. Old versions of `dosemu` are crashing too so it might have something to do with the new `-fno-plt` option enabled system wide in Arch.\r\n\r\nIt no longer compiles with clang.\r\n````\r\nclang -c -MMD -DCFLAGS_STR=\"-Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -fms-extensions -pthread -imacros config.h -Wno-unused-result -fpie -fno-stack-protector -Wno-microsoft -Wno-incompatible-pointer-types -ggdb3   -march=x86-64 -mtune=generic -O2 -pipe  -fno-plt -fno-stack-protector -Wno-unused-result\" -I../../../src/include -I../../../src/plugin/include -I/home/chris/build/dosemu2-git/src/dosemu2/src/include -D_FORTIFY_SOURCE=2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -fms-extensions -pthread -imacros config.h -Wno-unused-result -fpie -fno-stack-protector -Wno-microsoft -Wno-incompatible-pointer-types -ggdb3   -march=x86-64 -mtune=generic -O2 -pipe  -fno-plt -fno-stack-protector -Wno-unused-result -o int.o int.c\r\nint.c:2452:1: error: expected identifier or '('\r\nINT_WRP(16)\r\n^\r\nint.c:2440:20: note: expanded from macro 'INT_WRP'\r\nstatic int _int##n(int stk_offs) \\\r\n                   ^\r\nint.c:2452:1: error: expected ')'\r\nint.c:2440:20: note: expanded from macro 'INT_WRP'\r\nstatic int _int##n(int stk_offs) \\\r\n                   ^\r\nint.c:2452:1: note: to match this '('\r\nint.c:2440:19: note: expanded from macro 'INT_WRP'\r\nstatic int _int##n(int stk_offs) \\\r\n                  ^\r\nint.c:2499:54: error: expected expression\r\n  int_handlers[0x16].interrupt_function[NO_REVECT] = _int16;\r\n                                                     ^\r\n3 errors generated.\r\nmake[2]: *** [/tmp/makepkg/dosemu2-git/src/dosemu2/src/Makefile.common:62: int.o] Error 1\r\nmake[2]: Leaving directory '/tmp/makepkg/dosemu2-git/src/dosemu2/src/base/async'\r\n````\r\n\r\nThe log also has some wrong information.\r\n\r\n````\r\nYour fluidsynth is too old\r\n````\r\nNo it's not. I installed enough stuff to make this error go away on launch but it still shows in the log.\r\n\r\n````\r\nReading symbols from /usr/bin/dosemu.bin...(no debugging symbols found)...done.\r\n````\r\nYes there are. I view with `mc` and I can see all the symbols.\r\n\r\n[boot.log.zip](https://github.com/stsp/dosemu2/files/1178425/boot.log.zip)\r\n[boot.log.nocrash.zip](https://github.com/stsp/dosemu2/files/1178428/boot.log.nocrash.zip)\r\n\r\n````\r\n% pacman -Q dosemu2-git gcc-multilib glibc sdl2\r\ndosemu2-git 2.0pre6.1.dev.671.g19a8aafd-1\r\ngcc-multilib 7.1.1-4\r\nglibc 2.25-7\r\nsdl2 2.0.5-4\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/stsp/dosemu2/issues/comments/318766439","html_url":"https://github.com/stsp/dosemu2/issues/414#issuecomment-318766439","issue_url":"https://api.github.com/repos/stsp/dosemu2/issues/414","id":318766439,"user":{"login":"stsp","id":3295627,"avatar_url":"https://avatars1.githubusercontent.com/u/3295627?v=4","gravatar_id":"","url":"https://api.github.com/users/stsp","html_url":"https://github.com/stsp","followers_url":"https://api.github.com/users/stsp/followers","following_url":"https://api.github.com/users/stsp/following{/other_user}","gists_url":"https://api.github.com/users/stsp/gists{/gist_id}","starred_url":"https://api.github.com/users/stsp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stsp/subscriptions","organizations_url":"https://api.github.com/users/stsp/orgs","repos_url":"https://api.github.com/users/stsp/repos","events_url":"https://api.github.com/users/stsp/events{/privacy}","received_events_url":"https://api.github.com/users/stsp/received_events","type":"User","site_admin":false},"created_at":"2017-07-28T21:30:09Z","updated_at":"2017-07-28T21:30:09Z","body":"Can you try:\r\n`valgrind --trace-children=yes dosemu`\r\nMaybe valgrind will find something interesting..."}}
{"actor":{"display_login":"stsp"}}