{"id":1861,"date":"2021-08-23T14:24:27","date_gmt":"2021-08-23T05:24:27","guid":{"rendered":"https:\/\/sirius10.net\/blog\/wordpress\/?p=1861"},"modified":"2023-04-15T12:38:17","modified_gmt":"2023-04-15T03:38:17","slug":"open-watcom-v2","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/08\/23\/1861\/","title":{"rendered":"Open Watcom V2"},"content":{"rendered":"\n<p>\u3000\u30a8\u30c7\u30a3\u30bf\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u5185\u306b\u601d\u3044\u51fa\u3057\u305f Watcom C\/C++ \u3002\u61d0\u304b\u3057\u304f\u306a\u3063\u3066\u8abf\u3079\u3066\u307f\u305f\u3089\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306b\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/open-watcom\/open-watcom-v2\">https:\/\/github.com\/open-watcom\/open-watcom-v2<\/a><\/p>\n\n\n\n<p>\u3000<a href=\"http:\/\/www.openwatcom.org\/\">Open Watcom<\/a> \u306f\u5143\u3005\u30d1\u30c3\u30b1\u30fc\u30b8\u30bd\u30d5\u30c8\u306e Watcom \u306e C\/C++ \u3084 Fortran \u306e\u958b\u767a\u74b0\u5883\u304c\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306b\u306a\u3063\u305f\u3082\u306e\u3067\u3001\u30d0\u30fc\u30b8\u30e7\u30f3 1.9 \u307e\u3067\u958b\u767a\u3055\u308c\u3001v2 \u306f\u305d\u308c\u304b\u3089\u30d5\u30a9\u30fc\u30af\u3057\u305f\u3082\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000<a href=\"https:\/\/qiita.com\/yamori813\/items\/63cf994a616ecd62116c\">Open Watcom v2-Debian &#8211; Qiita<\/a> \u3092\u898b\u308b\u3068\u3001Linux \u4e0a\u304b\u3089 DOS \u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3082\u30b3\u30f3\u30d1\u30a4\u30eb\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000Raspberry Pi OS \u3067\u52d5\u304b\u306a\u3044\u304b\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ git clone https:\/\/github.com\/open-watcom\/open-watcom-v2.git\n$ cd open-watcom-v2\n$ .\/build.sh\n\u30fb\n\u30fb\n======= 11:13:27 \/home\/pi\/work\/Watcom\/open-watcom-v2\/bld\/browser\/nt386 ========\n%make prepare_gendev_tmp_batch\ngendev mono01.cop\nsh: 1: dosemu: not found\nError(E14): Cannot execute (dosemu): No such file or directory\nError(E42): Last command making (gencop;mono01.cop) returned a bad status\nError(E02): Make execution terminated\nError(E42): Last command making (\/home\/pi\/work\/Watcom\/open-watcom-v2\/docs\/nt\/wbrw.gh) returned a bad status\nError(E02): Make execution terminated\n&lt;pmake -d build          -h&gt; =&gt; non-zero return: 512\nBuild failed\n<\/pre>\n\n\n\n<p>\u3000\u3042\u3042\u3001dosemu \u304c\u5fc5\u8981\u3067\u3059\u3001\u3057\u304b\u3057\u3001dosemu \u306f x86 \u5c02\u7528\u3067\u3059\u3002Raspberry Pi OS \u306b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ grep -Rl dosemu .\n.\/setvars.sh\n.\/bld\/wgml\/test\/test.sh\n.\/build\/mif\/wgmlcmd.mif\n.\/build\/binbuild\/build.log<\/pre>\n\n\n\n<p>\u3000setvars.sh \u3092\u898b\u308b\u3068\u3001DOSBox \u304c\u4f7f\u3048\u308b\u3088\u3046\u3067\u3059\u3002DOSBox-X \u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\"># export OWDOSBOX=dosbox<\/pre>\n\n\n\n<p>\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">export OWDOSBOX=dosbox-x<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ .\/clean.sh\n\u30fb\n\u30fb\n$ .\/build.sh\n\u30fb\n\u30fb<\/pre>\n\n\n\n<p>\u3000\u5ff5\u306e\u70ba\u3001\u30af\u30ea\u30a2\u3057\u3066\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u76f4\u3057\u307e\u3057\u305f\u3002\u3060\u3044\u3060\u3044\u30012 \u6642\u9593\u304f\u3089\u3044\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u7d42\u308f\u308a\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ .\/build.sh rel\n\u30fb\n\u30fb<\/pre>\n\n\n\n<p>\u3000\u3053\u308c\u3067\u3001rel \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\uff08exe \u30d5\u30a1\u30a4\u30eb\u3068\u304b\u4f59\u5206\u306a\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u304c\uff09\u304c\u307e\u3068\u307e\u3063\u305f\u306e\u3067\u3001\/usr\/local\/bin \u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ sudo cp -r rel \/usr\/local\/bin\/watcom<\/pre>\n\n\n\n<p>\u3000\u5f8c\u306f\u3001\u74b0\u5883\u5909\u6570PATH \u306b \/usr\/local\/bin\/watcom\/binl \u3092\u8ffd\u52a0\u3057\u3001\u74b0\u5883\u5909\u6570 WATCOM \u3068 INCLUDE \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ export PATH=\/usr\/local\/bin\/watcom\/binl:$PATH\n$ export WATCOM=\/usr\/local\/bin\/watcom\n$ export INCLUDE=\/usr\/local\/bin\/watcom\/h<\/pre>\n\n\n\n<p>\u3000\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u3001DOSBox-X \u3067\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>test.c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">#include &lt;stdio.h&gt;\n\nint main()\n{\n        printf(\"Wellcome to Watcom C\\n\");\n\treturn 0;\n}\n<\/pre>\n\n\n\n<p>\u3000\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ wcl -l=com -fe=TEST.COM test.c\nOpen Watcom C\/C++ x86 16-bit Compile and Link Utility\nVersion 2.0 beta Aug 21 2021 18:34:24 (32-bit)\nCopyright (c) 2002-2021 The Open Watcom Contributors. All Rights Reserved.\nPortions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.\nSource code is available under the Sybase Open Watcom Public License.\nSee http:\/\/www.openwatcom.org\/ for details.\n\twcc test.c \nOpen Watcom C x86 16-bit Optimizing Compiler\nVersion 2.0 beta Aug 21 2021 18:14:01 (32-bit)\nCopyright (c) 2002-2021 The Open Watcom Contributors. All Rights Reserved.\nPortions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.\nSource code is available under the Sybase Open Watcom Public License.\nSee http:\/\/www.openwatcom.org\/ for details.\ntest.c: 8 lines, included 802, 0 warnings, 0 errors\nCode size: 19\n\twlink @__wcl__.lnk\nOpen Watcom Linker Version 2.0 beta Aug 21 2021 18:01:34 (32-bit)\nCopyright (c) 2002-2021 The Open Watcom Contributors. All Rights Reserved.\nPortions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.\nSource code is available under the Sybase Open Watcom Public License.\nSee http:\/\/www.openwatcom.org\/ for details.\nloading object files\nsearching libraries\ncreating a DOS .COM executable\n$<\/pre>\n\n\n\n<p>\u3000DOSBox-X \u304b\u3089\u898b\u3048\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted console\">C:\u00a5&gt;test\nWellcome to Watcom C\n\nC:\u00a5&gt;<\/pre>\n\n\n\n<p>\u3000\u7121\u4e8b\u52d5\u304d\u307e\u3057\u305f\u3002Raspberry Pi \u3067 DOS \u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u4f5c\u308c\u307e\u3059\u3002\u3067\u3082\u3001\u4f7f\u3044\u307f\u3061\u304c\u3042\u308b\u304b\u306a\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u30a8\u30c7\u30a3\u30bf\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u5185\u306b\u601d\u3044\u51fa\u3057\u305f Watcom C\/C++ \u3002\u61d0\u304b\u3057\u304f\u306a\u3063\u3066\u8abf\u3079\u3066\u307f\u305f\u3089\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306b\u3042\u308b\u3088\u3046\u3067\u3059\u3002 https:\/\/github.com\/open-watcom\/open-watcom-v [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,4],"tags":[],"class_list":["post-1861","post","type-post","status-publish","format-standard","hentry","category-openwatcom","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=1861"}],"version-history":[{"count":16,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1861\/revisions"}],"predecessor-version":[{"id":1925,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/1861\/revisions\/1925"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=1861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=1861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=1861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}